Hi Leon,
If I understand you correctly, there are a few ways you could approach this.
You will need some way of determining where the user is in the context of
your navigation. This could be from some flag in the URL, something in the
Request scope such as the page or section from the Sitemodel, or something
like a cookie or client variable.
Assuming you are able to do this then you need some logic to generate a
navigation menu. Again there are a few ways of doing this. You could have a
navigation object which contains the navigation menus for the whole site;
you could create navigation from a metadata hierarchy, or you may want to
hard code all the navigation info into a custom tag and selectively display
the navigation items you want from that.
Personally I would probably use a Metadata Hierarchy to store the structure
of the navigation with keywords indicating the various files or directories
containing my site content for all navigation areas in the site. Create a
navigation type and for each unique menu create a content object from
this type. Then associate the relevant keywords from the hierarchy with the
object.
Code a display handler generates hyperlinks using the keywords and
categories that are associated with the object.
spike
At 14:09 21/02/2001 Wednesday, you wrote:
>Hi,
>
>I am pretty new to the Spectra environment. I would like to know how to
>approach a menu. Like a dynamic menu that will change ie, where the users
>are in the site.
>
>Example.
>
>ABS organisation has branches in country a, country b, country c .......
>country xxx. When a user first hits the site the default menu will load.
> From there the user can select country a or b or c .... xxxx If the user
>selects country a then a menu loads with main categories and
>subcatogories, only relevant to that country.
>
>I was thinking of the following approach;
>
>Must I create sections(different directories) for all the countries and
>then object type will have all the properties a normal menu will have. The
>menu from the differnent countries will be an object of the object type
>MENU. So that when a new page is created by a "power user" it can pull in
>that menu with its objects(which is the main categories and sub categories).
>
>I lost my mind about this problem can anyone mail me if anything is
>unclear. Maybe ther is a simple way of doing this using spectra and I am
>just overlooking it.
>
>Thnx in advance.
>
>
>Cheers
>
>Leon
>
>Ps: ... if anyone can send me some sample code to work from I wont bug the
>list again... :-P
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.