Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-04-11 02:38:29

nvalvo
New Member
From: San Francisco
Registered: 2005-01-18
Posts: 6
Website

Quick PHP question.

So I am trying to set up this cool thing called Chirrup (http://chirrup.angryamoeba.co.uk/) to do Twitter-based commenting on my weblog.

I need to pass the permanent link of the current article to the javascript that gets Chirrup going. In order to do this I need the permalink URL. Not a nice, <txp:permlink> style link, really just the URL.

I imagine it would be possible to get the current URL by echoing something within <txp:php> tags. But what?

Thanks in advance,

nvalvo


http://www.nvalvo.com
http://www.factbasedcommunity.com

Offline

#2 2009-04-11 03:32:21

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: Quick PHP question.

Textbook : page_url may provide you with what you need.

Offline

#3 2009-04-11 03:51:34

nvalvo
New Member
From: San Francisco
Registered: 2005-01-18
Posts: 6
Website

Re: Quick PHP question.

Looks like it probably will. Thanks so much.


http://www.nvalvo.com
http://www.factbasedcommunity.com

Offline

#4 2009-04-11 04:42:32

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Quick PHP question.

Or self-closing <txp:permlink /> that outputs just the url and not a link.

Last edited by Gocom (2009-04-11 04:43:07)

Offline

#5 2009-04-11 06:11:47

nvalvo
New Member
From: San Francisco
Registered: 2005-01-18
Posts: 6
Website

Re: Quick PHP question.

Okay. Fantastic.


http://www.nvalvo.com
http://www.factbasedcommunity.com

Offline

Board footer

Powered by FluxBB