Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-03-02 16:10:56
- teaboy
- New Member
- From: Birmingham, UK
- Registered: 2006-03-02
- Posts: 8
Output the URL only title in a form
Sorry if the answer is in a blindingly obvious place, I’ve looked and can’t find it!
Is there a tag or a plugin which will output the url only title as plain text?
Offline
#2 2006-03-02 16:33:43
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Output the URL only title in a form
There is no existing tag, but a while ago I made a small plugin that creates a <txp:url_title />
tag.
Edit: It works for me, but I’m not a coder so use at your own risk ;)
Last edited by doggiez (2006-03-02 16:36:38)
Offline
Re: Output the URL only title in a form
I’m not sure if there is right now. I don’t see it mentioned in the Textbook. If there isn’t I can write a plugin that does so. You can also dump it using php in an article form. I think the variable would be $thisarticle['url_title']
.
Offline
#4 2006-03-03 05:25:40
- teaboy
- New Member
- From: Birmingham, UK
- Registered: 2006-03-02
- Posts: 8
Re: Output the URL only title in a form
Thanks for the replies. In the end I went for Doggiez’s plug-in so my article forms aren’t too cluttered with PHP
Offline
Pages: 1