Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-05-20 04:08:51
- tktrn
- New Member
- Registered: 2007-02-04
- Posts: 8
TXP Almost Spring: Strange notice after installing template
I just installed TXP Almost Spring template – followed directions carefully. The only problem I am having is this notice appearing at the top of the page:
Notice: Page template default does not contain a txp:article tag in /home/toni/public_html/textpattern/publish.php on line 462
Do I need another tag I am missing? Is this what is preventing the body of the article being shown?
Any help is appreciated!! Thank you!
(Edit: updated discussion topic. -Mary)
Last edited by Mary (2007-05-20 06:05:03)
Offline
#2 2007-05-20 05:33:27
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: TXP Almost Spring: Strange notice after installing template
It means that page of the particular section you are viewing is missing an article tag, which is what fetches and displays article fields.
- Find out what page your section is using (Sections tab).
- Look through that page (Pages tab) for an article tag.
If you need help, please post the full contents of the page.
Offline
#3 2007-05-20 05:42:39
- tktrn
- New Member
- Registered: 2007-02-04
- Posts: 8
Re: TXP Almost Spring: Strange notice after installing template
Here’s the code for the default page: that must be where the problem lies because the footer and sidebar are functional.
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang=“en”>
<head>
<meta http-equiv=“content-type” content=“text/html; charset=utf-8” />
<link rel=“stylesheet” href=”<txp:css n=“almost_spring” />” type=“text/css” media=“screen” />
<link rel=“alternate” type=“application/rss+xml” title=“RSS 0.92” href=”/?rss=1&section=article” />
<link rel=“alternate” type=“application/atom+xml” title=“Atom 1.0” href=”/?atom=1&section=article” />
<title><txp:page_title /></title>
</head>
<body>
<div id=“wrapper”>
<div id=“accessibility”>
<a href=”#content” title=“Go to content”>Go to content</a>
<a href=”#sidebar-1” title=“Go to navigation”>Go to navigation</a>
<a href=”#sidebar-2” title=“Go to search”>Go to search</a>
</div> <!— /accessibility —>
<!— head —>
<div id=“header”>
<h1><txp:link_to_home><txp:sitename /></txp:link_to_home></h1>
</div>
<!— content —>
<div id=“content”>
<txp:if_section name=”“>
<txp:article limit=“5” />
<txp:if_individual_article>
<p class=“articlenav”>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev> <txp:link_to_next><txp:next_title /></txp:link_to_next></p>
</txp:if_individual_article>
<txp:if_article_list>
<p class=“paging”>
<txp:older>Previous</txp:older> <txp:newer>Next</txp:newer>
</p>
</txp:if_article_list>
</txp:if_section>
<txp:if_section name=“about”>
<txp:article form=“Single” />
</txp:if_section>
<txp:if_section name=“contact”>
<txp:article form=“Single” />
</txp:if_section>
</div>
<!— sidebar —>
<txp:output_form form=“sidebar” />
<!— footer —>
<txp:output_form form=“footer” />
</div>
</body>
</html>
Offline
#4 2007-05-20 06:04:32
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: TXP Almost Spring: Strange notice after installing template
Hmm, that should be working. Is the body of the article the only part that doesn’t display? or does nothing of the article show up (title, date, etc)?
Offline
#5 2007-05-20 06:06:39
- tktrn
- New Member
- Registered: 2007-02-04
- Posts: 8
Re: TXP Almost Spring: Strange notice after installing template
The title of the site works and the sidebar – nothing else!!! Still have that warning showing up at the top of the page!
You can see it for yourself here: http://www.simplymysims.com/dhw/a-new-start-part-2
Last edited by tktrn (2007-05-20 06:08:51)
Offline
Re: TXP Almost Spring: Strange notice after installing template
Does the latest version of TXP still recognise a “blank” for the “default” section?? This is quite an old style and in my later ports I use <txp:if_section name=”,default”> to cover all options.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#7 2007-05-20 14:46:03
- tktrn
- New Member
- Registered: 2007-02-04
- Posts: 8
Re: TXP Almost Spring: Strange notice after installing template
I changed that, no luck…still coming up with the same error and same content on the page :(
Offline
#8 2007-05-20 18:35:57
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: TXP Almost Spring: Strange notice after installing template
Yes, either should work in 4.0.4.
Replace this:
<txp:if_section name="">
<txp:article limit="5" />
<txp:if_individual_article>
<p class="articlenav">
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev> <txp:link_to_next><txp:next_title /></txp:link_to_next></p>
</txp:if_individual_article>
<txp:if_article_list>
<p class="paging">
<txp:older>Previous</txp:older> <txp:newer>Next</txp:newer>
</p>
</txp:if_article_list>
</txp:if_section>
<txp:if_section name="about">
<txp:article form="Single" />
</txp:if_section>
<txp:if_section name="contact">
<txp:article form="Single" />
</txp:if_section>
with this:
<txp:if_section name="about,contact">
<txp:article form="Single" />
<txp:else />
<txp:article limit="5" />
<txp:if_individual_article>
<p class="articlenav"><txp:link_to_prev><txp:prev_title /></txp:link_to_prev> <txp:link_to_next><txp:next_title /></txp:link_to_next></p>
<txp:else />
<p class="paging"><txp:older>Previous</txp:older> <txp:newer>Next</txp:newer></p>
</txp:if_individual_article>
</txp:if_section>
When you want to add a new section you won’t have to change anything, unless you want it layed out like the about page. In that instance, simply add the section’s name to the if_section name list.
It looks like you’re doing something with your site, there’s a bunch of errors. Probably have a missing config file, or the txpath
within it is now incorrect.
Offline
#9 2007-05-20 18:39:04
- tktrn
- New Member
- Registered: 2007-02-04
- Posts: 8
Re: TXP Almost Spring: Strange notice after installing template
I had to change servers, I was nearly out of diskspace….getting Txp back up and running now. I’ll try this out in a few and see how it works! Thanks!
Offline