Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-03-05 23:56:59

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Custom permlinks

Is there an alternative to mic_permlink for generating links with custom URLs?

e.g. <txp:mic_permlink mode="section_category_title">

(I was using mic_permlink with sgb_url_handler; have replaced sgb_url_handler with gbp_permanent_links.)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#2 2017-03-06 08:57:52

etc
Developer
Registered: 2010-11-11
Posts: 5,397
Website GitHub

Re: Custom permlinks

Since categories are optional (not mandatory), what kind of href should this generate for uncategorized articles?

Offline

#3 2017-03-06 09:34:16

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: Custom permlinks

Fine question. I’m not sure how sgb_url_handler and mic_permlink handled it, however they did it flawlessly. I think if /category/ was unavailable it would just default back to /section/; that would be the practical way to handle it.

Last edited by alicson (2017-03-13 09:36:21)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

Board footer

Powered by FluxBB