Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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”.
Offline
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
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
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
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