Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2007-09-06 20:16:38
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: Correct article list
Wow, er, how many times exactly do you have that article tag on the page? You should only have it ones. And I think the form titles
exists but not title
Offline
#14 2007-09-06 20:20:24
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: Correct article list
you have also used this outside the txp:if_article_list
tag ;
<txp:article form="titles" listform="excerpt" limit="1000" section="criticasfriki" sort="Title desc" excerpted="n" author="malize" />
it should have been
//NOT HERE
<txp:if_article_list>
// HERE
<txp:else/>
// NOT HERE
</txp:if_article_list>
// NOT HERE
Last edited by guiguibonbon (2007-09-06 20:21:59)
Offline
Re: Correct article list
Oh thank you very much!!!
Now it almost works, the only problem is that displays the articles twice… on time the list and on the left the whole article.
Offline
Re: Correct article list
- A lot of invalid (X)HTML on the pagetemplate. You should fix those errors, because every line contains one invalid tag. Validator. (inclosed tags, wrong attributes, madeup-tags etc.)
- And the navigation.
On the left sidebar you could use this:
<txp:article_custom limit="9999" form="titles" />
And on the container:
<txp:if_article_list>
<txp:article limit="9999" form="titles" />
<txp:else />
<txp:article />
</txp:if_article_list>
Cheers!
Last edited by Gocom (2007-09-06 21:28:08)
Offline
Re: Correct article list
I’ve taken a look at your web, Jukka, and after this I must say I truly trust your opinion lol
Thanks for the link! Unfortunately, some “errors” displayed are from textpattern php itself… I’ll take a closer look to fix it all!
On the sidebar should appear another section called “noticasnew” and not “criticasfriki”, I don’t know why it appears this way…
In the page template, I have them separated. When you’re on /criticasfriki it displays the “noticasnew” section propperly, but when you click on the permlink then it all goes mixed up.
Offline
Re: Correct article list
Thanks for the link! Unfortunately, some “errors” displayed are from textpattern php itself…
I was speaking about XHTML errors, that are all caused by you – not by Textpattern. Textpattern outputs valid (X)HTML so those errors are do by you. Turn debuging mode off, then Textpattern doesn’t output those errors generated by PHP (that are also caused by the user – not by Textpattern).
Safari, Opera, IE and FF, all show your page differently ;-)
Cheers!
Last edited by Gocom (2007-09-06 22:37:18)
Offline
Re: Correct article list
Gocom wrote:
bq. Thanks for the link! Unfortunately, some “errors” displayed are from textpattern php itself…
I was speaking about XHTML errors, that are all caused by you – not by Textpattern. Textpattern outputs valid (X)HTML so those errors are do by you. Turn debuging mode off, then Textpattern doesn’t output those errors generated by PHP (that are also caused by the user – not by Textpattern).
Safari, Opera, IE and FF, all show your page differently ;-)
Cheers!
What I meant is, for instance, that displays an error in a <p> tag in an article title that is automatic, and the form doesn’t have any <p> tag. Does this mean that all the tags in page template have to be xhtml and not html? <br /> and not <br>?
How do I make the articles display only once?
Offline
Re: Correct article list
What I meant is, for instance, that displays an error in a <p> tag in an article title that is automatic, and the form doesn’t have any <p> tag. Does this mean that all the tags in page template have to be xhtml and not html? <br /> and not <br>?
If the doctype is XHTML, the whole page should be wrote with XHTML – it’s the law of the doctype. So, yes. And that automatic <p>
. No, Textpattern doesn’t do it automatically, it outputs only what you order it to output. So, it is done by you.
If using Textile, you shouldn’t nest textile and block-object of xhtml in articles. They cause errors – do block element with Textile or with notextile.
. I even wonder why all articles are hand written, why not using categories, custom-fields and so-on.
Cheers!
Last edited by Gocom (2007-09-07 07:54:47)
Offline
Re: Correct article list
Is the only way I know how to do it :/
I’ll fix it, thank you very much :)
Offline