Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2010-03-16 16:16:27

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

Re: How to display content from different sections using different forms?

but which code you use for other pages?

Offline

#14 2010-03-16 16:33:43

sereal
Member
From: Indonesia
Registered: 2010-02-18
Posts: 55

Re: How to display content from different sections using different forms?

basically other pages have the same news style in their content and are called like this and displayed in front / home page

<txp:article_custom limit="1" form="myArticle" section="myInfo" />
<txp:article_custom limit="1" form="myArticleNews" section="myNews" />
<txp:article_custom limit="1" form="myArticleTech" section="myTech" />

while the form elements are basically have the same template like the one in my previous post


$(mydocument).notyetready(function() {});
dowebsitesneedtolookexactlythesameineverybrowser ?

Offline

#15 2010-03-16 17:54:00

sereal
Member
From: Indonesia
Registered: 2010-02-18
Posts: 55

Re: How to display content from different sections using different forms?

Hi Dragondz

sorry my Bad…

I found the error…—> I missed one page template that made up a section

limit=“1” now is set….beautiful :)

thank you… :)


$(mydocument).notyetready(function() {});
dowebsitesneedtolookexactlythesameineverybrowser ?

Offline

#16 2010-04-07 10:55:46

goncalo.dumas
Member
From: Lisbon
Registered: 2005-12-14
Posts: 97
Website

Re: How to display content from different sections using different forms?

Hello,

I noticed you mentioned the use of the article_custom tag within an article body? Well, according to textpattern faqs, you shouldn’t do that:

From txp faqs:
QUESTION: Can I use Textpattern tags in article bodies?
ANSWER: Some, but not all. In particular, <txp:article /> and <txp:article_custom /> usually won’t work at all, and are likely to fail in subtle ways if they do.

On the other hand, this use of article_custom within an article body is mentioned in the Texpattern Solutions (in page 172) in an section about the use of keywords.

I’m counting on using this technique throughout a site I’m developing, so I’m hoping txp faqs are outdated!

Have you been having any problems so far?

Last edited by goncalo.dumas (2010-04-07 10:57:14)

Offline

#17 2010-04-07 11:42:30

yotiao
Member
From: UK
Registered: 2009-10-27
Posts: 28
Website

Re: How to display content from different sections using different forms?

Hi,

I am not sure if you’re asking me :-), but if so, I finally chose another way. As one of the forumers mentioned before, as long as I have selected the two sections as the only ones that are shown at the home page, I can use the <txp:article> tag with both sections without problem. And I did, and I have had no problems so far, but I guess it’s not what you wanted to do…

I do not use this tag in any article bodies I have ;-)

cheers
yot

Offline

#18 2010-04-07 12:25:27

goncalo.dumas
Member
From: Lisbon
Registered: 2005-12-14
Posts: 97
Website

Re: How to display content from different sections using different forms?

Sorry, you’re right. The question was meant for those who subscribed to this topic, but then I re-edited the post and “you guys” inadvertently turned to “you”.

I think I’ll create another topic to discuss custom_article/article body conundrum.

Thanks,

Offline

Board footer

Powered by FluxBB