Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-05-21 12:22:08

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Retrieve url_title

Without the use of Txp native tags

Assuming:

‘title’ => title(array()),

Throws the article title… How do I get the URL-only title ? Tried with url_title…

title(array(‘url_title’ => ‘1’))

… but this fires errors

Any ideas ?

Cheers.

Last edited by hablablow (2010-05-21 12:24:07)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#2 2010-05-21 12:40:12

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,942
Website GitHub

Re: Retrieve url_title

Assuming you know you’re in an article context:

$title = $thisarticle['url_title'];

The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2010-05-21 12:57:12

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: Retrieve url_title

Hi Stef, thanks for your reply. This is actually directly related to a discussion we had here… So it’s probably better to switch this discussion to over there


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

Board footer

Powered by FluxBB