Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-10-27 10:41:37
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Basic question
How do I link to a page I created? It seems stupid but I dont know how… (I searched, believe me)
Like this:
<a href=“about.php”>About us</a>and page name is ‘about’ , what code must I use or what..
thanks
Offline
Re: Basic question
Hi have you linked the page to a section (in section tab) if you did that you can link using http://yourdomain/section or with messy url http://yourdomain/index.php?s=section
Cheers
Offline
Re: Basic question
If you’re linking to other articles while writing from the Write tab, the wet_quicklink plugin is indispensible. You can elect for it to insert (imo, the most useful) txp:permlink-style links which will put something like this in your article body on the Write tab:
<txp:permlink id="42" title="Life, The Universe and Everything"></txp:permlink>
That will then render a link to the article when viewed.
Last edited by Bloke (2010-10-27 12:10:26)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#4 2010-10-27 15:55:16
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Basic question
I think I havent explained well. In Presentation > Pages , I created a new page, called “about”, and Im wondering how to link my default page to about , I tryed something like page?=about but it isnt… then I don’t know how the link/see that page
Offline
#5 2010-10-27 17:13:57
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Basic question
You can’t link to a page. A page has to be assigned to a section (in Presentation > Sections), and then you can link to the section with for instance <txp:section name="your-section">Link text</txp:section>
. Or like Dragondz said.
But you might as well read a couple of tutorials.
Offline
#6 2010-10-28 07:43:37
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Basic question
Oh, ok, I understood :O! Thanks guys.
Offline
#7 2010-10-28 09:00:58
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Basic question
What do you recommend me to do the menu?, this?
<li><txp:section name="aboutus">About us</txp:section></li>
I did this to link home
<li><txp:section name=defualt">Home</txp:section></li>
is that correct?
Its first time I make a menu in txp and I didnt saw the section for default page, so I made a ‘Home’ section and said default page changed, but ‘Home’ sections hadnt show up
Offline
#8 2010-10-28 17:06:49
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Basic question
link_to_home. And again: Tag Reference :)
Offline
#9 2010-10-28 17:35:05
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: Basic question
If you want to link directly to a section, it is simpler to make it like this: <a href="/aboutus">About us</a>
And in the .htaccess RewriteBase /
or some other working path.
Offline
#10 2010-10-31 01:37:04
- radneck
- Plugin Author
- Registered: 2005-07-03
- Posts: 109
Re: Basic question
helmz wrote:
What do you recommend me to do the menu?, this?
If you want to do a section menu properly (that will always be correct if you add/rename/remove a section), use section_list. Additionally, you may find this helpful, and I’d recommend having a look through the default template that comes with TXP.
Offline
Pages: 1