Web Hosting Talk







View Full Version : pinnacle cart: if / else code to show content on home page only?


Cameron32
03-01-2008, 10:10 PM
Pinnacle support declined to help me with ANY customization. Extremely disappointing, but I'm already well into development with it, so telling them to shove it and getting a refund isn't an option at this point. So I'm hoping somebody who has customized pinnacle cart can help me with this. I'm sure it's simple, but I'm not a programmer.

What code should I use to display certain content on the home page only, then different content in the same space on the rest of the site?

I know the logic, just not the code... Something like this:

{$if current_page= "home"}

<home page content>

{else}

<rest of site content>

{/if}


Thanks,
Cameron

Cameron32
03-04-2008, 02:56 PM
Pinnacle finally came through with the answer:

{if $current_page == "home"}
home page code
{else}
rest of site code
{/if}


And yea...It hurts to have been so close, yet so far.