Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-08-22 21:04:52
- sturomanek
- New Member
- Registered: 2007-08-22
- Posts: 3
section structure (?)
admittedly i’m pretty new to textpattern and this might be the worlds easiest problem so bear with
ive got 3 sections to my website styled the same way (3 column layouts). these are to serve as landing pages. the user is welcomed to this section with brief overviews of topics etc with the option to read the full articles belonging to the section. this is where i probably went wrong. i wanted the specific articles to be styled differently, a 2 column layout, so each section has another section for content (this where i started noticing redundancy)
so far section1_landing, section1_content etc
both sections of the same content share the same navigation form. my question is how should i build the links? linking them as /section1_content/id works once but then i would have to come back out to go to the next section (../../section1_content/id).
i dont even know if im phrasing this well enough. if anyone can see what i should have done let me know.
thanks
Offline
Re: section structure (?)
Er- what?
- Textpattern’s articles are always posted only to one section, but you can call it to any section via
<txp:article_custom section="section name" />
. - Another way is if other section is used as frontpage, you can call articles to that section from another section from Textpattern’s Presentation / Sections.
- As a good way, is using in pagetemplate
<txp:if_individual_article>
-tags. - And at last but not the worst,
<txp:if_section name="section name">
-tags
Example:
<txp:if_individual_article>
<div id="column-left">
<txp:output_form form="navigation" />
</div>
<div id="column-right">
<txp:article />
</div>
<txp:else />
<div id="column1">
<txp:output_form form="navigation" />
</div>
<div id="column2">
<txp:article limit="5" />
</div>
<div id="column3">
<txp:output_form form="navigation2" />
</div>
</txp:if_individual_article>
Example:
<txp:if_section name="blog">
<div id="column1">
<txp:output_form form="navigation" />
</div>
<div id="column2">
<txp:article_custom section="archive" limit="5" />
</div>
<div id="column3">
</div>
</txp:if_section>
<txp:if_section name="archive">
<div id="column-left">
<txp:output_form form="navigation" />
</div>
<div id="column-right">
<txp:article />
</div>
</txp:if_section>
That URL-link thing that you wrote. I don’t get it, but Textpattern does not work that way. So forget about it.
Cheers!
Last edited by Gocom (2007-08-22 21:49:53)
Offline
Pages: 1