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.

Dynamic global variables?

February 07, 2008 6:38pm

Subscribe [1]
  • #1 / Feb 07, 2008 6:38pm

    rmcgonegal

    3 posts

    I’m trying to translate a website from WordPress into ExpressionEngine…

    On the home page I have one entry displayed, the most recent belonging to the category “Featured.” In the sidebar (which right now is a separate file that’s getting embedded), I’m listing recent “Featured” entries.

    How do I exclude the main entry (the full text of which is being displayed) from being listed in the sidebar?

    I saw I can declare global variables in a file called path.php but that seems to be for permanent stuff. And user-defined global variables apparently can only be static info.

    As best I can guess, I need to define the main entry’s ID as a dynamic global variable in the main Index template so I can then reference that ID to be excluded by the sidebar code. Is there a way to do this?

  • #2 / Feb 07, 2008 7:13pm

    Sue Crocker

    26054 posts

    On the home page I have one entry displayed, the most recent belonging to the category “Featured.” In the sidebar (which right now is a separate file that’s getting embedded), I’m listing recent “Featured” entries

    Weblog Parameter: Offset is one method you could use.

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

ExpressionEngine News!

#eecms, #events, #releases