Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-20 10:42:11

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

article status="hidden"

i created article, set status hidden but it doesn’t show up

my page:

<txp:article_custom id=“3” status=“hidden” />

Offline

#2 2007-06-20 10:59:35

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: article status="hidden"

So it works as expected. What’s your point?

Offline

#3 2007-06-20 11:25:40

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: article status="hidden"

status=“hidden” would only show the article if you didn’t specify the ID and I wonder if that’s a bug or a feature. Why set something hidden if you want to show it to people?

Offline

#4 2007-06-20 11:27:52

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: article status="hidden"

wet wrote:

So it works as expected. What’s your point?

i want that this article (contains contact information) would show up at the bottom of each different language (3 of them) pages. i don’t want to create 3 copies of this article for each different (language) section

Offline

#5 2007-06-20 11:34:42

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: article status="hidden"

I see.

  1. Create a 4th section
  2. Set it to “on frontpage? no” “in feeds? no” in search? no”, which basically makes it a container for all internal stuff.
  3. Save your article there
  4. Add <txp:article_custom id="3" /> to the page template for all other three sections to drag a specific article into visibility.

Last edited by wet (2007-06-20 11:35:20)

Offline

#6 2007-06-20 12:59:21

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: article status="hidden"

ruud wrote:

status=“hidden” would only show the article if you didn’t specify the ID

that is excactly what i ment. …and it’s visible. thank’s

Offline

#7 2007-06-20 13:05:25

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: article status="hidden"

wet wrote:

  1. Create a 4th section

and which page template i specify for this new section? when english, all menu items will be in english in german pages too…..

Offline

#8 2007-06-20 13:49:09

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: article status="hidden"

Gallex wrote:

i want that this article (contains contact information) would show up at the bottom of each different language (3 of them) pages. i don’t want to create 3 copies of this article for each different (language) section

Why not use a form (containing the contact info) instead of an article and include that at the bottom of the page?

Offline

#9 2007-06-20 18:27:45

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: article status="hidden"

Gallex wrote:

and which page template i specify for this new section?

The page template does not matter at all. This section serves only as a container for articles which aren’t displayed on the front page, included in feeds or search results.

Last edited by wet (2007-06-20 18:28:15)

Offline

#10 2007-06-21 03:42:59

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

Re: article status="hidden"

If you specify an id, the status attribute (which is really only mean to allow you to display live versus sticky articles) is ignored and it displays the article if its’ status is live or sticky.

I would use a form and output_form too, rather than an article.

Last edited by Mary (2007-06-21 03:44:00)

Offline

Board footer

Powered by FluxBB