Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-04-14 13:51:04
- alsheron
- New Member
- Registered: 2010-04-14
- Posts: 2
Blank page with strange behaviour
Hi!
I’m just started getting used to Textpattern and have done loads of reading/reasearch in efforts to figure out what goes where in terms of code and how to structure my site properly.
At the moment I think I might be experiencing a bug. I’m running this off a localhost VM winxp machine using wamp.
I’ve got a page called “ccc-about” with the following code on it:
<txp:article form=“ccc-site-head” />
<txp:article form=“ccc-site-footer” />
This references two forms and “pulls in” the code from them. The section “about” which uses page “ccc-about” displays the page correctly – no problems and says 14 queries.
However, there are also a few other sections all set up the with the same settings. One of them is “books”. The “books” section is set to use page “ccc-default” as do most of the other sections. Problem is that even though “ccc-default” page has in it the exact same code as above used for “ccc-about” the page does not render at all. The source code is completely blank except for the textpattern stats at the bottom.
If I put the following:
Hello!
<txp:article form=“ccc-site-head” />
<txp:article form=“ccc-site-footer” />
then I get the following source code:
Hello!
<!— Runtime: 0.0141 —>
<!— Query time: 0.010949 —>
<!— Queries: 12 —>
<!— Memory: 2614Kb, end of textpattern() —>
Which indicates that the txp tags aren’t getting parsed for some reason?!
I’d really appreciate some help with this as I’m learning this stuff and want to make sure this isn’t a bug before I keep trying to find out what I’m doing wrong?
Any ideas?
===UPDATE========
I replaced <txp:article with <txp:output_form
and it seems to work fine now. Still wondering why the original code worked on one page and not on the other??
Last edited by alsheron (2010-04-14 14:07:15)
Offline
Re: Blank page with strange behaviour
Hi
using txp:output_form is better in your case, but to explain why there was blank page in one section and not in other, because txp:article is a tag that output article from a given section and it is a case sensitive tag, that means if there is no article in that section it will render nothing!
Cheers
Offline
#3 2010-04-14 18:00:52
- alsheron
- New Member
- Registered: 2010-04-14
- Posts: 2
Re: Blank page with strange behaviour
Thanks very much for explaining that Dragondz – it’s the “little things” like that that are important to understand – could have taken me hours to search for, if at all!
Offline
Pages: 1