Quote:
Originally Posted by Lynne
OK, I'll give you an example of what I did on my site and maybe it will help you figure out what you really want..
I have torrents offered on my site. I have a torrents.php page, and few forums for the torrents and some upload pages and stuff. So, I want to link to that page - torrents.php. So, I have "link.php" set to "torrents.php". And, I have THIS_SCRIPT defined as "TORRENTS" at the top of the torrents.php page. Since I also want it to show that link when they are in the two torrents forums, I included that in the condition also. So, I used this as my unique condition:
PHP Code:
if (THIS_SCRIPT == 'TORRENTS' OR in_array($GLOBALS['forumid'], array(x, y, z)))
As for my "unique_name", I just used "torrents".
|
Is it possible to add a unique condition to a Section page? or barring that is there a way to use the page title, section title or SEO URL Alias perhaps? (sorry if this is obvious - I am new to php) I would like to have a section named "Marketplace" for information on my classifieds program. It's an important part of my site so needs to be more visable, plus I want to add external links to my classifieds pages for easier navigation.
I successfully created my new tab and named it Marketplace
link.php is set to "http://www.mydomain.com/content.php?2-Marketplace"
unique_name is Marketplace