Support Forums

{if} statement

This is a discussion on {if} statement within the Technical Support forums, part of the Technical Support Forums category; Hi I am trying to include specific content under certain category listing pages and other pages, could anybody show me ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
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  
Old 03-13-2009, 11:39 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,366
Rep Power: 135
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Smarty
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
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  
Old 03-13-2009, 11:58 AM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,366
Rep Power: 135
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by chrisst1
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

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a bit of help with an if/else statement. michael Templates, HTML, CSS, and Design Help 5 10-09-2008 03:25 PM
Need help with an if/else statement on links. michael Templates, HTML, CSS, and Design Help 14 09-24-2007 10:00 AM


All times are GMT -4. The time now is 03:32 PM.


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