Knowledge Base

My weblog tag contents are changing on different pages

ExpressionEngine passes content via the URL that can tell the standard {exp:weblog:entries} weblog tag how to behave.  This is used to show individual comment pages, monthly archives, categories, and more.  Sometimes, however, you’ll want to include a weblog tag on your page (usually a secondary tag that’s present in addition to a primary tag) that will not dynamically change depending on what’s passed via the URL.  In other words, you want to “hard-code” some content.

In order to make sure that your weblog tag is not affected by the URL, you simply need to add the dynamic="off" parameter to the tag:

{exp:weblog:entries weblog="news" limit="5" dynamic="off"}

your content

{
/exp:weblog:entries}

Last Updated on Feb 27, 2007 at 10:21   ( Permalink )
Category: Templates, Entries, Technical Issues, Troubleshooting