Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#409 2006-01-29 05:52:04
- imaclanni
- New Member
- Registered: 2005-09-17
- Posts: 8
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
I don’t really understand. Can I use the permanent link mode “section/id/title”? Or do I have to use a setting with the year and date in it?
Offline
#410 2006-02-01 19:31:56
- Andrew
- Plugin Author
- Registered: 2004-02-23
- Posts: 730
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Disclaimer: I haven’t read through this whole thread, so excuse me if this has been suggested previously or if there is already a solution to my suggestion.
It would be nice to be able to use wildcards and negatives when specifying sections/categories. For instance, section="*"
(all sections, regardless of how many), section="!photos,writing,thoughts"
(writing AND thoughts AND NOT photos), or just section="!photos"
(all sections except photos).
The problem comes when I don’t have an ‘article’ section (the current rss_suparchive default), yet I want all sections but one or two displayed. I don’t want to have to keep tabs on adding/subtracting/editing sections from the template tag if my structure changes.
Last edited by Andrew (2006-02-01 19:38:27)
Offline
#411 2006-02-01 20:02:28
- Andrew
- Plugin Author
- Registered: 2004-02-23
- Posts: 730
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
This change to rss_suparchive()
seems to work relatively well:
from this:
<pre>
foreach (explode(‘,’, $section) as $section) {
$sctsql[] = “ (section = ‘” . doSlash($section) . “’) “;
}
$sections = ‘ AND (’ . join(’ OR ‘, $sctsql) . ‘) ‘;
</pre>
to this:
<pre>
foreach (explode(‘,’, $section) as $section)
{
switch (substr(trim($section), 0, 1))
{
case ‘*’:
$sctsql[] = “ (section like ‘%’) “;
break;
case ‘!’:
$notsctsql[] = “ AND (section != ‘” . doSlash(str_replace(‘!’,’‘,$section)) . “’) “;
break;
default:
$sctsql[] = “ (section = ‘” . doSlash($section) . “’) “;
break;
}
}
$sections = ‘ AND (’ . join(’ OR ‘, $sctsql) . @join(’ AND ‘, $notsctsql) . ‘) ‘;
</pre>
Offline
#412 2006-02-02 01:30:22
- Nonsense
- Member
- Registered: 2005-11-25
- Posts: 53
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Anyone know if there is a way to add $showarticle?
I’d also like to change the date-language, is there a way of doing this? Perhapps with setlocale()?
Offline
#413 2006-02-02 18:32:20
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
> Andrew wrote:
It would be nice to be able to use wildcards and negatives when specifying sections/categories. For instance,section="*"
(all sections, regardless of how many),section="!photos,writing,thoughts"
(writing AND thoughts AND NOT photos), or justsection="!photos"
(all sections except photos).
Thanks Andrew. I’ll be sure to include that in the next version.
Last edited by wilshire (2006-02-02 18:34:29)
Offline
#414 2006-02-02 18:37:39
- Andrew
- Plugin Author
- Registered: 2004-02-23
- Posts: 730
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
wilshire++
Offline
#415 2006-02-02 19:20:25
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
just a quick question but could this plugin be used to output a list of file archives?
Offline
#416 2006-02-03 17:22:58
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Sorry, nope.
Offline
#417 2006-02-05 03:34:42
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Quick question: is there any way to <strong>not</strong> have the alternating article classes and the <code><span></code> tag? I don’t use them myself, and I’d rather have the option of having cleaner, less bloated markup.
Thanks!
Last edited by Elenita (2006-02-05 03:35:04)
Offline
#418 2006-02-06 10:59:37
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Using the rss_suparchive_menu I’m generating links to archive pages which contain all posts for each particular year.
eg.
url/news/2006
url/news/2005
as these are article_lists I’m using the <txp:if_article_list> conditionals to format my archive page content
my problem is that I want this archive page… (url/news/2006)
to display differently than my default section page (url/news/), where I’d like to just display a single article in full.
the default page is also an article_list page right? so how can I make my page template handle the 2 different scenarios?
perhaps this is a newbie question and not specific to this plugin…
but any help is appreciated
Last edited by pieman (2006-02-06 11:00:35)
Offline
#419 2006-02-08 09:36:22
- Champak
- Member
- Registered: 2006-01-31
- Posts: 56
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
I noticed a few people has had similar problems, but I haven’t seen a final answer…or one that solved my problem.
I’m getting the follwing error:
<code>tag_error <txp:rss_suparchive section=“Models” /> -> Notice: Undefined variable: count on line 233</code>
That area in the code is:
<code>(line 231) $output[] = “<a href=\”$permlink\” title=\“Permanent link to $showtitle\” class=\“rssArticle”;
(line 232) $output[] = (++$count % 2) ? “ rssAlt” : “”;
(line 233) $output[] = “\”>”;
(line 234) $output[] = “$showtitle</a>”;
(line 235) $output[] = ($addbreak) ? “<br/>” : “”;</code>
I’m using the following code on a main page:
<code><txp:rss_suparchive section=“Models” /></code>
Am I doing something wrong? Is there a solution?
Offline