Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Content Not Posting On Section Pages
Hi all! I’ve been trying to figure out the problem. If I click on the article I see it. If I click on the section pages I see nothing. I’m not sure what the problem is. Has anyone found this issue as well?
Thanks for your help!!!
Offline
Re: Content Not Posting On Section Pages
FYI – Here’s the site if you want to see what I mean:
Section: http://olgahow.com/site2/index.php?s=articles
Article: http://olgahow.com/site2/index.php?id=28
Offline
Re: Content Not Posting On Section Pages
tag trace please
Offline
Re: Content Not Posting On Section Pages
Please post your tag trace here, not in the sticky topic ;)
When you look at the tag trace, you’ll see several errors that make it clear what the problem is. For example:
Tag error: <txp:article_custom section="articles" form="default_excerpt" limit="4" status="live" />
-> Textpattern Notice: Form not found: default_excerpt on line 1437
Offline
Re: Content Not Posting On Section Pages
(Ruud, you were quick moving it over… now I know where it came from)
olgahow, your errors are caused by:- you need to define a form called “default_excerpt” of type “article”, even if all it contains is
<txp:excerpt />
. - there’s a problem with an undefined variable vhd_flickr_thumbnails. You might want to check the thread. They’re only notices, so once you switch the status to live in the admin preferences they will disappear.
- you should use <txp:site_name /> instead of <txp:sitename /> (notation has changed)
Last edited by jakob (2008-04-24 20:56:09)
TXP Builders – finely-crafted code, design and txp
Offline
Re: Content Not Posting On Section Pages
<div class="post-wrap">
<h3 class="post-title"><txp:permlink><txp:title /></txp:permlink></h3>
<div class="post">
<txp:rss_auto_excerpt linktext="keep reading" ending="..." words="30" linkwraptag="span" linkclass="readmore" wrapreadmore="1" showlinkwithbody="0" excerptwraptag="p" />
</div>
<div class="metadata">
<span class="post-date"><txp:posted format="%b/%d/%y" /></span>
<txp:rss_uc_filedunder section="articles" linktosection="articles" labeltag="h4" label="filed under" wraptag="ul" break="li" />
<txp:if_comments>
<span class="comment_invite"><txp:comments_invite showcount="0" showalways="1" /> <txp:comments_count /></span>
</txp:if_comments>
</div>
<div class="clear"> </div>
</div><!--close post-wrap-->
when i replaced the current default_excerpt with what you suggested it worked…kind of. the code above is what is now in default_excerpt. i’m guessing this is where the bigger problem lies. :)
Last edited by ruud (2008-04-25 22:01:07)
Offline
Re: Content Not Posting On Section Pages
hmm, it looks like you have a lot more in the form than you need. Perhaps try paring back the form to the essentials first and then adding extras bit by bit.
Think of the form as the item that contains the article content only. Your comment_invite should be in your page template (as it appears on your page twice it looks as if it is already there).
I’ve not used rss_unlimited_categories but a quick search seems to suggest you may need to use it’s own function rather than txp:article? – see here for more info.
Finally, as you are already in the section articles, you can use txp:article
with form="my-individual-article-form" listform="my-article-list-presentation-form" ...
as txp:article is context sensitive and will know to show articles from the section “articles” when called from within that section, likewise to use listform="..."
for the list view and form="..."
for the individual article view.
PS: put a space between bc.. and the code that follows...
to get multiline code to appear properly.
TXP Builders – finely-crafted code, design and txp
Offline
Pages: 1