Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-17 21:17:51

Justilien
New Member
From: Upstate, NY
Registered: 2005-12-17
Posts: 4
Website

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

#2 2005-12-17 21:40:10

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

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

#4 2005-12-18 17:32:36

Justilien
New Member
From: Upstate, NY
Registered: 2005-12-17
Posts: 4
Website

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

Board footer

Powered by FluxBB