Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Sitemap Segmentation
Ashish_Sangal
Hi there,
We are using Teamsite 7.2.1.
We added a new segment (Segment1) in the sitemap and try to fetch the newly added segment in the sitemap using the standard component with the external call to interwoven Java class. com.interwoven.livesite.external.impl.LivesiteSite Map method getSiteMap.
This method returns only the Primary segment but default.sitemap contains both the segments i.e (Primary & Segment1).
Anyone have any idea how to get all the segments in a sitemap.
Thanks in advance.
Find more posts tagged with
Comments
Bowker
I
believe
if you don't execute RulesEngineController.executeSiteSegments it might give you all of the sitemaps.
You can create your own external that can append it to the XML being sent to the component.
Another option you have is to, assuming you are using an XSL component, use <xsl:variable name="SITEMAP" select="document('....')"/> replacing ... with the absolute path to the sitemap file on the server.
Rick Poulin
Anyone have any idea how to get all the segments in a sitemap.
Use either of these. The first is faster but kinda sorta undocumented; the latter is fully supported but has zero caching on it.
[PHP]
Document sitemap = (Document) context.getLiveSiteDal().getSiteMap().getDocument().clone();
Document sitemap = ExternalUtils.readXmlFile(context, "sites/" + context.getSite().getName() + "/default.sitemap");
[/PHP]
This gives you the raw content in separate tree structures. If you want a single merged tree that combines multiple segments, use LivesiteSiteMap#getMergedSiteMap(context) with component parameter "mergeParams" set to a CSV of segments you want merged together.
SerialNumber.rptdesign