Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-27 05:42:30

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Missing tag: txp:site_url

First missing tag to create portable themes: txp:site_url.

The tag should output the site url defined in the admin tab.

Example of use: <link rel="alternate" type="application/atom+xml" title="<txp:sitename /> " href="<txp:site_url />/atom/" />

It can also be used with stylesheets, images, almost anything hand coded relating to URL (like a favicon).

Edit: grmbl, the bc. still has bug.

Last edited by Jeremie (2006-02-27 05:44:29)

Offline

#2 2006-02-27 05:48:06

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Missing tag: txp:site_url

Nevermind, link_to_home can be use self-enclosing. I’ll edit Textbook.

Last edited by Jeremie (2006-02-27 05:48:33)

Offline

#3 2006-02-27 05:49:56

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Missing tag: txp:site_url

Er, that tag already exists. Am I missing something?

There should be a better feed link tag too.


Alex

Offline

#4 2006-02-27 16:02:16

placenamehere
Archived Plugin Author
Registered: 2004-11-21
Posts: 88
Website

Re: Missing tag: txp:site_url

there should be, yes.

but there isn’t AFAIK. And all the previous threads on the topic have pointed to an existing plugin as resolution. (apologies for not remembering which one.. searcing for LINK should pull it up)

It was on my list to start a thread about in this forum because there isn’t a way either (a) to get just the feed URL, that is smart enough to know if messy or clean URLs are on or (b) to produce the full link tag with the proper feed url and other attributes like you can with making a <a> via txp:feed_link


Site: placenamehere.com
Microformat Plugin: pnh_mf

Offline

#5 2006-02-27 21:19:33

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Missing tag: txp:site_url

zem wrote:
Er, that tag already exists. Am I missing something?

I’ve checked taghandlers and Textbook twice. I think I need new eyes. Or a new brain.

There should be a better feed link tag too.

Yep, because using site_url doesn’t really help on my example on headers link to feeds in messy url mode.

Offline

#6 2006-02-27 21:29:42

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: Missing tag: txp:site_url

I might try and write a plugin to make smart feed auto-discovery links (ones that are aware of the section they are, and the category they are in when the s and c variables are set). I used to do something like this on my site before. This thread discusses a feed link plugin that you can’t download any longer.

Last edited by ramanan (2006-02-27 21:32:55)

Offline

#7 2006-02-27 23:03:29

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Missing tag: txp:site_url

// -------------------------------------------------------------
   function site_url($atts)
   {
      return hu;
   }

It’s been in taghandlers.php since rev 538.


Alex

Offline

#8 2006-02-27 23:43:27

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Missing tag: txp:site_url

Yep Alex, as I said I need new eyes, or possibly a new brain. I’m looking for one at Ebay right now :)

Offline

#9 2006-02-28 03:26:55

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: Missing tag: txp:site_url

Here is a feed url plugin. I haven’t written a plugin in a while, so it might be junk, but it’s probably just fine.

Offline

Board footer

Powered by FluxBB