Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Hidden but live article?
As someone who just recently started using Textpattern I must say I am pleased how easy is to use and setup.
However, there is one thing I am trying to do that I either can’t figure or it’s not supported yet.
Basically, I am looking for a way to have article live but hidden.
Meaning that it will not show on article list but it is possible to link to it.
The only way to access the article would be by clicking on the link manually entered somewhere else (i.e other article).
I know I can “simulate” this with the static page but than I lose the flexibility of a content management system.
Thanks in advance.
Offline
Re: Hidden but live article?
Make it sticky.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: Hidden but live article?
hcgtv wrote:
Make it sticky.
Tried but than it becomes invisible. Entering article URL I get a blank space where article is supposed to be!
I was expecting that sticky will do exactly what I need, but seems I can not make it visible even as individual article.
Last edited by tutubibi (2007-04-14 16:38:02)
Offline
#4 2007-04-14 16:53:11
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Hidden but live article?
No I don’t think sticky will work without a conditional. If this is only about one or a couple of articles, you could use txp:if_article_id. Something like
<txp:if_article_id id="10">
<txp:article status="sticky" />
<txp:else />
your regular article tag(s)
</txp:if_article_id>
should probably work. (I’m guessing here about the attribute id
because TextBook is not accessible at the moment…)
Last edited by els (2007-04-14 16:54:08)
Offline
Re: Hidden but live article?
Nope it does work.
See here, the first paragraphs on the body of the page, are generated with this:
<txp:article_custom id="12" form="articleStatique" />
I use countless more like that.
On rev 2191 anyway.
Offline
#6 2007-04-14 19:03:18
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Hidden but live article?
Yes Jérémie, of course you are right. But I understand that tutubibi wants to show the article only in individual article mode, not as a sticky article on top of an article list.
Offline
Re: Hidden but live article?
Yes Els, that’s exactly what I want to do.
Will give it another try based on your input and see what comes out of it.
Thanks all for the help.
Offline
#8 2007-04-14 21:25:31
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Hidden but live article?
Now that I think about it I doubt if my idea would work, if_article_id is probably meant to be used in an article form. You could also create a special section for this article.
Offline
Re: Hidden but live article?
I don’t see that. Oh, yup, ok.
Maybe with an article tag that include status=5 articles, or with a special section.
Offline
Re: Hidden but live article?
I am still playing with this but not really happy with any option as it is not really elegant solution to a pretty simple problem.
So as a suggestion for the next version, I think it would be a good idea to introduce the additional article status (“Live-Hidden”) where article would not be displayed if part of the list but only as individual article.
Let me try to explain why am I looking for something like this. I am planning to write a series of articles (same section) on a same topic (part1, part2 …) and would like only part1 to be displayed. Once I complete part2, I would just add a link to it at the bottom of part1. Or opposite, part2 could become live and part1 would be then “Live-Hidden” and linked from part2. But only one part (= one article from a series) would be listed at any given time.
Offline
#11 2007-04-15 14:22:49
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Hidden but live article?
Possible workaround: use a custom field. Name it for example ‘show_in_list’ and enter ‘no’ when needed. Then in your article form something like this:
<txp:if_custom_field name="show_in_list" val="no">
<txp:else />
the rest of your article form tags
</txp:if_custom_field>
Last edited by els (2007-04-15 14:23:45)
Offline
Re: Hidden but live article?
Thanks Els,
I followed your suggestion to use custom field and got exactly the functionality I wanted.
Again, thanks a lot for your help.
Offline
Pages: 1