Recent posts

Discuss PivotX 2.0.x here. Non-PivotX related discussions go in The Drain.

Recent posts

Postby Gooly » Mon Nov 23, 2009 5:40 pm

I noticed that a lot has changed since I used Pivot last back in 2005. But here I am, back on the old nest and hopefully not to make a complete fool out of myself by asking a stupid first question ;-)
I'm currently busy building a/my first theme for PivotX (Me and Smarty, this was love at first sight). Now I searched all PivotX documentation, read faq's, searched half of the internet, but I can't find a way to publish the most recent posts (preferably on another page than the weblog page) So I'm _not_ talking about the most recent comments, but about the last few posts. Is there a way to do this? I can't find a tag for it.
That's the trouble with reality,
it's taken far too seriously
User avatar
Gooly
 
Posts: 77
Joined: Thu Nov 19, 2009 5:52 pm
Location: Lat 52° 4' 11.4874" Lon 4° 17' 28.001"

Re: Recent posts

Postby Schop » Mon Nov 23, 2009 6:10 pm

This is how I did it on my blog:

Code: Select all
<h2>Latest blog entries</h2>

<!-- begin of weblog 'standard' -->
     [[ subweblog name="default" showme=8 ]][[ literal ]] <!-- make sure youhave the right paramters here -->
        <!--    entry '[[title]]' -->
        <ul>
            <li><a href="[[  link hrefonly=1  ]]" title="[[ title ]]">[[ title ]]</a></li>
        </ul>
     [[ /literal ]][[ /subweblog ]]
<!-- end of weblog 'standard' -->


This example would give you an unordered list of the last 8 entry titles (with a link)
User avatar
Schop
Contributor
 
Posts: 485
Joined: Mon Apr 21, 2008 1:47 pm
Location: Hudson, Ohio

Re: Recent posts

Postby Gooly » Mon Nov 23, 2009 6:44 pm

Thanks! So you can just use the subweblog tag for it. Great!
That's the trouble with reality,
it's taken far too seriously
User avatar
Gooly
 
Posts: 77
Joined: Thu Nov 19, 2009 5:52 pm
Location: Lat 52° 4' 11.4874" Lon 4° 17' 28.001"


Return to 2.x Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron