Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-17 15:57:48

bauhouse
Archived Plugin Author
From: Abbotsford, BC Canada
Registered: 2004-06-29
Posts: 68
Website

the Wild Orange spa

I just launched my latest site this morning for one of my favourite clients, the Wild Orange spa. I do primarily print design for the Wild Orange spa, but the opportunity arose to convert them from running an all-Flash site to a Textpattern site when they needed to update their menu and pricing. What they needed was an easy and cost-effective way to update treatments, pricing and current offers. Their Flash developer had gone out of business and they had no easy way to update their content. Now, all that has changed.

These days, I am working with as few plugins as possible and I am finding that the section/title links are working well for mostly static sites, such as this (although I can’t wait for nested sections in 4.1). I am using CSS selectors to hide all but the relevant section links in the navigation, even though, when you look at the code, the entire navigation for the treatments is available on every page. By using the following code, I can change the CSS to show the available links and the active section without using plugins:

<code><txp:if_section name=”“>
<body id=“home”>
<txp:else />
<body id=“section_<txp:s />” class=“section”>
</txp:if_section></code>

Offline

#2 2005-12-17 18:15:04

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: the Wild Orange spa

Love it. I like orange and my vote goes for the “Chocolate Soufflé Massage”. I’ll have to try that one day just to say “I have”. :)

Just looking at your above code there is a proper tag <code><txp:section /></code> to replace <code><txp:s /></code>. The advantage of using it is that in it’s plain state it outputs the section name but you can also add the “title” attribute if you want to call the title instead.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2005-12-17 19:01:23

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: the Wild Orange spa

Very nice design. Love the orange colour. Nice work.

Offline

#4 2005-12-18 01:26:01

bauhouse
Archived Plugin Author
From: Abbotsford, BC Canada
Registered: 2004-06-29
Posts: 68
Website

Re: the Wild Orange spa

Glad you like the site. Thanks, thebombsite, for the <code><txp:section /></code> tip. I updated the code and it’s working quite well. So many things have been added so quickly, it’s hard to keep up with it all.

Offline

Board footer

Powered by FluxBB