Support Forums

Old 03-13-2009, 11:06 AM   #1
Junior Member
 
Join Date: Jan 2009
Posts: 7
Rep Power: 0
chrisst1 is on a distinguished road
Default {if} statement

Hi

I am trying to include specific content under certain category listing pages and other pages, could anybody show me the corect way to write the {if} statement so that

if page =XXXX show this yyyyy.tpl
and
if listing category =XXXX show this yyyyy.tpl

I am using the v4.0.9 Developer

Any help would be great

Chris
chrisst1 is offline   Reply With Quote
Old 03-13-2009, 11:39 AM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 3,945
Rep Power: 96
Lhotch is just really niceLhotch is just really nice
Default

Smarty
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 03-13-2009, 11:54 AM   #3
Junior Member
 
Join Date: Jan 2009
Posts: 7
Rep Power: 0
chrisst1 is on a distinguished road
Default

Great help that was!

Why is it every time you ask a question on this forum you either get somebody trying to sell you a mod or get sent of somewhere else to figure it out for yourself. I only use a forum as last resort. Wont bother again!

Chris

Last edited by chrisst1; 03-13-2009 at 12:00 PM.
chrisst1 is offline   Reply With Quote
Old 03-13-2009, 11:58 AM   #4
Moderator
 
 
Join Date: Mar 2006
Posts: 3,945
Rep Power: 96
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by chrisst1 View Post
Great help that was!

Why is it every time you ask a question on this forum you either get somebody trying to sell you a mod or get sent of somewhere else to figure it out for yourself. I only use a forum as last resort. Wont bother again!

Chris
You answer included as much detail as your question.

Why is it every time someone asks a question they offer absolutely no detail as to the real goal but expect a plug and play answer and get pissy when they dont get it?

Im not trying to sell you anything and gave you a link which shows how to use an {IF} statement.

If you have spent any time looking at your templates or reading the guides provided her you would know that the body of your site is represented by the $body variable. SO you need to evaluate the contents of that variable to determine what to display in its place.

You didnt got out of you way to be any too specific as to EXACTLY what you are looking for so dont blame me for not being a mind reader.

Ive spent hundreds if not thousands of hours here helping people for free and frankly it pisses me off when people like you come along and complain my free help isnt good enough all the while you dont have the decency to offer anyone detailed info as to what your trying to do. Try spending that extra time you do complaining about free help to describe your goals, in detail, exactly what page you are looking to replace and you may actually make some progress.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a bit of help with an if/else statement. michael HTML, CSS, and Design Help 5 10-09-2008 03:25 PM
Adding IF Statement VanWertAds*com v3.1 Modules & Modifications 3 11-04-2007 10:42 AM
Need help with an if/else statement on links. michael HTML, CSS, and Design Help 14 09-24-2007 10:00 AM
if statement broke ? free2take v3.1 Questions & Support 3 08-24-2007 03:41 AM
thumbnail statement. wel-usa v3.1 Questions & Support 9 07-15-2006 12:35 PM


All times are GMT -4. The time now is 08:54 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0