This module provides a new format for the Link field type. This format presents the file as a fully rendered object within a web page - i.e. it displays the contents of the link as appropriate to its filetype (Adobe Acrobat .pdf, Microsoft Word .doc/.docx, Micrososft Excel .xls/.xlsx, Microsoft Powerpoint .ppt/.pptx), using the Google Docs embedded rendering engine.
N.B.: Only link having .pdf,.doc/.docx, .xls/.xlsx. and .ppt/.pptx may use this formatter - Google Docs must be able to access the link url in order to render and display it. In other words, it won't work on a typical development laptop, or if your server is behind a firewall where Google is unable to access it.
Also this module helps play audio files and render images hosted on another server.
Sandbox project link: https://www.drupal.org/sandbox/mandarmbhagwat78/2294289
git clone --branch 7.x-1.x https://git.drupal.org/sandbox/mandarmbhagwat78/2294289.git link_field_formatter
cd link_field_formatter
Comment | File | Size | Author |
---|---|---|---|
#9 | link-field-formatter.png | 273.7 KB | mandarmbhagwat78 |
Comments
Comment #2
visabhishek CreditAttribution: visabhishek as a volunteer and at Azri Solutions commentedComment #3
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxmandarmbhagwat782294...
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
mandarmbhagwat78 CreditAttribution: mandarmbhagwat78 commentedFixes made as per errors reported by automated review tools.
Comment #5
Sharique CreditAttribution: Sharique as a volunteer commentedI tested this modules for couple of scenarios and it works fine for me and didn't find an issue.
No coding standard issue found.
Comment #6
poojasharmaece CreditAttribution: poojasharmaece as a volunteer and commented1: All user facing text should be Pass through t()
Example "Download" text in following code
Some more examples :
2: Please set the default branch
Git errors:
Review of the 7.x-1.x branch (commit 08e98cd):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Comment #7
mandarmbhagwat78 CreditAttribution: mandarmbhagwat78 commentedChanges made as per review comments above.
Comment #8
Arkener CreditAttribution: Arkener as a volunteer commentedThe .module and .inc file are full with undefined variables, including but not limited to the following:
Play audio with download link:
Notice: Undefined variable: audio_style in link_field_formatter_field_formatter_view() (line 352 of /usr/share/nginx/html/drupal7/sites/all/modules/contrib/link_field_formatter/link_field_formatter.module).
Notice: Undefined variable: audio_style in link_field_formatter_field_formatter_view() (line 357 of /usr/share/nginx/html/drupal7/sites/all/modules/contrib/link_field_formatter/link_field_formatter.module).
Play audio without download link:
Notice: Undefined variable: audio_style in link_field_formatter_field_formatter_view() (line 368 of /usr/share/nginx/html/drupal7/sites/all/modules/contrib/link_field_formatter/link_field_formatter.module).
Notice: Undefined variable: audio_style in link_field_formatter_field_formatter_view() (line 373 of /usr/share/nginx/html/drupal7/sites/all/modules/contrib/link_field_formatter/link_field_formatter.module).
When using Video formatter:
Notice: Undefined variable: video_style in link_field_formatter_field_formatter_view() (line 423 of /usr/share/nginx/html/drupal7/sites/all/modules/contrib/link_field_formatter/link_field_formatter.module).
Notice: Undefined variable: attributes in link_field_formatter_field_formatter_view() (line 424 of /usr/share/nginx/html/drupal7/sites/all/modules/contrib/link_field_formatter/link_field_formatter.module).
Notice: Undefined variable: attributes in theme_link_field_formatter_video() (line 203 of /usr/share/nginx/html/drupal7/sites/all/modules/contrib/link_field_formatter/link_field_formatter.inc).
Warning: implode(): Invalid arguments passed in theme_link_field_formatter_video() (line 203 of /usr/share/nginx/html/drupal7/sites/all/modules/contrib/link_field_formatter/link_field_formatter.inc).
The audio player seems to be throwing fatal errors on the link rendering:
Audio (Player):
Recoverable fatal error: Argument 1 passed to drupal_attributes() must be of the type array, null given, called in /usr/share/nginx/html/drupal7/includes/theme.inc on line 1739 and defined in drupal_attributes() (line 2435 of /usr/share/nginx/html/drupal7/includes/common.inc).
Audio (Embed):
Recoverable fatal error: Argument 1 passed to drupal_attributes() must be of the type array, null given, called in /usr/share/nginx/html/drupal7/includes/theme.inc on line 1739 and defined in drupal_attributes() (line 2435 of /usr/share/nginx/html/drupal7/includes/common.inc).
Comment #9
mandarmbhagwat78 CreditAttribution: mandarmbhagwat78 commentedFixes made as reported in the comment. PFA screenshot.
Comment #10
Drupal8 CreditAttribution: Drupal8 commentedI have tested local and with pareview.sh. The things i have found are :
Nice comments, really helped work with it.
I didn't find anything serious.
Comment #11
klausi@Drupal8: looks like you forgot to change the status. Anything else that you found other than the minor coding standard issues or should this be set to RTBC?
Comment #12
Drupal8 CreditAttribution: Drupal8 commentedNo serious issue.
Comment #13
PA robot CreditAttribution: PA robot commentedProject 1: https://www.drupal.org/node/2858820
Project 2: https://www.drupal.org/node/2840573
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #14
apaderno