Re: Multipage news article qn
[email protected] (mikespub) Mon, 08 Sep 2003 15:07:23 GMT
| Newsgroups | gmane.comp.cms.xaraya.knowledge-base |
|---|---|
| Organization | not much |
| Message-ID | <[email protected]> |
In article <bjhgfe$dp6$1-111RdWWlOxkOkXtL6OYfHgC/[email protected]>, [email protected] (Banzai) wrote: >Hi, >I used <!--pagebreak--> to separate pages in the news article, but >displaying the pages, the news article's #$summary# keeps appearing on >every page. > >http://www.suteraweb.com/mh/index.php?module=articles&func=display&aid=2 > >how do I make the #$summary# not appear on every page like xaraya >multipage tutorial..eg > >http://www.xaraya.com/index.php/articles/151 > >thanks. > >Banzai > You could for instance check the value of the $previous variable. If it's empty, there's only 1 page - if it's you're on the first page - otherwise, you're on some subsequent page. So something like this would only show the summary on the first page : <xar:if condition="empty($previous) or $previous eq ' '"> #$summary# <xar:else/> <!-- hide the summary here --> </xar:if> It would probably be easier if we passed the $page variable to the template, but this should work for now... :-) Mike.