Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-01-14 11:27:47
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Text not shown at the site
Hello,
I have made a article in the section “article”
In the page section i use the following section:
<code>
<div id=“foto”>
<txp:if_section name=“article”>
<txp:article form=“Single” listform=“Single” />
</div>
</code>
But at the frontpage nothing is seen.
Section article looks like this :
Sectie naam: Article
Sectie titel: Article
Gebruik pagina: pagina1
Gebruik stijl: tamara
Als standaard sectie gebruiken? ja
Op de voorpagina? ja
Opnemen in XML feed? ja
Opnemen in site zoekfunctie? ja
What am i doing wrong ??
Roelof
Last edited by roelof (2006-01-14 11:28:31)
Offline
#2 2006-01-14 12:25:06
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Text not shown at the site
First, if you use <txp:if_section name="article">
, that means that you are not on the frontpage, but in section ‘article’. So use <txp:if_section name="">
instead.
Second, you forgot to close the if_section tag: </txp:if_section>
should come after the article tag.
Offline
#3 2006-01-14 12:35:38
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: Text not shown at the site
oke,
If i understand it well , everything on the frontpage does not have a section ??
Every article must have a section, or im mistaken ??
Roelof
Last edited by roelof (2006-01-14 13:12:19)
Offline
#4 2006-01-14 13:59:38
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Text not shown at the site
Sort of ;)
Every article must be in a section, that’s right. The frontpage itself is section ‘default’ (I don’t know what it’s called in Dutch, but you can see it as the first section under the Sections tab, you can’t delete it). On the frontpage only those sections are displayed for which you set “Op de voorpagina? ja”.
The tag <txp:if_section name="">
is saying: if we are on the frontpage, do this. So the <txp:article />
tag that comes after it, will show the articles in the section(s) that you have set to show on the frontpage.
I hope this make things a bit clearer for you?
Offline
#5 2006-01-14 14:26:06
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: Text not shown at the site
oke,
You made things a bit clearer for me.
I have seen that i have a section called default. But in the page-section where you can choose the section i can only see default en about. That’s the problem i think.
I use TPX 4.0.3. downloaded from www.textpattern.com
Offline
#6 2006-01-14 14:46:22
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Text not shown at the site
I have seen that i have a section called default. But in the page-section where you can choose the section i can only see default en about. That’s the problem i think.
Do you mean in the presentation > sections tab? Or where you write your articles, in content > write?
In presentation > sections you should see all sections, including default.
In content > write you should see all the same sections, but not default (because that’s not a section that an article can belong to).
You said you have a section called ‘article’. You should be able to see this in both tabs.
Offline
#7 2006-01-14 15:09:47
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: Text not shown at the site
In presentation > sections there is a default section.
In contentet > write no default section.
But if in content > write i can’t choose for default. Which section do i have to choose if a want a article on the frontpage.
Roelof
Offline
#8 2006-01-14 16:21:56
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Text not shown at the site
If you have set section ‘article’ to show on the frontpage, then you should choose section ‘article’.
Offline
#9 2006-01-14 16:30:58
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: Text not shown at the site
oke,
But then nothing will display. Thats just my problem.
I have the feeling we runnig in circles.
Roelof
Offline
#10 2006-01-14 16:36:48
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Text not shown at the site
Have a look at section Default in Presentation > sections. It probably says ‘Gebruik pagina: default’. And I suspect you are putting your tags on page ‘pagina1’. If that is the case, change the page for section Default to ‘pagina1’.
Does that work?
Offline
#11 2006-01-14 16:43:18
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: Text not shown at the site
Nope,
Default is set to pagina1 and css-file tamara
Offline
#12 2006-01-14 17:50:41
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Text not shown at the site
Then, if
- your articles are in section article
- your articles are set to ‘Live’
- section article is set to display on the frontpage
- section default is set to use pagina1
- the form Single exists
this code on page pagina1:
<code>
<txp:if_section name=”“>
<txp:article form=“Single” listform=“Single” />
</txp:if_section>
</code>
should display your articles on the frontpage. I don’t know what else can be wrong :(
Last edited by doggiez (2006-01-14 17:52:23)
Offline