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.

Content That Isn't an Entry + Entry Detail Page with a Channel Entry List

November 04, 2010 8:09pm

Subscribe [5]
  • #1 / Nov 04, 2010 8:09pm

    mediacontour

    5 posts

    Hello first time developing using Expression Engine and I have 2 items I need help with.

    1. I have a features page which is currently displaying entries from the “Features” channel. But aside from listing out the different features on this channel. I have a small paragraph of text at the bottom of the page that I want to have controlled through the CMS and not static. Any help or suggestion of the best way to do this? I don’t think snippets or global variables are good for this.

    2. I have a events page which is currently displaying entries from the “Events” channel. Of course each entry is linking to a page displaying the full details of the event. But on this “Event Detail” page I still want to display a list of other events on a sidebar. But it seems no matter how many times I use the channel tag to display entries it just still only show the one entry which I clicked on the previous “Events” page.

    Any help would be greatly appreciated. So far I’m loving Expression Engine.

  • #2 / Nov 04, 2010 8:09pm

    mediacontour

    5 posts

    Hello first time developing using Expression Engine and I have 2 items I need help with.

    1. I have a features page which is currently displaying entries from the “Features” channel. But aside from listing out the different features on this channel. I have a small paragraph of text at the bottom of the page that I want to have controlled through the CMS and not static. Any help or suggestion of the best way to do this? I don’t think snippets or global variables are good for this.

    2. I have a events page which is currently displaying entries from the “Events” channel. Of course each entry is linking to a page displaying the full details of the event. But on this “Event Detail” page I still want to display a list of other events on a sidebar. But it seems no matter how many times I use the channel tag to display entries it just still only show the one entry which I clicked on the previous “Events” page.

    Any help would be greatly appreciated. So far I’m loving Expression Engine.

  • #3 / Nov 05, 2010 11:15am

    Ingmar

    29245 posts

    I have merged your threads.

    I have a features page which is currently displaying entries from the “Features” channel. But aside from listing out the different features on this channel. I have a small paragraph of text at the bottom of the page that I want to have controlled through the CMS and not static. Any help or suggestion of the best way to do this? I don’t think snippets or global variables are good for this.

    I think snippets or global variables would be an excellent choice for this, but if you want something else I’d suggest another channel entry. Perhaps create a separate channel for that purpose, and hardcode the entry_id. Make sure to use dynamic=“no”. Or you could use an embedded sub template, of course.

    But on this “Event Detail” page I still want to display a list of other events on a sidebar. But it seems no matter how many times I use the channel tag to display entries it just still only show the one entry which I clicked on the previous “Events” page.

    Please use dynamic=“no” as suggested above, in your sidebar.

  • #4 / Nov 05, 2010 8:25pm

    mediacontour

    5 posts

    I have merged your threads.

    Thank you I didn’t mean to post it twice.

    I think snippets or global variables would be an excellent choice for this, but if you want something else I’d suggest another channel entry. Perhaps create a separate channel for that purpose, and hardcode the entry_id. Make sure to use dynamic=“no”. Or you could use an embedded sub template, of course.

    I chose to go with snippets/global variables for the time being. I’m accustom to CMS solutions which allow for editing the content of a page plus having a stream of objects similar to entries. Snippets/global variables will do.

    Please use dynamic=“no” as suggested above, in your sidebar.

    I used this and it did display the categories like I wanted. Thank you.

    New Questions
    1. On this same events detail page I’d like to have 2 links for previous and next events. Is this possible using EE tags?

    2. On the sidebar list of events is it possible to list events in relation to the main event.

    For example:
    If this is the detail page for event #2 the list of events on the sidebar displays events #3, event #4 and event #5.

    If this is the detail page for event #4 the list of events on the sidebar displays events #5, event #6 and event #7

    Etc.

    Again Thank you for the reply!!

  • #5 / Nov 07, 2010 10:16am

    Greg Salt

    3988 posts

    Hi mediacontour,

    For your number 1, please take a look at Channel Pagination.

    For your number 2, it depends on how these entries are related but please take a look at the Channel Related Categories mode.

    Cheers

    Greg

  • #6 / Nov 10, 2010 3:50pm

    mediacontour

    5 posts

    Hi mediacontour,

    For your number 1, please take a look at Channel Pagination.

    For your number 2, it depends on how these entries are related but please take a look at the Channel Related Categories mode.

    Cheers

    Greg

    Thanks for the reply and suggestions. Unfortunately I wasn’t able to get this to work.

    Here’s is my code for index.html and single.html. The titles on index.html are linking to single.html

    index.html
    This is displaying a list of events. Clicking on the title of the event links you to this specific events detail page which is being rendered by single.html below.

    {exp:channel:entries channel="events" limit="5"}
        {if count == 1}
            <div id="first">
                {event_image}
                <a href="http://{title_permalink=">{title}</a>
                {event_start_date {date_format}}
                {event_description}
            </div>
        {if:else}
            {event_image}
            <a href="http://{title_permalink=">{title}</a>
            {event_start_date {date_format}}
            {event_description}
        {/if}
    {/exp:channel:entries}

    single.html
    I’m having trouble getting the pagination to work. Also the sidebar is displaying the first 3 events in desc order. I would like it to display the 3 next events after the currently displayed event.

    {exp:channel:entries channel="events"}
        {event_image}
        <a href="http://{title_permalink=">{title}</a>
        {event_start_date {date_format}}
        {event_description}
        
        {paginate}
            {if previous_page}
                <a href="http://{auto_path}">Previous Page</a>  
            {/if}
            {if next_page}
                <a href="http://{auto_path}">Next Page</a>
            {/if}
        {/paginate}
    {/exp:channel:entries}
    
    <div id="eventSidebar">
        {exp:channel:entries channel="events" limit="3" dynamic="no"}
            {event_image}
            <a href="http://{title_permalink="><strong>Deadlines.com Training Seminar</strong></a>
            {event_start_date {date_format}}
        {/exp:channel:entries}
    </div>
  • #7 / Nov 11, 2010 10:17am

    Sue Crocker

    26054 posts

    mediacontour, have you seen:

    http://ellislab.com/blog/entry/the_importance_of_semantics_pagination/

    The Previous/Next pagination is outside the exp:channel:entries loop.

    As far as the sidebar goes, I’d suggest some sort of query to bring back the fields you need. There’s offset which won’t work in this case, so you’re left with start_on_date. That’s more of a HowTo or CodeShare Corner kind of question..

  • #8 / Nov 11, 2010 1:02pm

    mediacontour

    5 posts

    mediacontour, have you seen:

    http://ellislab.com/blog/entry/the_importance_of_semantics_pagination/

    The Previous/Next pagination is outside the exp:channel:entries loop.

    As far as the sidebar goes, I’d suggest some sort of query to bring back the fields you need. There’s offset which won’t work in this case, so you’re left with start_on_date. That’s more of a HowTo or CodeShare Corner kind of question..

    Thank you so much! I don’t know how I missed this in the User Guide.

  • #9 / Nov 11, 2010 6:57pm

    Ingmar

    29245 posts

    So, does the explain it fully to you? Do you still require assistance?

  • #10 / Nov 11, 2010 7:04pm

    mediacontour

    5 posts

    So, does the explain it fully to you? Do you still require assistance?

    Yes, thank you.

  • #11 / Nov 12, 2010 2:12am

    John Henry Donovan

    12339 posts

    Glad you are up and running again. Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases