[Typo3] Dynamic filename for images with page title in it
Christopher
tombedlam at yahoo.com
Thu Mar 24 07:17:57 CET 2005
Hi,
--- Matthias Taugwalder <matthias.taugwalder at bluewin.ch> wrote:
>
> Thanks for your reply.
>
> What I need to do: Insert a image file in the page, containing the page's
> title in the filename.
> Let's say /path/to/files/{page:title}.jpg
>
Sorry, I wasn't clear enough. I can see that this is what you want to do,
but *why* do you want to do it? If (for example), you're just trying to
dynamically call a page specific image, there are other (probably better)
available ways to do it. In any case, you've almost got one of the ways
above.
Try this for example:
5 = HTML
5.value = <img src="/path/to/files/{page:title}" alt="Alt text :)"
width="100" height="80" />
5.value.insertData = 1
See http://typo3.org/documentation/document-library/doc_core_tsref/stdWrap/
(search for 'insertData').
-Christopher
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the TYPO3-english
mailing list