- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Image Map
Hi,
I have used the sample code from the ODFS but the link reference will not load. The shape, coordinates and text are displaying correctly.
<area shape="$CMS_VALUE(AREA.shape)$" coords="$CMS_VALUE(AREA.coordinates)$" alt="$CMS_VALUE(link.text)$" title="$CMS_VALUE(link.text)$" href="$CMS_VALUE(link.ref)$" />
If I replace link.ref with AREA.link then the entire link, as displayed in the html of the link template, is displayed
How to get ref value from link template?
Regards
Leela
- Labels:
-
Developers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Changed to $CMS_REF(AREA.link.sitestoreref)$ but no luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is sitestoreref the name of the formfield in your linktemplate?
Here is the formm of my linktemplate:
<FS_REFERENCE name="sitestoreref" hFill="yes" sections="no" useLanguages="no">
<FILTER>
<ALLOW type="pageref"/>
<ALLOW type="pagereffolder"/>
<ALLOW type="documentgroup"/>
<ALLOW type="file"/>
<ALLOW type="picture"/>
</FILTER>
<LANGINFOS>
<LANGINFO lang="*" label="Target"/>
<LANGINFO lang="DE" label="Ziel"/>
<LANGINFO lang="ES" label="Destino"/>
<LANGINFO lang="FR" label="Cible"/>
<LANGINFO lang="IT" label="Destinazione"/>
<LANGINFO lang="RU" label="ะฆะตะปั"/>
</LANGINFOS>
<PROJECTS>
<LOCAL name=".">
<SOURCES>
<FOLDER name="root" store="sitestore"/>
<FOLDER name="root" store="mediastore"/>
</SOURCES>
</LOCAL>
</PROJECTS>
</FS_REFERENCE>
and this is the code of the pagetemplate
<img src="$CMS_REF(st_imagemap.getImage())$" usemap="#MAPNAME" />
<map name="MAPNAME">
$CMS_FOR(FLAECHE, st_imagemap.areas)$
<area title="$CMS_VALUE(FLAECHE.link.text)$" href="$CMS_REF(FLAECHE.link.sitestoreref)$" shape="$CMS_VALUE(FLAECHE.shape)$"
alt=google coords="$CMS_VALUE(FLAECHE.coordinates)$" />
$CMS_END_FOR$
</map>
it works like expected for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, it works now


- ยซ Previous
-
- 1
- 2
- Next ยป
- ยซ Previous
-
- 1
- 2
- Next ยป