Forum Moderators: coopster

Message Too Old, No Replies

Using wildcard

         

Kysmiley

6:19 pm on Feb 16, 2005 (gmt 0)

10+ Year Member



I am attempting to setup an array and want to use a wild card. I have different catagories with multiple pages in each catagory. The pages in each catagory will have the same titles and same metatags, but the titles and metatags will be different in different catagories. I know Im rambling thisd is what I want to do will it work or is there an easier way.
################
$pagetitle=array(
'page*.php => '<title ="what ever" />',
'pagen*.php => '<title ="dif title" />'
);
###############################
then i would continue on with all the ndifferent catgagories as different titles.
Im just trying to make it easier for my wife to add pages to her site and have different titles for different catagories but not have to worry about putting th tiles or metatages on the pages if she is just adding pages to catagories already made.
Anyone offer any suggestions here
Pat

gettopreacherman

9:36 pm on Feb 16, 2005 (gmt 0)

10+ Year Member



Not sure exactly what you are looking for but I would suggest something like:

$pagetitle=array(
'[pagetitle].php','[page2title].php',etc...)

<title=$pagetitle[1]/>

Basically setup the array to list the pages, then call the array when needed and place number of the proper page...but that's just my two cents.

Kysmiley

11:10 pm on Feb 16, 2005 (gmt 0)

10+ Year Member



Thanks thats what I needed to know, I will have 10 pages or so in each catagory all catagories will have the same header.inc but the titles will be different for each catagory so I was hoping I did not have to list titles for 100 pages like that and could list for like 10 catagories and have it displayed on the approprate pages. I may have to rethink this or try different options
Pat

gettopreacherman

12:16 am on Feb 17, 2005 (gmt 0)

10+ Year Member



You could try defining the categories in a global array, then call it when you want...that would be about as close as I can come...