Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-03-22 01:17:49
- septumus
- New Member
- Registered: 2009-03-22
- Posts: 3
Super new to this and need some help!
Hello all, I just recently decided to move over from a free blogging website to hosting my own using textpattern!
I’ve spent the last three days learning about it but I’m still thrown off by this error I’m getting!
Tag error: <txp:posted /> -> Textpattern Notice: Article tags cannot be used outside an article context on line 2075
The code for the page is
<txp:output_form form=“content_header” /> <div id=“main”> <div id=“content”> <txp:posted /> <div class=“single”> <txp:article form=“single” limit=“1” />
</div> </div><!— /content —> <div id=“secondary_content”> <txp:output_form form=“content_secondary” /> </div><!— /secondary_content —> </div><!— /main —>
<txp:output_form form=“content_footer” />
I’ve fixed a few other errors from when I installed other layouts but this one is just throwing me for a loop! What am I missing?
Offline
#2 2009-03-22 01:49:59
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: Super new to this and need some help!
<txp:posted /> returns the posting time for an individual article. The error code is telling you that it needs to in an article form to be useful for that purpose, article specific tags need to have individual article values available to operate properly. If you use them in a page template that is rendering an article list it will throw this particular error.
Last edited by rsilletti (2009-03-22 01:50:28)
Offline
#3 2009-03-22 01:50:12
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Super new to this and need some help!
septumus wrote:
Tag error: <txp:posted /> -> Textpattern Notice: Article tags cannot be used outside an article context on line 2075
Just what it says: the <txp:posted />
tag can only be used in an article form, or, if on the page, inside <txp:if_individual_article>
tags.
Offline
#4 2009-03-22 03:52:15
- septumus
- New Member
- Registered: 2009-03-22
- Posts: 3
Re: Super new to this and need some help!
thanks for the reply guys!
Offline
Pages: 1