Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-12-27 11:31:49

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

category list

Is there a way to have a category list parse non messy urls

My url schema is set to /id/title but the <txp:category_list break="li" wraptag="ul" /> tag returns

<ul>
<li>/archives/?c=About</li>
<li>/archives/?c=something</li>
<li>/archives/?c=something else</li>
</ul>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2008-12-27 11:50:57

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: category list

Funny. I get clean /category links using 4.06 and 4.07 using your tag..?

Offline

#3 2008-12-27 15:13:52

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: category list

Jonathan, are you using gbp_permanent_links? Because as far as I know that is the only way to get clean /section/category URLs.

Offline

#4 2008-12-27 16:32:04

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: category list

Els wrote:

Jonathan, are you using gbp_permanent_links? …

I guess that this means that there’s no way to get clean with category_list…


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2008-12-27 17:33:18

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: category list

I must be misunderstanding the question. On a test install of 4.07 with URL scheme set to /id/title and using the tag as Yiannis posted, I do not get anything except URL’s like:

<ul class="category_list">
	<li><a href="http://localhost:8888/textpattern-4.0.7/category/hope-for-the-future/">Hope for the Future</a></li>
	<li><a href="http://localhost:8888/textpattern-4.0.7/category/meaningful-labor/">Meaningful Labor</a></li>
	<li><a href="http://localhost:8888/textpattern-4.0.7/category/reciprocal-affection/">Reciprocal Affection</a></li>
</ul>

That’s on the /archive page. Must be missing something….!

I have never used gbp_permanent_links…

Offline

#6 2008-12-27 17:41:16

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: category list

jstubbs wrote:

/category/hope-for-the-future/

I took it that Yiannis wanted /archive/hope-for-the-future/, and that is not possible without gbp_permanent_links.

Offline

#7 2008-12-27 18:00:25

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: category list

Hi Els, Jonathan
I’m taking the discussion in the feature requests


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB