Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-05-29 20:30:52
- artzone
- New Member
- Registered: 2006-05-29
- Posts: 2
Site structure help...
I’m new to textpattern and wonder if someone could offer some advice on the best setup my first site.
It’s a site for a group of artists. I’ve created a section named “Artists” and this displays all the artist’s names as links (using txp:linklist). This is working ok.
When the links are displayed I want each one to point to a profile page for that artist. Can anyone tell me the best way to set this up. Do I need to create a section for each artist?
Thanks in advance
Artzone
Offline
Re: Site structure help...
This might be helpful.
I’m assuming you’re URL’s would look like this: /artist/joe-schmo
?
Create individual articles for each artist— write up a profile for “Joe Schmo” and post it to the /artist/ section. Then for the template, use something like this:
Page: artist (section needs to use this page template)
<code>
<html>
<head><title><txp:page_title /></title></head>
<body>
<txp:if_article_list>
<ul>
<txp:article form=“artist_list” limit=“999” sortby=“Title” />
</ul>
<txp:else />
<!— if it’s a profile—>
<txp:article form=“artist_profile” />
</txp:if_article_list>
</body>
</html>
</code>
form: artist_list
<code>
<li><txp:permlink><txp:title /></txp:permlink></li>
</code>
form: artist_profile
<code>
<h2><txp:title /></h2>
<txp:body />
</code>
Last edited by deldindesign (2006-05-29 20:57:59)
Offline
#3 2006-05-29 21:27:59
- artzone
- New Member
- Registered: 2006-05-29
- Posts: 2
Re: Site structure help...
Thanks for the quick reply.
I hadn’t thought of using articles instead of links. I’ll give it a go :)
Offline
Pages: 1