Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2013-03-22 14:38:30

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

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

#14 2013-03-22 15:00:47

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

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 ids.

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 after str_replace(...).

Not at my computer, at the moment :P

The difficulties start when you have identical h4 titles, since then you get identical ids.

I understand. Thanks again.

Offline

#16 2013-03-23 14:10:33

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

Re: [request] Paragraphs have their own URL reference links.

Here is a demo.

Offline

Board footer

Powered by FluxBB