Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [request] Paragraphs have their own URL reference links.
candyman wrote:
OT: I’ve always loved the way Radio Userland automaticallyCreatesTheUrls, very nice. How could it be done with Textpattern?
You can do it yourself manually.
OT: Dean actually wasn’t a big fan of not including the article id in the title even though it was pretty popular in other systems. It took quite a while to get the choices we have now.
Offline
Re: [request] Paragraphs have their own URL reference links.
candyman wrote:
This method takes into account the capital letter from the second word?
Yes (ucwords
), but why not test it yourself? And if you want the first letter be lowercase, add .lcfirst
after str_replace(...)
.
The difficulties start when you have identical h4
titles, since then you get identical id
s.
Offline
#15 2013-03-22 15:42:58
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: [request] Paragraphs have their own URL reference links.
etc wrote: why not test it yourself? And if you want the first letter be lowercase, add
.lcfirst
afterstr_replace(...)
.
Not at my computer, at the moment :P
The difficulties start when you have identical
h4
titles, since then you get identicalid
s.
I understand. Thanks again.
Offline
Offline