You are not logged in.
Lists articles out of a given section.
Created by David Woodward. As David is no longer actively developing and supporting his plugin, we both have agreed that I would host and maintain it.
Last edited by wet (2005-11-19 20:23:48)
I suppose djw_section_articles could be imitated with a combination of
<h2><txp:section name="foo" link="1" title="1" /></h2> <ul><txp:article_custom section="foo" category="bar" link="1" form="permlink" /></ul>
permlink being a form like
One minor difference: djw_section_article does not output the section title and link when a section contains no articles. It’s mainly a matter of preferences: one line plugin tag versus some more lines of core tags. It will neither increase nor reduce db calls, I suppose, so page rendering time and cpu load will not differ a lot.
Wet, is it possible to tweak this to exclude the current article from the list?
current="0" will suppress the link to the current article.
Last edited by wet (2005-11-19 20:22:27)
Wet, is there any way to make djw_section_articles care for nck_olm or sgb_url_handler?
In a couple of my sections I use a different url mode and need to change the way djw_section_articles builds urls.
Sorry, it will not. djw_section_articles is currently using txp’s core functions for building article links. I’d rather keep it that way to avoid introducing cross dependencies besides the ones introduced by txp’s own evolution.
Ok, I can understand that but is there any way to hack it (even if it is an ugly one) to change the way the url is built?
There is, of course.
Find this line in the current version of the plug-in code:
$out = tag($Title,'a',' href="'.permlinkurl_id($thisid).'"');
and replace the call to
permlinkurl_id($thisid) to anything which inserts the desired URL.
$thisid contains the article’s numeric id. Voilà.
Last edited by wet (2005-11-24 18:59:32)