Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-24 07:42:47

PeterH
Member
Registered: 2006-07-23
Posts: 10

Can't get category/mycategory to work!

On my website: http://www.iomesus.com

I have a link to category/mycategory of an article below the title of the article. However, when I go to that category the clean url works:

e.g. http://www.iomesus.com/category/myself

but it displays the homepage (i.e. every category within ‘article’ section).

I also have a section called writing (http://www.iomesus.com/writing), and I have the same problem when I click on a category:

e.g. http://www.iomesus.com/category/tutorial

this takes me to the homepage (i.e. every category within ‘article’ section) also. Should this URL be:

http://www.iomesus.com/writing/category/tutorial

I am not using the rss_unlimited_categories plugin, but something tells me this might fix the second problem?

Thanks,

Peter

Offline

#2 2006-07-24 07:55:55

PeterH
Member
Registered: 2006-07-23
Posts: 10

Re: Can't get category/mycategory to work!

I know the problem:

category/mycategory is based on default section. My default contains this code:

<code><txp:article_custom form=“iomesusv2” section=“article” limit=“10” /></code>

Since it has section=“article” it is always showing article entries rather than the entries of mycategory.

Do I need to change this to:

<code><txp:article_custom form=“iomesusv2” limit=“999” /></code>

and create a separate section that I set as the frontpage that contains the:

<code><txp:article_custom form=“iomesusv2” section=“article” limit=“10” /></code>

Sorry if I’m not explaining this well!

EDIT This didn’t make any difference

Last edited by PeterH (2006-07-24 07:57:44)

Offline

#3 2006-07-24 08:06:04

PeterH
Member
Registered: 2006-07-23
Posts: 10

Re: Can't get category/mycategory to work!

Solved by Mary!

<code>
<txp:if_category>

<txp:article form=“iomesusv2” />

<txp:else />

<txp:article_custom form=“iomesusv2” section=“article” limit=“10” />

</txp:if_category>
</code>

Offline

Board footer

Powered by FluxBB