[pmwiki-users] Link "last news" automatically

ABClf languefrancaise at gmail.com
Sun May 9 15:47:38 CDT 2010


If your trail is in chronological order, and in case you don't want to
change the text printed in your trail (strict copy), why not include 5
lines (beginning at line number x)
(:include PageName lines=5..10:)

http://www.pmwiki.org/wiki/PmWiki/IncludeOtherPages#includeanchor

Gilles.


2010/5/9 Peter Bowers <pbowers at pobox.com>:
> On Sun, May 9, 2010 at 7:12 PM, Hans <design5 at softflow.co.uk> wrote:
>>
>> try this in Site.SideBar
>>
>>...
>
> It seems like you could do it with a single pagelist, using (:template
> first:) and (:template each:)... Maybe something like this:
>
> %sidehead% (:pagelist trail=News/News fmt=#Site.SideBar#news count=5
> order=-ctime:)
> (:if false:)
> [[#newshead]]
> (:template first:)
> * [[{=$FullName}|News]]
> (:template each:)
> ** [[{=$FullName}|{=$Titlespaced}]]
> [[#newsheadend]]
> (:if:)
>
> -Peter
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>



-- 
---------------------------------------
| A | de la langue française
| B | http://www.languefrancaise.net/
| C | languefrancaise at gmail.com
---------------------------------------



More information about the pmwiki-users mailing list