[TYPO3-english] How to output the absolute path to tt_news image?

Cathy Stephens cathys8780 at gmail.com
Sat Aug 27 19:48:42 CEST 2011


I added this to setup in a template record sitting on my single news page:
page.config.absRefPrefix < config.baseURL

Mainly so we can link from Facebook and it will pull the images on the
page - Facebook does not seem to want to pull in relative paths to
images.

-- 
Cathy Stephens


On Sat, Aug 27, 2011 at 8:27 AM, Morten Kjems <mortenkjems at gmail.com> wrote:
> Hi.
>
> I need to output the absolute path to the tt_news image.
>
> I am using the plugin 'Generic Markers' to do this.
>
> Here is my setup so far.
>
>
> plugin.tt_news.genericmarkers {
> data = image
> ### path to tt_news image
> startimage = TEXT
> startimage {
> field = generic_image
> wrap = {$baseURL}fileadmin/|
> }
> }
>
> This will output:
> http://domain.com/fileadmin/myimage.png
>
> But what I need is:
> http://domain.com/fileadmin/subfolder/myimage.png
>
> I cant include the subfolder in in the wrap since the images are stored in
> different folders.
>
> Does anyone know how include the correct subfolder?
>
> All suggestions are most welcome.
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list