PDA


View Full Version : Create Categories?


Ian Gordon
06-06-2004, 03:52 PM
I guess, I am asking for help making a hack, I don't want to wait for future versions I want to do it now, I see it is implemented in the frontend of the site, so I guess I would press Brian for help with this, I was looking over the code and I made some superficial modifications but, I am looking to add the "$cat" variable so that I can get some hierarchical organization going on in my content, I am content with manually editting the links for the "$cat" variable i am just trying to figure out how to add it to the script.

So, anyone who can tell me how I am accomplish this I would be much obliged, the idea is to create a URL like this:

http://www.domain.com/index.php?cat=blah&page=moo

I also want it so that if "?cat=blah" is put in the URL then it loads a page that coincides with that template, got me?

Ian Gordon
06-09-2004, 01:41 AM
*bump*

Brian
06-09-2004, 11:45 AM
Well to get the $cat variable to work, you would need to globalize it first. You could look in your includes/vba_cmps_include_bottom.php file for:

// Process Active Modules

And add above that:

globalize($_REQUEST, array('cat' => STR_NOHTML));

Or you could just use $_REQUEST[cat] in your templates instead of $cat.

Ian Gordon
06-13-2004, 06:50 AM
How could you then implement them throughout the site like through the AdminCP?

Ian Gordon
06-22-2004, 08:22 PM
I am still curious if this can be done...

dash
12-18-2004, 01:33 AM
What's the word on this?

dash
01-30-2005, 06:38 AM
Still waiting on news of this feature.

ashly
02-16-2005, 10:44 AM
How about you make a options for the page so it like this
Main
|-- Home
|-- Staff Page

You know like you make a forums but than for the pages.