the CMS will still publish the additional page as the list placeholder
is exposed in the HTML source. The replace method will just change the
location of the displayed link in the page - not if and where the
linked pages are published to.
The only way to stop pages from publishing is to 'hide' the list
placeholder. As shown in the article, to do this you need to wrap the
list placeholder within NoRedDot and RedDot mode block marks - so
essentially the link is hidden from the source and the links wont be
published. Its important the the list placeholder is displayed within
the list block marks so each page connected to the list will still get
processed:
<!IoRangeNoRedDotMode><!IoRangeRedDotMode><!--
'treat the link as reference not as link to avoid
duplicate publishing
<%=Replace("<%list_teaser%>","islink=2","islink=10")%>
--><!/IoRangeRedDotMode><!/IoRangeNoRedDotMode>
To display the correct link to the page, use the following:
<a href="<%!! Context:Pages.GetPage(Guid:<%info_PageGuid%>).GetUrl() !!
%>"><%hdl_pagetitle%></a> - the <%info_PageGuid%> is the page guid
pulled in from the connected page. You will need to ensure that this
placeholder is within the connected page template for this method to
work.
Hope that helps!
Kim
<div id="feature">
<h2>Featured</h2>
<!IoRangePreExecute>
<!IoRangeList>
<h3><a href="<%=Replace("<%list_pages%>","islink=2","islink=10")
%>"><%text_feature_title%></a></h3>
<p><%img_feature%><%text_feature_summary%></p>
<div class="button-grey">
<div class="button-grey-text">
<a href="<%=Replace("<%list_pages%>","islink=2","islink=10")
%>">More about <%text_feature_short%></a>
</div>
</div>
<!/IoRangeList>
<!/IoRangePreExecute>
</div>
On Jan 24, 12:03 pm, gk <
gail.b...@tga.gov.au> wrote:
> Having problems with duplicate content publishing. I've followed the
> directions inhttp://
www.reddotcmsblog.com/duplicate-content-publishing-seo-and-ope...