Loading...
 
Features / Usability

Features / Usability


Re: Re: Banner related to MenuID

posts: 3665 United States

> hello Rick,
>
> That is a good idea.. however, if i have in access of 50 pages... each divided in a group of 10...
>
> so basically i will be displaying the same banner on 10 pages, I have created seperate menu for each set of 10 pages..
>

Are you dividing the pages by using a category? If so, then you can simply check for the category and show the banner zone based on the category. And, if you combine the zone name with the category ID, you'll only need to do a single check (if statement).

For example:

Copy to clipboard
{if $page and ($is_categorized eq 'y')] {banner zone=Foo{$id}} {/if}


This will check to see if you're on a wiki page and if the page is categorized. If yes, then it will show banner zone FooXX where XX is the category ID.

So, basically, you'll need to:

  1. Make 10 new categories (and record the ID for each).
  2. Categorize the 50 wiki pages in to each of the 10 categories.
  3. Create 10 different banner zones (Foo1, Foo2, Foo3, etc.) that correspond to the category IDs.


Note: You'll need to check the syntax in my example code... I'm not 100% sure how to combine a smarty variable {$id} within the banner zone plugin. Someone else, maybe.... ?

HTH,

-Rick

There are no comments at this time.