Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-04-22 23:13:50
- martiin
- Member
- Registered: 2007-04-22
- Posts: 11
Article that is hidden in main page?
Greetings, i would need some help:
I’ve created some categories for my articles and displayed them on the sidebar. But some articles must be displayed on the sub-pages only, not on the main page. Is it possible somehow to hide these articles from the main page please?
(if i create a section for them and i disable “On front page” button, the articles disappear from sub-pages too)
Thank you.
Offline
Re: Article that is hidden in main page?
There are various ways of achieving what you are looking for
if you use the glx_if plugin in combination with sticky articles you could have something like
<txp:glx_if_frontpage><txp:article /></txp:glx_if_frontpage>
<txp:glx_if_not_section_frontpage><txp:article status="live, sticky"></txp:glx_if_not_section_frontpage>
Alternatively you could use article_custom
<txp:if_section name=""><txp:article_custom ... Attributes /></txp:else><txp:article /></txp:if_section>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Article that is hidden in main page?
I think you can also create a section and set : On front page? to “no” and assign thoses articles to it!
Offline
#4 2007-04-23 08:40:05
- martiin
- Member
- Registered: 2007-04-22
- Posts: 11
Re: Article that is hidden in main page?
Thank you, ill try to use these ways. If im unsuccesful, could i give you an admin acc to fix this please? Im newbie with Txp.
Best wishes
martiin
Offline
#5 2007-04-23 09:48:19
- martiin
- Member
- Registered: 2007-04-22
- Posts: 11
Re: Article that is hidden in main page?
As i see, the problem is this:
The articles in the “article” section work well, but the articles in any other section are empty :(
Here:
http://its-hungary.com/sites/gyaripar/textpattern/
The article “HYPERBOREA” works if you click on it, but the “Kontakt” and “Linkek” dont.
Any idea? thank you again.
Offline
Re: Article that is hidden in main page?
Have you articles in thoses sections? and wich page/style u use in thoses sections (go to section tab de see that)?
Offline
#7 2007-04-23 11:40:42
- martiin
- Member
- Registered: 2007-04-22
- Posts: 11
Re: Article that is hidden in main page?
Yes, in “Kontakt” section is “Kontakt” article, in “Linkek” section is “Linkek” article. Both sections use the “default” page style, just like the “article” section.
Offline
Re: Article that is hidden in main page?
what code are u using?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#9 2007-04-23 12:41:47
- martiin
- Member
- Registered: 2007-04-22
- Posts: 11
Re: Article that is hidden in main page?
- textpattern-4.0.4
- modified TXP Treba style
plugins:
- ajw_comment_alt
- ako_nav
is this that you ask?
Last edited by martiin (2007-04-23 12:42:11)
Offline
Re: Article that is hidden in main page?
The code is about the page and form u use to display articles!
Can you give us the link to those articles that dont apears!
Are those article “sticky” or “live” ?
Offline
#11 2007-04-23 14:35:20
- martiin
- Member
- Registered: 2007-04-22
- Posts: 11
Re: Article that is hidden in main page?
Here is the code:
http://its-hungary.com/sites/gyaripar/textpattern/code.txt
Here is the main page where i can see the excerpt of article “linkek”:
http://its-hungary.com/sites/gyaripar/textpattern/
Here is the subpage where i cannot see the body of article “linkek”:
http://its-hungary.com/sites/gyaripar/textpattern/linkek
All articles are Live.
Sorry if im amateur at this…
Offline
Re: Article that is hidden in main page?
Hi martin
Maybe the pb is with txp:else because you have:
<txp:if_section>
<txp:if_article_list>
Try to remove txp:else and change like this:
<txp:if_section>
<txp:if_article_list>
your stuff
</txp:if_article_list>
<txp:if_individual_article>
<txp:article />
</txp:if_individual_article>
</txp:if_section>
Offline