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.

Pages use multiple channels?

April 24, 2012 5:35am

Subscribe [1]
  • #1 / Apr 24, 2012 5:35am

    Sander @ Silo

    5 posts

    Hello Everyone, my first post in the forum.

    I’ve been working with EE for a while now, and I absolutely love it. There is one thing I’m struggling now, and I can’t seem to find the explanation anywhere…

    I’m working on this site, and I have several pages with their own template. Let’s say the page is called ‘about’. I have a template in the group site, thats called ‘about.html’. So the link to this page is: http://www.example.com/site/about
    The about template has a couple of blocks like this with different channels:

    {exp:channel:entries channel="quotes" sort="asc" disable="categories|member_data|pagination|trackbacks"}
      // do something nice with the quotes
    {/exp:channel:entries}

    So far so good. The problem is that I was hoping to give the user some control over the page, So I created a page with the page module. This is because I use the SEO Lite plugin to give the user control over the meta-tags and title. The custom URL I created for the page is http://www.example.com/about (so without the ‘/site’). The page uses the same template (the site/about.html)

    Sorry for the long intro, but what I don’t get is:
    When I go to http://www.example.com/site/about the page works as it should be. The meta-tags and title tags from the page-module work, and all the other code works.

    When I go to http://www.example.com/about it doesn’t load any information from the channel:entries tags. So it DOES get the data from the page-module (the title and metatags), but nothing is being shown withing ANY other channel:entries tag. Is this supposed to work like this? And could you tell me what would be a good method to create something like this?

    Thanks in advance! And sorry about the long post 😉

     

  • #2 / Apr 24, 2012 5:39am

    Sander @ Silo

    5 posts

    So in short: I can’t use the channel:entries tag on a Page created with the Page-module?

  • #3 / Apr 24, 2012 6:06am

    Sander @ Silo

    5 posts

    OK, solved by the helpful EE-people on twitter! I forgot the dynamic=“off” bit on the channel:entries-tags… :/

  • #4 / Apr 25, 2012 10:47am

    Shane Eckert

    7174 posts

    Hello Silo,

    I am happy to hear that the community on Twitter was able to help you out!

    That dynamic=“off” is a common one.

    If you need anything else, please just let us know by opening a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases