PDA

View Full Version : Collapse entry with page nav


ibaker
12-26-2010, 05:50 PM
Brian, I don't understand the logic behind the following code in the "SHOWENTRY" template:
<vb:if condition="$show['pagesbox']">
<div style="padding: {vb:stylevar padding}; float: {vb:stylevar right}; width: 200px">
<div class="blockhead">
<a class="collapse" id="collapse_entrypages" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_entrypages}.png" alt="" border="0" /></a>
{vb:rawphrase x_navigation, {vb:rawphrase entry}}
</div>
<div class="blockbody">
<ol>{vb:raw pagelinkbits}</ol>
</div>
</div>
</vb:if>
If you have multi pages in an entry and you show the pages navigation box, the code places the collapse entry feature on the entry header. The icon is misaligned and the link contains a double folder name entry in it...i.e. mydomain.com/people/people/famous-aviators-1/nancy-bird-walton-obe-1915-2009-1/#top.

Was the intention to place the collapse on the pages navigation box or should the collapse entry be outside of the pages navigation box block to have on the entry all the time whether you have the pages navigation box or not?

Brian
12-27-2010, 10:58 AM
Thank you for pointing this out. I'm not completely sure what I did or what I was thinking there, but the icon should be to the right of the "Entry Navigation" box. If you will replace the code you posted above in the 'ADV_DYNA_SHOWENTRY' template with the following though that should take care of the issue.
<vb:if condition="$show['pagesbox']">
<div class="collapse" style="float: {vb:stylevar right}; width: 200px">
<div class="blockhead">
<a class="collapse" id="collapse_entrypages" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_entrypages}.png" alt="" border="0" /></a>
{vb:rawphrase x_navigation, {vb:rawphrase entry}}
</div>
<div class="blockbody" id="entrypages">
<div class="blockrow">
<ol>{vb:raw pagelinkbits}</ol>
</div>
</div>
</div>
</vb:if>

Our Sponsors
 

ibaker
12-27-2010, 04:08 PM
Perfect...thanks Brian