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.

Trouble with simple archive page

November 04, 2010 1:50pm

Subscribe [3]
  • #1 / Nov 04, 2010 1:50pm

    PD99

    5 posts

    Trying to create a simple archive page using the built-in archive template. EE is pulling the stories correctly and displaying the titles properly in a list on the page, but the links to the stories don’t work.

    This is the archive template code…

    <ul>
    <li><a href="http://{title_permalink=">{title}</a></li>
    </ul>

    It renders this for an individual story…

    <ul>
    <li><a href="http://ca1vmextweb01.mysite.com/KTQ/index.php/KTQ/press_coverage_october_2010/">Press Coverage October 2010</a></li>
    </ul>

    But the permalink doesn’t work. It just defaults to the main index page. I know I’m missing something simple here. Any suggestions? Never had this issue with an archive before.

    Thank you in advance for your help.

     


    Using 1.6.6 Build:  20081212

  • #2 / Nov 05, 2010 4:25am

    John Henry Donovan

    12339 posts

    PD99,

    The tag is incomplete. See title_permalink

    <ul>
    <li><a href="http://{title_permalink=weblog/archives">{title}</a></li>
    </ul>

    I would also recommend upgrading to EE1.7 as you are on a very old version and there have been security releases in between

  • #3 / Nov 05, 2010 12:53pm

    PD99

    5 posts

    Thank you John. I’m still strugglin’ here. Based on your response and the documentation, I can get the archive page to list the recent entries and render what seems like a good link to the content, but the link doesn’t go to the entry. Do I need to toggle on the permalink function or something like that in the control panel?

  • #4 / Nov 05, 2010 1:27pm

    PD99

    5 posts

    Curious. This code will render a link that displays the right title but doesn’t link to the content…

    <ul>
    <li><a href="http://{title_permalink=">{title}</a></li>
    </ul>

    But this one will render the same title link and that link successfully goes to the content entry…

    <ul>
    <li><a href="http://{title_permalink=">{title}</a></li>
    </ul>

    The first one came from the default “archive’ template in EE. I don’t think my solution is “by the book” but it works for this application. If you have a moment to explain why you think the default from the EE template didn’t work, I’d love to understand what’s happening.

    And thanks for the “upgrade” advice. It’s on my list to upgrade to EE2. Just haven’t got around to it yet.

  • #5 / Nov 05, 2010 1:36pm

    PD99

    5 posts

    Well, I can’t get the code to display properly here so that last post doesn’t make much sense. I basically swapped out the word “article” for “archives”. That works. Thanks for your assistance. Much appreciated.

  • #6 / Nov 06, 2010 3:49pm

    Greg Salt

    3988 posts

    Hi PD99,

    Glad that you got this sorted out. Please post back if you have further questions or problems.

    Cheers

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases