Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Tag error

#1 2008-03-16 13:36:05

Dean S
New Member
Registered: 2008-03-01
Posts: 4

Tag error

Hi Guys,

I keep getting the following tag errors appearing on my source code just before the doctype.

<pre>Tag error: <b>&lt;txp:sitename/&gt;</b> -> <b> Textpattern Notice: tag is deprecated on line 978</b></pre><pre>Tag error: <b>&lt;txp:sitename/&gt;</b> -> <b> Textpattern Notice: tag is deprecated on line 978</b></pre>

I’m trying to investigate but am still somewhat puzzled.

Dean

Offline

#2 2008-03-16 13:40:07

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Tag error

Replace <txp:sitename /> with <txp:site_name /> in your forms and pages.

Offline

#3 2008-03-16 14:12:44

Dean S
New Member
Registered: 2008-03-01
Posts: 4

Re: Tag error

Perfect thanks a bunch it seems to have done the trick.

Your reply has also opened up a few other questions…

The textpattern book suggests the correct tag is <txp:sitename /> however you have suggested the correct Tag is <txp:site_name />. Do the two tags have different purposes and are we to use them for different applications.

Thanks – D

Offline

#4 2008-03-16 14:50:56

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Tag error

sitename was replaced by site_name.
sitename was never really a tag. It just happened to work. In recent TXP versions, the site_name tag was added officially. They are functionally equivalent.

Offline

  1. Index
  2. » Archives
  3. » Tag error

Board footer

Powered by FluxBB