What is the variable for the page number?
I want to make it so something shows on the first page of every category, but not on the second or so on. Thanks.


This is a slightly modified bit of code from the pagename variable wiki article
Code:{if count($templatelite.get) == 0}First Page Content {/if}
The Facebook Module for Pligg CMS!
Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!
What i'm trying to do is to set up different styles for my stories when they are on my home page or either category. Here is how I have my link_summary set up.
What I want is for the styling for link_shakebox_index 0-4 to only show on the first page of home and each category. Otherwise I want it to be the default "stories" styling. I hope this help explain what I'm trying to do. Thanks.{if $pagename eq "story" || $pagename eq "submit"}
<div class="stories-wide" id="xnews-{$link_shakebox_index}">
{elseif $pagename eq "user"}
<div class="stories-user" id="xnews-{$link_shakebox_index}">
{elseif $link_shakebox_index eq 0}
<div class="stories1" id="xnews-0">
{elseif $link_shakebox_index eq 1 || $link_shakebox_index eq 4}
<div class="stories2" id="xnews-{$link_shakebox_index}">
{elseif $link_shakebox_index eq 2}
<div class="stories3" id="xnews-{$link_shakebox_index}">
{elseif $link_shakebox_index eq 3}
<div class="stories4" id="xnews-{$link_shakebox_index}">
{else}
<div class="stories" id="xnews-{$link_shakebox_index}">
{/if}
The Facebook Module for Pligg CMS!
Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!
Yes, when im on my home page the classes of my {$link_shakebox_index} 0-4 are the way I want them. The if I go to page 2 it changes the classes like it is supposed to. Then if I click on page 1 in the pagination, it doesn't change the classes back the way they were. Also when I select a category, it isn't recognizing that {count($templatelite.get) == 0 and doesn't have the classes set the way I want them. Here is what I have set up in link_summary.tpl to define the classes of stories.
What I'm trying to achieve if for my home page and each category to act as its own individual section. So when you are on the first page of each, the stories look a certain way and then when you go on to page 2 ect, the stories look different.{if $pagename eq "story" || $pagename eq "submit"}
<div class="stories-wide rounded" id="xnews-{$link_shakebox_index}">
{elseif $pagename eq "user"}
<div class="stories-user rounded" id="xnews-{$link_shakebox_index}">
{elseif $pagename eq "index" || $pagename eq "published"}
{if count($templatelite.get) == 0}
{if $link_shakebox_index eq 0}
<div class="stories1" id="xnews-0">
{elseif $link_shakebox_index eq 1 || $link_shakebox_index eq 4}
<div class="stories2" id="xnews-{$link_shakebox_index}">
{elseif $link_shakebox_index eq 2}
<br style="clear:both;" />
<div class="stories3" id="xnews-{$link_shakebox_index}">
{elseif $link_shakebox_index eq 3}
<div class="stories4" id="xnews-{$link_shakebox_index}">
{/if}
{else}
<div class="stories rounded" id="xnews-{$link_shakebox_index}">
{/if}
{else}
<div class="stories rounded" id="xnews-{$link_shakebox_index}">
{/if}