php code to use other template if category is chosen

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
me4otoyou
Forum Newbie
Posts: 1
Joined: Fri Jul 01, 2011 6:17 am

php code to use other template if category is chosen

Post by me4otoyou »

Hello,

I need help in trying to write coding. 1. When a person chooses a category I call "Resume", I want the coding to use a template called listing_classified_1.tpl.

However the software uses listing_classified.tpl for all the categories. But I want it to use listing_classified_1.tpl for the "Resume" category only.

Here is the site: http://www.fleaslist.com/index.php?a=2&b=134

This is the "listing_classified.tpl" template it uses for all categories. However, I want it to use listing_classified_1.tpl for the "Resume" category only and all the other categories still use "listing_classified.tpl".

I don't know how to write the coding so please excuse my ignorance.
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: php code to use other template if category is chosen

Post by Jade »

This is a forum to learn how to code -- not to expect us to do it for you. If you want someone to fix it for you then you should post this in volunteer work or job hunt if you're willing to pay for a solution.

Otherwise you can post the code that you have showing your attempt to fix it and we'll do what we can to help.
Post Reply