Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-03-13 18:43:24

sereal
Member
From: Indonesia
Registered: 2010-02-18
Posts: 55

Home Section link

hi, I try to make someting like this

textile:

<txp:section name="home"><span class="logoHome">Home</span></txp:section>

that code creates a link like this:

<a href="http://mysite.txp/home/"><span class="logoHome">Home</span></a>

how to make the link like :

http://mysite.txp/

instead of

http://mysite.txp/home/

please advise


$(mydocument).notyetready(function() {});
dowebsitesneedtolookexactlythesameineverybrowser ?

Offline

#2 2010-03-13 18:53:52

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Home Section link


Code is topiary

Offline

#3 2010-03-13 18:59:19

sereal
Member
From: Indonesia
Registered: 2010-02-18
Posts: 55

Re: Home Section link

oh my god…

Im getting in love with TXP !

thank you jsoo


$(mydocument).notyetready(function() {});
dowebsitesneedtolookexactlythesameineverybrowser ?

Offline

#4 2010-03-13 22:15:04

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

Re: Home Section link

Also get to fall in love with the <txp:site_url /> tag. It produces the URL for your frontpage and you can use TXP tags inside HTML tags. This means you can have something like:-

<a href="<txp:site_url />">Home</a>
<a href="<txp:site_url />about">About</a>
<a href="<txp:site_url />contact">Contact</a>

etc etc. Not only is it shorter code but it is also transportable in case you ever need to move the site.

Last edited by thebombsite (2010-03-13 22:18:15)


Stuart

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

Offline

#5 2010-03-14 09:48:46

sereal
Member
From: Indonesia
Registered: 2010-02-18
Posts: 55

Re: Home Section link

wowww…once again thank you thebombsite


$(mydocument).notyetready(function() {});
dowebsitesneedtolookexactlythesameineverybrowser ?

Offline

Board footer

Powered by FluxBB