Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-16 19:48:03

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

How to display URL only

I am trying to build a basic html dropdown and need to populate the values with the URL-only title

I checked the wiki but there is no mention of it.. How can I output this info?

Offline

#2 2006-07-16 20:51:26

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: How to display URL only

Do you mean the permlink (http://site.com/article/title)? If you turn auto-append comments off, you can do something like this (I suck at select boxes…):

<code>
form: menu
<select>
<txp:article_custom form=“menu_item” limit=“55” />
</select>
</code>

<code>
form: menu_item
<option><txp:permlink /></option>
</code>

Offline

#3 2006-07-16 21:04:54

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: How to display URL only

<txp:php>global $thisarticle; echo $thisarticle['url_title'];</txp:php>

in the article form should do it I think.

Offline

Board footer

Powered by FluxBB