As you know, the Web Site Section metadata field (xWebsiteSection) is in the format: siteId:nodeId
That's not particularly helpful when using the default Headline View on search results pages of the content server. Display the section label instead by adding this dynamic HTML resource:
<@dynamichtml slim_table_cell_text@><$if ColumnProperties.id like "xWebsiteSection"$><$"<$theSection = eval(#active.xWebsiteSection)$>"$><$"<$siteID = strSubstring(theSection, 0, strIndexOf(theSection, \":\"))$>"$><$"<$sectionID = strSubstring(theSection, strIndexOf(theSection, \":\")+1)$>"$><$"<$if strLength(theSection) > 0$>"$><$"<$ssGetWebsiteName(siteID) & \" : \" & ssGetNodeLabel(siteID,sectionID)$>"$><$"<$endif$>"$><$else$><$include super.slim_table_cell_text$><$endif$><@end@>
Good luck.
No comments:
Post a Comment