Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-01-08 19:28:37

BryanA.
Member
From: Maryland, USA
Registered: 2007-08-12
Posts: 101

[Solved] Specific Category/Section to show in specific location

Hi all! I just don’t know the proper terminology to search this accurately on the Forum, so I hope you understand and it helps others – I have many categories but one is NEW to 2012. It’s a WORD OF THE WEEK. WOW

Previously, I’ve used a feed reader to display content from one particular Category in one specific area of the homepage – it’s great but stamps out the date and time and summarizes the content which I don’t want for “wow”.

I can offset articles to have them show in <td> data cells perfectly well but don’t know/remember how to call just a particular Category to show in a specific location. Perhaps I should be using Sections? Pardon the simplicity of this request! www.foodnewsie.com if you care to see…

Last edited by BryanA. (2012-01-10 05:24:48)


Voice Actor – starting up a site for that good book stuff.

Offline

#2 2012-01-08 19:57:56

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [Solved] Specific Category/Section to show in specific location

Something like this?

<txp:article_custom category="wow" limit="3">
   // whatever tags you need
</txp:article_custom>

Offline

#3 2012-01-08 22:32:37

BryanA.
Member
From: Maryland, USA
Registered: 2007-08-12
Posts: 101

Re: [Solved] Specific Category/Section to show in specific location

I tried a few variations of that in Page and on the Form where that area is designed – nothing I tried with it worked. Changed a section to WoW also to throw that in the mix. Every effort, the Word of the Week would appear in the regular feed as the new, first entry – I guess I have to stop that from happening too!


Voice Actor – starting up a site for that good book stuff.

Offline

#4 2012-01-09 09:23:20

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [Solved] Specific Category/Section to show in specific location

BryanA. wrote:

nothing I tried with it worked.

The article_custom tag should work. If it doesn’t for you, can you post the exact code you are using, and if possible a tag trace?

Offline

#5 2012-01-10 05:23:38

BryanA.
Member
From: Maryland, USA
Registered: 2007-08-12
Posts: 101

Re: [Solved] Specific Category/Section to show in specific location

Ah! Just got to this very quickly tonight, simple difference:

<td width=290 id=“tdwow”>
<txp:article_custom section=“wow” limit=“1” />
</td>

It’s that kind with the [Space] hash before the close. Works perfectly though <txp:article…> still picks it up as well UNLESS I say “No” to Presentation > Section > wow – On Front Page bullet.

Friggin’ wonderful! I deeply love Textpattern. Have since 2.1 But why do I find it hard to master? :) Els, thank you! I never knew what txp:article_custom was for.

[edit] Forgot to include the DOCS link:
http://textpattern.net/wiki/index.php?title=article_custom link

Last edited by BryanA. (2012-01-10 05:27:33)


Voice Actor – starting up a site for that good book stuff.

Offline

Board footer

Powered by FluxBB