Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-29 18:53:19

davesco
New Member
Registered: 2007-03-29
Posts: 2

section and if_section disagree, totally confused

Hi,

I think I’m having a really weird problem. I’m trying to only show the author and date in articles in the “news” section.

If I use txp:if_section name=“news” then it doesn’t show up in the news section but does show up in some but not all of the other sections.

If I call txp:section it reports that it is in the “news” section.

I generally like to think I know what I’m doing technically but either my setup is really bust or I’m doing something really stupid.

Any help much appreciated.

Offline

#2 2007-03-29 21:46:37

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

Re: section and if_section disagree, totally confused

Where and how are you using <txp:if_section>? Page, form? Can you give us the context and complete code please?

Offline

#3 2007-03-30 12:27:57

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: section and if_section disagree, totally confused

Last edited by Mary (2007-03-30 12:28:30)

Offline

#4 2007-04-03 20:11:21

davesco
New Member
Registered: 2007-03-29
Posts: 2

Re: section and if_section disagree, totally confused

Thanks for that, those are both very helpful links and I’m sure they’ll come in handy in the future.

However, after looking at the problem again with fresh eyes after a weekend away, it turns out I was, as I half suspected, just being stupid. I had used this:

<txp:if_section="news">

instead of this:

<txp:if_section name="news">

and despite staring at it for about an hour, didn’t realise what I’d left out.

Thanks again

Offline

Board footer

Powered by FluxBB