Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-04 17:01:54

venkatesaya
Member
Registered: 2008-03-03
Posts: 20

default section

how do I tell txp which section is shown first when the site opens
(I am not asking about the default section when writing a new post in the admin)

I have tried to create a new section and give it the name default
since renaming any other section and naming it default doesn’t work
no section wants to be ‘named’ default

Last edited by venkatesaya (2008-03-05 08:17:13)


Om Namah Shivaya

Offline

#2 2008-03-04 18:12:48

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: default section

Maybe I don’t understand then. Exactly what are you referring to?


Kevin
(graphicpush)

Offline

#3 2008-03-04 18:16:43

venkatesaya
Member
Registered: 2008-03-03
Posts: 20

Re: default section

post has changed since you replied, Kevin
I hope I am more clear

I have purchased the book
I hope to find answers to all my question there – but I have to be patient 2 weeks before it is delivered

Last edited by venkatesaya (2008-03-05 09:49:22)


Om Namah Shivaya

Offline

#4 2008-03-05 08:16:37

venkatesaya
Member
Registered: 2008-03-03
Posts: 20

Re: default section

and the answer is …
simply choose the section(s) you want [on the frontpage]
correct?


Om Namah Shivaya

Offline

#5 2008-03-05 08:25:04

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: default section

Depending on your template, yes. However, you’ll get much finer control with article_custom.

Offline

#6 2008-03-05 09:37:11

venkatesaya
Member
Registered: 2008-03-03
Posts: 20

Re: default section

tanx for the reply jm
know that this would be the first plugin I would install
I have to find out how to do this
I am very new at TextPattern, and I don’t want to mess up my install
if you can help a courageous senior further, don’t be shy
unless you think I will easily find a ‘how to’
God bless you

Last edited by venkatesaya (2008-03-05 09:37:35)


Om Namah Shivaya

Offline

#7 2008-03-05 09:39:26

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: default section

Or with conditionals:

<txp:if_section name="">
	<!-- 
		Your homepage content
		ie. <txp:article /> or <txp:article_custom />
	-->
</txp:if_section>

Offline

#8 2008-03-05 10:30:17

venkatesaya
Member
Registered: 2008-03-03
Posts: 20

Re: default section

where can I download [article_custom] ?
I found [chh_article_custom] but not [article_custom]
which one is going to give control over ordening the section display in the left menu
do I then have to replace or change [<txp:section_list wraptag=“ul” break=“li” />]

Last edited by venkatesaya (2008-03-05 11:01:16)


Om Namah Shivaya

Offline

#9 2008-03-05 11:05:47

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: default section

article_custom is native – everything on this page is built in.

Offline

#10 2008-03-06 12:03:24

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: default section

I would agree with JM about using article_custom; with that tag, there is really no point in choosing which section gets shown on the homepage because the reality is that content attributed to ANY section can appear there. For instance, this might appear on your “default” page template:

<txp:article_custom section="foo" /> (displays articles from section “foo”)
<txp:article_custom section="bar" /> (displays articles from section “bar”)

Definitely read the Textbook entry on article_custom to see all of your options with the tag.


Kevin
(graphicpush)

Offline

Board footer

Powered by FluxBB