Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-04-04 00:07:44
- valpc
- Member
- Registered: 2007-03-01
- Posts: 18
Categories on homepage
I am using the plugin “cbs_category_list” to display section sensitive categories. The urls generated for these categories are in the following format, http://www.example.com/sectionname/?c=categoryname which is working fine.
However, when I try to display a list of all the my site’s categories on the homepage I use <txp:category_list wraptag=“ul” break=“li” class=“myclass” />. The urls generated for these categories are in the following format, http://www.example.com/category/sectionname which is not working. when I click these links, nothing happens.
I have been trying to figure this out for ages now and I am losing hope. Does anybody know why this might happen ?
Offline
Re: Categories on homepage
txp:category_list doesn’t create /category/section type URLs, so there has to be another plugin installed that does this.
Offline
#3 2007-04-04 21:54:31
- valpc
- Member
- Registered: 2007-03-01
- Posts: 18
Re: Categories on homepage
I don’t have any other plugins installed that deal with categories.
Offline
#4 2007-04-04 21:55:31
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Categories on homepage
What are all the plugins you have installed? not just the ones you think deal with categories specifically.
Offline
#5 2007-04-05 14:56:48
- valpc
- Member
- Registered: 2007-03-01
- Posts: 18
Re: Categories on homepage
ako_nav
cbs_category_list
ign_password_protect
mdn_count
mdn_if_section
pm_if_no_articles
rss_suparchive
smd_libl
smd_slimbox
XOR Section Tools
zem_contact_lang
zem_contact_reborn
Offline
#6 2007-04-05 17:32:06
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Categories on homepage
I think it might be XOR Section Tools that does that with URLs but I am not familiar with it.
Offline
#7 2007-04-06 10:30:28
- valpc
- Member
- Registered: 2007-03-01
- Posts: 18
Re: Categories on homepage
thanks, I’ll have a look at it and see if I can figure it out.
Offline
#8 2007-04-06 10:49:36
- valpc
- Member
- Registered: 2007-03-01
- Posts: 18
Re: Categories on homepage
My default page template does not have any article tags or conditional tags. Is it possible that when I click on the category link on the default page, teatpattern tries to display an article listing by category but cannot due to the fact that no tags exist. If so, how do I dsiplay my articles on a diifferent page after category is clicked ?
Offline
#9 2007-04-06 11:15:40
- valpc
- Member
- Registered: 2007-03-01
- Posts: 18
Re: Categories on homepage
I’ve figured it out. I added the following code to my homepage
<txp:if_category>
display some text here if a category
<txp:else />
display homepage as usual
</txp:if_category>
When I click on a category link from the homepage the text “display some text here if a category” gets displayed.
Offline
Pages: 1