Pages

Tuesday, January 31, 2012

Publishing Following Pages

Often, users would experience the issue of following page won't publish. This issue is actually template code related. Management Server will not publish pages that it cannot get to via link.

For example, pages are connected to lst_navigation but do not publish when "publish all following pages" option is selected.


That is because the following code is missing in the template code and Management Server cannot crawl to following pages.
<!--
<!IoRangeList>
<%lst_navigation%>
<!/IoRangeList>
-->

Friday, January 6, 2012

Duplicate Pages

Most publication issues can be caused by pages connected to multiple locations. The most common symptom is having duplicate pages on the site.

For example:  Both page 1 and page 2 are connected to multiple locations with different publication package at each location, so the pages will get published twice, each time to a different location.


Obsolete Solution (Not working in 9 or 10)
Edit the content class of "RSS Listing", use preexecution to replace islink=2 with islink=10 to trick CMS into thinking the following pages are references, hence not to crawl and publish following pages. 

All Version Compatible Solution
Use the list to pull info_page_guid from the connected page.
<!IoRangeList>
<!IoRangeNoRedDotMode><!IoRangeRedDotMode><!--<%lst_pages%>--><!/IoRangeRedDotMode><!/IoRangeNoRedDotMode>
<li><%!! Context:Pages.GetPage(Guid:<%inf_page_guid%>).GetUrl(Bool:True) !!%></li>
<!/IoRangeList>

Page 1 and page 2 still get published according to different publication packages, but links generated always point to the pages' main link