Results 1 to 3 of 3

Thread: Collapse entry with page nav

  1. #1
    Join Date
    Feb 2008
    Posts
    296

    Default Collapse entry with page nav

    Brian, I don't understand the logic behind the following code in the "SHOWENTRY" template:
    Code:
                    <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?

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    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.
    Code:
    				<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>
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

  3. #3
    Join Date
    Feb 2008
    Posts
    296

    Default

    Perfect...thanks Brian

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Missing collapse when editing modules in page edit
    By qG ThaLiX in forum Troubleshooting & Problems
    Replies: 2
    Last Post: 06-12-2010, 04:15 PM
  2. Blog entry to display on CMPS page
    By LenB in forum "How Do I..." Questions
    Replies: 6
    Last Post: 08-31-2008, 03:10 AM
  3. Permission to view entry listing, but not entry details
    By juinjuin in forum "How Do I..." Questions
    Replies: 6
    Last Post: 03-13-2008, 10:09 AM
  4. Problem on Submit Entry Page
    By pg116 in forum Troubleshooting & Problems
    Replies: 1
    Last Post: 09-21-2007, 04:53 PM
  5. Submit Entry Page layout
    By attroll in forum Feedback & Suggestions
    Replies: 0
    Last Post: 08-01-2007, 12:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •