ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Issue with title_permalink in sidebar

February 22, 2011 12:41pm

Subscribe [2]
  • #1 / Feb 22, 2011 12:41pm

    I am having a weird issue with some of my graphics disappearing when a link in the sidebar is accessed. Here is what I have in the SIDEBAR template for a link:

    {exp:channel:entries channel="answers" dynamic="off" category="6"}
    <a href="http://{title_permalink=answers/operations}" title="{title}">{question}</a>
    
    {/exp:channel:entries}

    This is what is happening (see images). There is a drop shadow on the outer edge of the sidebar and when I switch from page to page it is fine. However, when I use the title (permalink) link to see an entry it jacks up the drop shadow and breaks the logo in the header. It doesn’t do it on the first link because it is going to the index page of the channel. It is only happening if I choose a link that is in another template page inside the channel.

    http://img193.imageshack.us/img193/803/screenshot1lq.png

    Thanks for any answers. I have tried what I know.

    http://img831.imageshack.us/img831/5907/screenshot2uk.png

    The sidebar is an embed. Can someone tell me what I am doing wrong please?

    This is the code inside the channel/index page. The actual channel name is called ANSWERS. Just going with the KISS method here.

    {embed="includes/htmlHeader"}
    {embed="includes/address"}
    <div id="container">
    {embed="includes/header"}
    {embed="includes/mainNav"}
    
    <div id="mainContent">
    {embed="answers/sidebar"}
    
    <div class="left">
    <div class="copy">
    <div class="headline">
    Questions & Answers: HR and Benefits
    </div>
    {exp:channel:entries channel="answers" dynamic="off" category="5"}
    <h1>{question}</h1>
    {answer}
    {/exp:channel:entries}
    </div>
    
    </div>
    </div>
    
    {embed="includes/footer"}
    </div>
    {embed="includes/htmlFooter"}

    This is the code for the template OPERATIONS inside the ANSWERS channel:

    {embed="includes/htmlHeader"}
    {embed="includes/address"}
    <div id="container">
    {embed="includes/header"}
    {embed="includes/mainNav"}
    
    <div id="mainContent">
    {embed="answers/sidebar"}
    
    <div class="left">
    <div class="copy">
    <div class="headline">
    Questions & Answers: Operations
    </div>
    {exp:channel:entries channel="answers" dynamic="off"category="6"}
    <h1>{question}</h1>
    {answer}
    {/exp:channel:entries}
    </div>
    
    </div>
    </div>
    
    {embed="includes/footer"}
    </div>
    {embed="includes/htmlFooter"}
  • #2 / Feb 23, 2011 5:57am

    John Henry Donovan

    12339 posts

    Jonathan,

    The correct syntax the dynamic parameter is ‘no’

    {exp:channel:entries channel="answers" dynamic="no" category="6"}

    But I don’t believe that is your poblem.

    Check that the URL for that img in your CSS is correctly linked with a forward slash in front of it if a relative one

    Have you got a link to the page in question?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases