Search the FirstSpirit Knowledge Base
Hello,
I would like to get the site store variable value where i defined the pageref:.I know the name of the variable.
New news data source is selected and the absolute path need be get from the site store variable.
Based on the above images, I did a alternate mapping for the already available news.Here i would like to get the absolute path of the news detail page.page ref is defined in the site store.see the image below..
Link Template Source Code:(Using FS_DATASET)
$CMS_IF(isSet(ssNewsDetail) && !lt_entity.isEmpty)$$CMS_REF(ssNewsDetail, contentId:lt_entity.getDataset().getEntity().getValue("fs_id"),abs:setAbsolute)$$CMS_END_IF$
Format Template Code(Atom Feed Code):
$CMS_SET(newsId)$$CMS_VALUE(content.external_link.lt_entity.getDataset().getEntity().getValue("fs_id"))$$CMS_END_SET$
<!-- News Id: $CMS_VALUE(newsId)$ -->
<!-- SiteStoreVariable: $CMS_REF(ssNewsDetail,contentId:content.external_link.lt_entity.getDataset().getEntity().getValue("fs_id"),abs:setAbsolute)$ -->
<!-- SiteStoreVariable: $CMS_REF(ssNewsDetail,contentId:content.external_link.lt_entity.getDataset().getEntity().getValue("fs_id"),abs:2)$ -->
<!-- SiteStoreVariable: $CMS_REF(ssNewsArchiveTemplate,abs:2)$ -->
<!-- SiteStoreVariable: $CMS_REF(ssNewsArchive,abs:2)$ -->
<!-- SiteStoreVariable: $CMS_REF(ssNewsArchivePortal,abs:2)$ -->
Output:
<!-- News Id: 127106 -->
<!-- SiteStoreVariable: -->
<!-- SiteStoreVariable: -->
<!-- SiteStoreVariable: /en/_technical/search/templates/news_archive_vm.vm -->
<!-- SiteStoreVariable: /en/news/archive/archiv.html -->
<!-- SiteStoreVariable: /en/bosch_globalnet/00_homepage_bgn/bzo_newsarchiv.html -->
<atom:entry>
<atom:title>
<![CDATA[New mascot for Yongin Headquarter]]>
</atom:title>
<atom:link rel="detail" type="text/html"
href="http://data.com/en/news/news_detail_page_127106.html" />
<atom:updated>2014-08-29T11:50:26.964+0200</atom:updated>
<atom:id>http://tcsxml.com/EN/bgn/news/127105</atom:id>
<atom:content>
<wcs:news>
<wcs:newsId>127105</wcs:newsId>
I have a atom feed format template,which uses section for referencing the news datasource and Feed Template.Where page is referencing contect selection.(There is no Content variable to configure Maximun number of pages to 0).How to project content projection page to refer content selection section and also page.See the below Image.....
$CMS_SET(newsId)$$CMS_VALUE(content.external_link.lt_entity.getDataset().getEntity().getValue("fs_id"))$$CMS_END_SET$<!-- SiteStoreVariable: $CMS_REF(pageref:"news_detail_page",contentId:newsId)$ --> <!-- News Id: 126978 -->
output : <!-- SiteStoreVariable: --> EMPTY
How to get the value of the newly selected alternate data source value(I have mapped 127105 news to display 127106 news)?ssNewsDetail is defined in the site store variable.
Thanks,
Siva