Do I still need nav list element code in version 11 for the publisher?

37 views
Skip to first unread message

Markus Giesen

unread,
Sep 5, 2012, 7:36:46 PM9/5/12
to reddot-c...@googlegroups.com
Hi there,

In the footer of every foundation page I have added something like this:

Can we remove this code or does page build still need it to publish pages in the nav mgt?

 <reddot:cms>

  <if>
    <query valuea="Context:CurrentRenderMode" operator="==" valueb="Int:2">
      <htmltext>
        <!--
        // <!IoRangeList><%list_nav%> //
        <!/IoRangeList>
        // this needs to be here for all pages which are not inside navMan,
        // those pages will otherwise not be "linked" as per reddot definition
        // and therefore not published when "publish following pages" is clicked
        -->
      </htmltext>
    </query>
  </if>
</reddot:cms>


It works quite nicely when adding a .NET comment around it so that it doesn't get out to the website but it adds a fair bit of extra load to the publication.

Is this still required?
I recall having a conversation with Jian over this but forgot the outcome...

Thanks,
Markus

Jian Huang

unread,
Sep 6, 2012, 8:01:44 AM9/6/12
to reddot-c...@googlegroups.com
Hi Markus,

The .NET or ASP comment used to work in 7.x.

Then how page builder crawls is changed in 9.x and up.  The page builder seems to crawl the link after everything (rendertag, Preexecution, RDExecution) is done.

So yeah, you need it if you want reliable publishing of following pages.

I would even skip the rendertag tag and use

<!--
<!IoRangeList>
<%list_nav%>
<!/IoRangeList>

-->

Less code to write and maintain.

-Jian
Reply all
Reply to author
Forward
0 new messages