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.

Listing all entries

January 24, 2009 5:25pm

Subscribe [2]
  • #1 / Jan 24, 2009 5:25pm

    sedated

    7 posts

    Hey folks.

    I am a little rusty and am having some issues.  I want to list the titles of all the entries in a weblog on the entry pages.  The issue that I am having is that I can only get the current listing to show up only in the sidebar.  How can I go about including all the entry titles in the following template.

    {embed="global/header/" 
    
    my_page_title="News - 
    {exp:weblog:entries weblog="news" limit="1" disable="trackbacks|member_data|pagination|categories"}
        {title}
    {/exp:weblog:entries}"}
    
    {embed="global/nav" loc="news"} 
    <div id="content">
    <div id="content-left">
        <div class="nav-sidebar">
                <h3>Articles</h3>
    <p>                <ul class="navlist-sidebar"><br />
                        {exp:weblog:entries weblog="news" disable="trackbacks" paginate="bottom" limit="10"}</p>
    
    <p>                        <div class="post"><br />
                                    {if news-post}<a href="http://{url_title_path=news/article}">{title} {entry_date format="%m/%d/%y"}</a>{/if}<br />
                            </div></p>
    
    <p>                    {/exp:weblog:entries}<br />
                    </ul><br />
            </div>    <br />
    </div></p>
    
    <p><div id="content-right"><br />
        {exp:weblog:entries weblog="news" disable="trackbacks" limit="1"}<br />
            <div class="post"><br />
                </p><h2>{title}</h2>
    <p>            By {news-author}<br />
                    {news-post}<br />
                </div><br />
        {/exp:weblog:entries}<br />
        </div><br />
    </div></p>
    
    <p></div><br />
    {embed="global/footer/"}

  • #2 / Jan 24, 2009 5:49pm

    Mark Bowen

    12637 posts

    I was going to say that all you will need to do is utilise the dynamic=“off” parameter in your weblog as that would get it all working however you seem to have some rather funky 😉 code above, particularly the fact that you have a weblog tag inside an embed.

    Not really sure what you are doing there and I don’t think you should be doing things in that way but that may just be a copy / paste error or something.

    Anyway if you have a weblog tag on a page such as a single entry page and it is only returning the one entry this is because you don’t have the dynamic=“off” parameter in your weblog tag which then means the weblog tag will take information from the URL thus only showing the one entry.

    Best wishes,

    Mark

  • #3 / Jan 24, 2009 6:24pm

    sedated

    7 posts

    Mark - It was a copy/paste error. 😊

    The dynamic=“off” tag did it.

    All is working now.

    Thanks!

  • #4 / Jan 24, 2009 6:31pm

    Mark Bowen

    12637 posts

    Excellent news!!

    Hope everything goes well for you.

    Best wishes,

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases