Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#241 2006-08-14 16:44:51
- alexwest
- Member
- From: Järna, Sweden
- Registered: 2004-08-04
- Posts: 53
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Rob, I could use another plugin but in this case I would want to use the categories as they are set by your plugin to generate the mentioned URLs.
I think something like rss_unlimited_categories_filedunder does, but without generating a list of links, only outputting the name of the categories… if it makes sense to you.
I took a look at the code, but it’s a bit to complex for me, to generate something like that out of it.
be safe and happy
Offline
#242 2006-08-14 16:49:20
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Alex – the problem is not getting the plugin to generate the /section/category/title URLs, its getting Textpattern to recognize them and pull up the right article.
Since /section/category/title is not a supported URL scheme, if I did generate links in that format, you’d just receive a 404 error when clicking it.
edit – might not be that hard to add in actually….
Last edited by wilshire (2006-08-14 16:56:59)
Offline
#243 2006-08-14 17:05:16
- alexwest
- Member
- From: Järna, Sweden
- Registered: 2004-08-04
- Posts: 53
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Yes, i thought that would be the problem, even though i am using sgb_url_handler on the site.
I went so far as creating this form to handle the list outputs for your tags. With the mentioned tag (fictitious rss_unlimited_categories_names) to generate category names out of yours database table, it would be something like:
<code>
<li><a href=”<txp:link_to_home/>section/<txp:rss_unlimited_categories_names limit=“1”/><txp:php>echo $GLOBALS[‘thisarticle’][‘url_title’];</txp:php>”><txp:title /></a></li>
</code>
Last edited by alexwest (2006-08-14 17:09:05)
be safe and happy
Offline
#244 2006-08-14 17:10:02
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
The other issue is, if an article can belong to unlimited categories, when you build a /section/category/title link, how would you know which category to use?
Offline
#245 2006-08-14 17:28:02
- alexwest
- Member
- From: Järna, Sweden
- Registered: 2004-08-04
- Posts: 53
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Well, the default would be the category the page or article was called from, if that’s possible to retrieve… otherwise, it does seem difficult. It would possibly revert to a random choice, then… or maybe by choosing the category that has more articles assigned to it?
be safe and happy
Offline
#246 2006-08-15 22:52:40
- Austin
- Member
- Registered: 2006-06-13
- Posts: 19
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Hi Rob,
Responding to your questions: “What version of MySQL are you using?” 4.1.10
“Have you checked to see if there are any records in the textpattern_category table?”
I’m not quite sure what to look for. If I browse the table in phpmyadmin, there do seem to be some records, but they don’t show “title” or “name” or “type” like the records in txp_category. They just show “article_id” and “category_id.”
Offline
#247 2006-08-16 12:52:15
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
The table is not supposed to show anything other than what you’re seeing. If you see records there, the SQL seems to have worked. What happens when you try to use the tag and how are you using it?
Offline
#248 2006-08-16 13:47:02
- Austin
- Member
- Registered: 2006-06-13
- Posts: 19
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
I am trying to output an atricle list like:
rss_unlimited_categories_article_list category=“Question” form=“testlist”
but I get no output. Strangely, if I specify a section, but not a category, it outputs every article, regardless of section or category.
Offline
#249 2006-08-16 15:37:02
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
I’ve just noticed that allowoverride isn’t working anymore on this. This is the tag I have:
<txp:rss_unlimited_categories_article_list limit="1000" sortby="title" sortdir="asc" allowoverride="1" />
Articles are shown, but the default form is always used. I was sure the new version worked, any ideas where I’m going wrong Rob?
Cheers,
Jon VC#9
Offline
#250 2006-08-16 16:01:37
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Jon – Looks like I lost that change while making another fix. The download is updated now. Hopefully I didn’t just lose anything else.
Austin – can you set TXP to debugging mode and let me know if there’s any output?
Offline
#251 2006-08-16 17:01:39
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Thanks a lot Rob! Thats fixed it! PimpMyCamino would not be possible without this plugin!
Last edited by jonhicks (2006-08-16 17:01:59)
Cheers,
Jon VC#9
Offline
#252 2006-08-18 16:12:43
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Thanks Jon. Glad its working for you now. And on that note, another update…
This version includes updated support for specifying sections, timeframes and /section/category/title URLs. Some of the changes were based on suggestions in this thread by alexwest and suggestions received from him and others via email.
rss_unlimited_categories 0.5
Updates include:
- Added section attribute to rss_unlimited_categories_cloud, rss_unlimited_categories_list and rss_unlimited_categories_filedunder
- Added wildcard support for section selection as in rss_suparchive (Thanks again Andrew)
- Added ability to resolve /section/category/title URLs
- Added rss_sct_permlink tag to generate /section/category/title permlinks
- Made limit attribute actually work on rss_unlimited_categories_cloud
- Add time attribute to rss_unlimited_categories_cloud and rss_unlimited_categories_list
Important Again
Version 0.5 of this plugin contains a change that was made after TXP 4.0.3 was released. If you are running off the latest version from SVN, you won’t have any problems. If you are running 4.0.3 or an SVN version that isn’t very recent, you will not see the multi-select drop down list on the article -> write tab. In order to fix the problem, find this word in the code:
article-col-2
and replace it with
articleside
Download
Offline