Help with if then statement

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-03-2006, 07:20 PM
canadapc's Avatar
Casual Pligger
 
Join Date: Jul 2006
Location: Canada
Posts: 50
I'm trying to modify the link summary template to have the headline link to the outside link ONLY on the actual story page. The rest of the time the headline should link to the story page .

I tried this:

Code:
{if $pagename eq "index" || $pagename eq "shakeit"}
<a href="{$story_url}">{$title_short}</a>
{else}
<a target="_blank" href="{$url}">{$title_short}</a>
{/if}
but it doesn't seem to work.

I took the first line (the if statement) from the sidebar because it looks like this is used to determine when to show the sidebar stories box.

Anyone have any ideas on how to format this?

Thanks in advance.

Randy
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF OR statement? jasxon Questions and Comments 1 01-19-2008 02:03 PM
Template conditional statement for: PAGE 1 cmstheme Questions and Comments 3 09-30-2007 12:37 PM
Form Appear on If Statement ZeroHoursOfSleep Questions and Comments 1 09-14-2007 07:44 AM
General 'if' statement question aaronpais Questions and Comments 1 05-07-2007 11:25 PM
Site slogan and mission statement? noid Questions and Comments 2 10-27-2006 01:57 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development