| Author |
Message |
spasticdonkey
Newbie


Joined: Sep 05, 2007
Posts: 4
|
Posted:
Wed Dec 05, 2007 8:45 pm |
|
I'm working on a site that will eventually have many custom modules, none of which will use sql, but some may have upwards of 20-30 pages. Looking to add my own dynamic titles for those modules...
| Quote: |
| You can certainly add your own by simply adding additional IF statements within the includes/dynamic_titles.php. |
are there any examples of this process? If had a quick example I could probably make my way thru it... For example say I had a module about beer....
| Code: |
modules.php?name=Beer
modules.php?name=Beer&file=cheap
modules.php?name=Beer&file=tasty |
|
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 896
|
Posted:
Thu Dec 06, 2007 12:07 am |
|
I don't mean to sound facetious, but you already have nine examples given to you within the script?
The different here being no SQL calls right? Are you planning on keying off the $file variable? If so, you might create an array of file => 'title for the file' and then simple take the $file variable look up the key for the file in the array and then piece together the title text. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
spasticdonkey
Newbie


Joined: Sep 05, 2007
Posts: 4
|
Posted:
Thu Dec 06, 2007 3:39 am |
|
Well I have to admit that I've been teaching myself php and sql on a need to know basis the past year or so... something tells me there's probably some really basic things I havent got around to learning yet
This isnt a real pressing issue for me so I'll take notes to your suggestions and do a little learning when the time is right..
I did look at the code before posting
and yes, i was planning on keying off the file variable |
|
|
|
 |
|
|