Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
create sections like /miami/article, miami/article2, etc
I have a travel site I am building. I need a folder for each city name and the files stored within it.
Example
/miami/ (index page pointing to other resources)
/miami/article
/miami/article2
/miami/article3
/miami/article4
/miami/article5
/miami/article6
I need the ability to to have a default page for Miami to link to everything.
I tried it with the “Sections” feature, but then the main index page for Miami was transfer to each subpage.
One workaround maybe to have the file name based off of the “category” instead of the “section”. That way the “section” page could be the index page. Yet I am unsure how to modify that.
Any advice would be appreciated.
Last edited by Justilien (2005-12-17 21:26:36)
Offline
Re: create sections like /miami/article, miami/article2, etc
I tried it with the “Sections” feature, but then the main index page for Miami was transfer to each subpage.
That’s the way to go. You can show different things using conditional tags, in this case <txp:if_article_list></txp:if_article_list>
(which would be your section home page) and <txp:if_individual_article></txp:if_individual_article>
(your articles under the particular section).
Have a look at TextBook for more tags to use.
Offline
#3 2005-12-17 23:16:41
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: create sections like /miami/article, miami/article2, etc
Or use one page for the front page and another for the rest.
Offline
Re: create sections like /miami/article, miami/article2, etc
Thanks for your help! I just discovered Textpattern on a recommendation. I am extremely impressed with it.
Offline