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.

Can I use Pages module and still have dynamic content?

November 21, 2008 6:17am

Subscribe [2]
  • #1 / Nov 21, 2008 6:17am

    tr309

    24 posts

    I’m working on converting a large static site into ExpressionEngine. It currently has lots of pages which are in lots of folders and sub-folders. I would like to retain the existing URL structure as much as possible. Some examples below:

    /about-us/
    /contact-us/
    /private-services/
    /private-services/broking/
    /private-services/broking/risk-management/
    /private-services/broking/pricing/
    /institutional-services/broking/risk-management/
    /institutional-services/broking/pricing/

    (I don’t mind about the /index.php/ at the start)

    I was advised to look at using the Pages module so I started down that road but now I’ve hit a stumbling block.

    I have a main content section which is driven from a weblog called “main-content”. Using the Pages module allows me to assign a URL to the published content in that weblog so that it appears depending on the URL in the address bar.

    On the right-hand side of my template is a “Latest news” box which shows 3 snippets of the latest news articles. I want this to show on every page but whenever the Pages module is active and main-content is assigned to a particular URL the news items no longer appear.

    Here is a mockup I’ve done to help illustrate my problem.

    http://www.flickr.com/photos/32639490@N06/3047897622/sizes/o/

    Is there something I’m doing wrong?
    Is this even possible?

    I’m open to any suggestions.

    Many thanks,

    Rich

  • #2 / Nov 21, 2008 10:52am

    Philip Zaengle

    293 posts

    I think what you’re looking for is the dynamic=“off” tag.

    For the latest new section do something like.

    {exp:weblog:entries limit="3" weblog="news" dynamic="off"}
    {title}
    {summery}
    {/exp:weblog:entries}

    Without the dynamic=“off” the weblog is trying to filter base on the URL. Hope that help!

  • #3 / Nov 21, 2008 10:53am

    Philip Zaengle

    293 posts

  • #4 / Nov 21, 2008 11:46am

    tr309

    24 posts

    Thanks for that. Tried it and it didn’t work in this instance.

    I didn’t want to give up there so had a look around the parameters. I came across the ‘show_pages’ parameter:

    http://expressionengine.com/docs/modules/weblog/parameters.html#par_show_pages

    This seems to have done the trick.

    Code below:

    {exp:weblog:entries weblog="news" orderby="news-date" sort="desc" limit="3" show_pages="no"}
    
    <div class="news-item">
    <span><strong>{news-date format="%d.%m.%y"}</strong><br>
    <a href="/index.php/news/">{exp:char_limit total="40"}{news-heading}{/exp:char_limit} >></a>
    </span>
    </div>
    
    {/exp:weblog:entries}

    Thanks for your help,

    Rich

  • #5 / Nov 21, 2008 1:52pm

    Philip Zaengle

    293 posts

    Glad you got it figured out.

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

ExpressionEngine News!

#eecms, #events, #releases