Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
Offline
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
Pages: 1