|
|
#1 |
|
Junior Member
Join Date: Jan 2009
Posts: 7
Rep Power: 0 ![]() |
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 |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2006
Posts: 3,945
Rep Power: 96 ![]() ![]() |
__________________
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 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2009
Posts: 7
Rep Power: 0 ![]() |
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. |
|
|
|
|
|
#4 | |
|
Moderator
Join Date: Mar 2006
Posts: 3,945
Rep Power: 96 ![]() ![]() |
Quote:
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 |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |