Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-05-16 08:42:21

gfxx
Member
Registered: 2008-09-04
Posts: 12

Access "title" data directly to skip the nbsp of widows-prevention

Hello,

I enjoy the option “prevent widows in article titles” in general, but for a certain thing on my website, it doesn’t make sense. Either I disable the option in general (which would be a pitty) or I find a way to get the title without textpattern replacing spaces with  . Any suggestion?

Something like <txt:title widowprevent="no" />

Thanks!

Offline

#2 2010-05-16 08:56:04

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

Re: Access "title" data directly to skip the nbsp of widows-prevention

Hi

I don’t know if that can solve your problem but you can access title tag by using txp:custom_field like this:

<txp:custom_field name="Title" />

Cheers

Offline

#3 2010-05-16 09:01:45

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

Re: Access "title" data directly to skip the nbsp of widows-prevention

<txp:title no_widow="1"/>

Offline

#4 2010-05-16 09:36:49

gfxx
Member
Registered: 2008-09-04
Posts: 12

Re: Access "title" data directly to skip the nbsp of widows-prevention

uh, as easy as that, thanks :)

Offline

#5 2010-05-16 09:41:54

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

Re: Access "title" data directly to skip the nbsp of widows-prevention

You can see a tag reference on the wiki

Offline

Board footer

Powered by FluxBB