Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#91 2005-02-23 04:43:13
- Niloc
- Member

- Registered: 2004-05-15
- Posts: 38
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Thanks for a great plugin wilshire!
Offline
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
The rss_suparchive now supports filtering based on URL patterns. There is a new tag called rss_suparchive_menu that will build lists of months or years along with the article totals within each. For example:
- February 2005 (4)
- January 2005 (3)
- December 2004 (7)
or
- 2005 (7)
- 2004 (69)
- 2003 (79)
The links generated will be in either /yyyy/mm or /yyyy format accordingly.
I also added the ability to list past, future or all articles based on a mod by txfrog1999 for use with an event calendar.
The download includes the 0.8 version for pre-RC3 use and the 0.10 version for RC3 ONLY. You can see the filter in action in the side bar of the wilshire|one archive.
Thanks very much to osei for helping out with testing of the plugin and internationalization!
Version 0.10- Added timeframe attribute that accepts PAST, FUTURE or ALL. PAST is the default.
- Added support for filtering by URL.
- Added rss_suparchive_menu tag.
Last edited by wilshire (2005-02-25 18:14:28)
Offline
#93 2005-02-28 18:37:52
- rob_roy
- Archived Plugin Author
- Registered: 2005-02-28
- Posts: 18
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Wilshire,
Awesome plugin. Can I make a feature request?
I’d certainly find it useful if rss_suparchive_bycat would only display the current category, if a category is selected. I have a section /tags/ that displays the _bycat menu, but I’d like it to only display Music (and the music articles) if you happen to be in /tags/music.
To be honest, I tried to play around with it, but I’ve been unsuccessful in getting it to work so far.
Offline
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Thanks for the update!
Search is your friend… Think before writing…
Offline
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
rob_roy – Its pretty easy to add the support for filtering by the global category. I’ll outline it here and add it to a future version.
First, add $c to the globals list on the first line.
Then change line ~28 from
<code>
$catsql = ($useartcats) ? “ AND (name = ‘“.$category1.”’ OR name = ‘”.$category2.”’) “ : $catsql;
</code>
to
<code>
if ($useartcats) {
$catsql = “ AND (name = ‘“.$category1.”’ OR name = ‘”.$category2.”’) “;
} else {
if ($c) $catsql = “ AND name = ‘“.$c.”’ ”;
}
</code>
I’ll try to clean things up but this will getting it working for you now. I have it running on my site now.
No problem ruminator. I’m still waiting to hear if anyone has used the new menu and date based archive URLs successfully,
Offline
#96 2005-03-01 15:27:41
- rob_roy
- Archived Plugin Author
- Registered: 2005-02-28
- Posts: 18
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Awesome. Thanks.
Offline
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Still running rc1 with rss_suparchive 0.8
Don’t know if it’s a bug, but I wrote an article on March 2nd at 0:25 o’clock, but it gets displayed under “March 1st” http://www.julianstahnke.de/archiv (“Werder hat sich warmgespielt”). If you click on the article, you’ll see the correct date.
I assume this must be because off the time offset somehow (I set it to +1). It seems to me it is ignored in your plugin? Or could it be something else?
Last edited by zoeglingjulian (2005-03-01 23:51:09)
Offline
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Yeah, most likely has something to do with the time offset. This is taken into consideration in the latest version so if its still a problem when you move to RC3 let me know.
Offline
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Version 0.11
- Added showexcerpt to suparchive.
- Added filtering by global category (if set) to suparchive_bycat.
- Added linktosection to suparchive_bycat.
- Added sortby to suparchive to allow for sorting by date or randomly.
Offline
#100 2005-03-03 15:39:11
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Rob, you are a wonderful wonderful good human being.
That withstanding, is it true that your ‘sortby random’ feature is available only for RC3?
thanks again
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#101 2005-03-03 15:43:25
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Unfortunately yes it is due to the changes in the URL schemes in RC3.
Offline
#102 2005-03-04 16:00:41
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Rob, a truly multi-talented plug-in, really useful in many a situation.
I seem to have come up against one I can’t solve:
listing articles by category and subcategory using supaarchive_bycat like so:
<pre>
category 1 (link)
category 2 (link)
- subcategory 2a (link)
– item (link)
– item (link)
– item (link)
- subcategory 2b (link)
– item (link)
– item (link)
– item (link)
</pre>
When I try this categories and subcategories are listed beneath one another at the same hierarchical level.
Is that possible or do I have to use repeated supaarchive tags to list only the articles in each, then hard-coded, subcategory? Or can it be combined with stw_categorytree?
I’d also love to have the option to have the url-title appear instead of the title. The situation is a navigation submenu where the article titles are very long but for easy linking I have set short url_title manually. The short titles would be ideal for the menu items.
I’ve played with both adapting the sources of stw_category_tree and dca_articles-by-category but my coding knowledge is only elementary.
Last edited by jakob (2005-03-04 16:05:08)
TXP Builders – finely-crafted code, design and txp
Offline
#103 2005-03-15 23:52:01
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Support for messy urls with rss_suparchive_menu? Mine only displays clean.
Offline
#104 2005-03-16 19:46:18
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
jakob – I don’t know that you could do what you’re trying. The plugin really doesn’t have any notion of the category hierarchy. It just deals with them all on the same level. As far as url-title goes, I think the intent was to use it if its set so if its not showing up its probably a small bug.
aesop1 – No support for messy URLs in the menu. You mean something like /?y=2005&m=10
Offline
#105 2005-03-17 04:43:06
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Yeah. Ah well. Great plugin though, thanks.
Offline