[TASK] Update fluid image viewhelper documentation 19/49319/2
authorHenry Singleton <henry@henrysingleton.com>
Tue, 2 Aug 2016 01:51:02 +0000 (11:51 +1000)
committerBenni Mack <benni@typo3.org>
Tue, 2 Aug 2016 15:00:22 +0000 (17:00 +0200)
Adds PDF file example to the fluid "image" viewhelper documentation.
This demonstrates a capability of the image viewhelper that isn't currently
explained in the documentation.

Change-Id: Ice82c005ec66173c19d0f29efe069d23b3f46fdc
Resolves: #77348
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/49319
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/fluid/Classes/ViewHelpers/ImageViewHelper.php

index bf1a9f3..565d565 100644 (file)
@@ -48,7 +48,15 @@ use TYPO3\CMS\Extbase\Domain\Model\AbstractFileFolder;
  * (depending on your TYPO3s encryption key)
  * </output>
  *
- * <code title="non existing image">
+ * <code title="Other resource type (e.g. PDF)">
+ * <f:image src="fileadmin/user_upload/example.pdf" alt="foo" />
+ * </code>
+ * <output>
+ * If your graphics processing library is set up correctly then it will output a thumbnail of the first page of your PDF document.
+ * <img src="fileadmin/_processed_/1/2/csm_example_aabbcc112233.gif" width="200" height="284" alt="foo">
+ * </output>
+ *
+ * <code title="Non-existant image">
  * <f:image src="NonExistingImage.png" alt="foo" />
  * </code>
  * <output>