Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2008-09-23 19:37:13

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: sections link straight to the article

Why don’t you just have your About details on the front page?

1. In the Sections tab, assign your about section to “On front page?” == yes
2. In your page (or create a form and then use the output_form tag to place it in your page), use something like this:

<txp:section_list sections="overview, installing, broadcasting, listening, developer, donate" default_title="about" active_class="section_list_active" wraptag="ul" break="li" />

That might do what you want.

Offline

#26 2008-09-23 19:44:05

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: sections link straight to the article

Another option: redirect from the .htaccess, or use zem_redirect (pro) (a txp plugin). it’s linked somewhere here in the forum… but I’m in “lazy mode”.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#27 2008-09-23 20:35:08

theartofweb
Member
From: Rome, Italy
Registered: 2008-09-22
Posts: 15
Website

Re: sections link straight to the article

jstubbs wrote:
bq. Why don’t you just have your About details on the front page?
1. In the Sections tab, assign your about section to “On front page?” == yes
2. In your page (or create a form and then use the output_form tag to place it in your page), use something like this:
bc. <txp:section_list sections=“overview, installing, broadcasting, listening, developer, donate” default_title=“about” active_class=“section_list_active” wraptag=“ul” break=“li” />
That might do what you want.

I do have about details on the front page. I’d like to set active_class=“section_list_active” as default for “about” section in the left sidebar.


Alla batteria dai retta ballA

Offline

#28 2008-09-23 20:39:26

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: sections link straight to the article

Take another look at the code I posted above, you might find that it does what you want. Have you tried the code yet to see if it works for you?

Offline

#29 2008-09-23 21:57:16

theartofweb
Member
From: Rome, Italy
Registered: 2008-09-22
Posts: 15
Website

Re: sections link straight to the article

yeah I did try it, yet it didn’t work. I am thinking of making a simple redirect hatml page and set default section to load it :-(


Alla batteria dai retta ballA

Offline

#30 2008-09-24 07:05:03

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: sections link straight to the article

Can you tell us why it does not work? I think I still don’t quite know what you want :-)

If you just want to redirect to /about then think its best to follow maniqui’s advice and use .htaccess or zem_redirect.

But if you just want your about section to be your front page, what I showed you above should work, albeit perhaps with a tweak here or there.

Offline

Board footer

Powered by FluxBB