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.

How to show main entry and titles of all entries

July 11, 2007 8:17am

Subscribe [2]
  • #1 / Jul 11, 2007 8:17am

    ryal001

    42 posts

    Hi, I have a weblog for calendar events. I show a summary of future events in a sidebar on my homepage (title and date of each event) and clicking on the title leads to a detail page. Simple enough and works fine.

    What I also want to do on the detail page is have the same summary of future events in a sidebar so that users can click on other events without returning to the index page.  However, even though I specify the weblog and number of entries in a separate tag pair than the detail entry, the weblog is still restricted to only the current event (i.e. the parameter in the event weblog entry URL).  This doesn’t seem unreasonable but is there any way around it?

    To try be clear, what I want is one main weblog entry in one EE tag pair and all future weblog entries, from the same weblog, in another EE tag pair on the same page.

    Here is the [abbreviated] code on the detail page:

    <!-- In sidebar Div ->
    {exp:weblog:entries weblog="{my_calendar}" show_future_entries="yes" orderby="date" sort="asc" limit="10"} 
                    
      <a href="http://{title_permalink=">{title}</a>
     
    {/exp:weblog:entries}
    
    
    <!-- In main entry Div ->
    {exp:weblog:entries limit="1" show_future_entries="yes" disable="member_data|trackbacks"}
    
        {title}
        {event_description}
    
    {/exp:weblog:entries}
  • #2 / Jul 11, 2007 8:20am

    silenz

    1651 posts

    Add dynamic=“off” to the parameters in the sidebar tag.

  • #3 / Jul 11, 2007 8:35am

    ryal001

    42 posts

    That worked.  Thank you 😊

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

ExpressionEngine News!

#eecms, #events, #releases