Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#25 2006-07-19 08:33:24
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: General guidance on static site structure
What do your page tags look like?
Offline
#26 2006-07-19 22:54:02
- dimfish
- Member
- Registered: 2006-06-01
- Posts: 72
Re: General guidance on static site structure
Not sure I know what you mean Mary, sorry. Can you explain?
Offline
#27 2006-07-20 02:19:07
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: General guidance on static site structure
Sorry. Your page’s tags (as opposed to your forms’ tags), what are you using?
Offline
#28 2006-07-20 08:09:04
- dimfish
- Member
- Registered: 2006-06-01
- Posts: 72
Re: General guidance on static site structure
Ah. I’m using this to deliver my main content:
<code>
<txp:if_category>
<!— we’re looking at a category list —> <txp:article form=“artorlist” />
<txp:else />
<!— we’re looking at the section list —> <txp:article limit=“1” form=“sectionpage” />
</txp:if_category>
</code>
Form artorlist is:
<code>
<txp:if_first_article>
<txp:if_last_article>
<!— we’ve got an article which is both the first and last article, —> <!— which means there’s only one —>
<h2><txp:category1 title=“1” /></h2>
<txp:body />
<txp:else />
<!— there’s a list, and this is the first one, —> <!— so include the category title —>
<h2><txp:category1 title=“1” /></h2> <h3><txp:permlink><txp:title /></txp:permlink></h3> <txp:excerpt />
</txp:if_last_article>
<txp:else />
<!— there’s a list, and this isn’t the first article —>
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<txp:excerpt />
</txp:if_first_article>
</code>
And sectionpage form is:
<code>
<h2><txp:title /></h2>
<txp:body />
</code>
Offline