Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Modified Recent Articles
I’ve hacked a version of recent_articles
to include two new features:
- The ability to filter the list on section:
section="articles"
- The abiilty to change the start-point of the list:
limit="1,10"
This second point is handy if you don’t want your recent articles list to include the most recent article. The old syntax still works fine – limit="10"
.
Other than that, all the attributes are the same as recent_articles
. This really is just a hacked version of the same.
<txp:dru_recent_articles section="articles" limit="1,10" break="li" wraptag="ul" />
Download dru_recent_articles.txt.tgz
drew mclellan
Offline
Re: Modified Recent Articles
nice, I was just wanting this.
Offline
Re: Modified Recent Articles
I wanted this too. VERY nice. :)
Offline
#4 2004-05-08 15:18:49
- dhdesign
- New Member
- Registered: 2004-05-02
- Posts: 3
Re: Modified Recent Articles
> Drew wrote:
> Download dru_recent_articles.txt.tgz
Can you put this in a .zip file? I can’t open the .tgz file. :(
Offline
Re: Modified Recent Articles
tgz files can be opened with winRAR…
thanks, drew, for the plugin.
Offline
#6 2004-05-08 16:34:08
- dhdesign
- New Member
- Registered: 2004-05-02
- Posts: 3
Re: Modified Recent Articles
> ThrokFeroth wrote:
> tgz files can be opened with winRAR…
I don’t have winRAR…I have winZIP. Would be nice to be able to use what I’ve already got to open the file. :)
Offline
Re: Modified Recent Articles
PowerArchiver is a nice windows tool for tar.gz documents.
The usage of tgz files is due to it’s frecuently to have only support for this type of compression on web servers using PHP, and most of the plugins are directly compressed using PHP also.
Pedro Palazón
http://kusor.net http://kusor.com
Offline
Re: Modified Recent Articles
7zip is also a very good archiver, and completely free.
Last edited by Zarabadoo (2004-05-08 17:41:33)
—Al “Zarabadoo” Steffen
http://www.zarabadoo.com
Offline
#9 2004-05-09 04:04:09
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Modified Recent Articles
Winzip can open tgz files. Try renaming it to .tar.gz.
Alex
Offline
Re: Modified Recent Articles
Thrilled reading this.
I know the plugin exists, (with or without tgz) so this post probably has no interest for you now -
- but IF someone should be interested in how I solved the problem without the plugin, here it is:
I created an article form called “titles”, displaying only permalinked <code><txp:titles /></code> (no bodies):
<code><txp:permlink><txp:title /></txp:permlink><br></code>I then used the form in the sections page-template with <txp:article_custom /> with the section attribute:
<code><txp:article_custom form=“titles” limit=“5” section=“web” sortby=“Posted” sortdir=“desc” /></code>I’ve used this form in several <code><txp:article_custom /></code> tags with different attributes i.e. category, for different menu listing.
(It would be very nice to be just a tiny bit usefull, I’m usually just asking questions..)
Last edited by fri (2004-05-17 02:39:01)
Offline
Re: Modified Recent Articles
Thank you southronlady.
That’s exactly how I’ll use it: same txp-tag on all the sectionpages.
“Labeled” with <code><?php echo ($GLOBALS[‘s’]); ?><br>
</code>, you can reuse the headline for the menu as well.
Someone wrote that codebit, which you probably already know with your understanding of PHP.
Offline