Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: A little confusion. How do i create a new page?
James,
No problem,
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: A little confusion. How do i create a new page?
> elduderino wrote:
sorry to post again but im having a problem. Ive created a section called ‘about’ and created a new page for it. Ive then gone back to my default page and created a link to the new ‘about’ page using the following method:
<li><txp:link_to_about>about</txp:link_to_about><li>
when ive viewed the site the following error message is displayed where the link should be:
tag_error<txp:link_to_about>
-> Textpattern Warning: unknown_tag
Eldu! you are getting it wrong, man!! There is no such tag as txp:link_to_about.
Re-read my post above.
There is a <txp:link_to_home>home</txp:link_to_home>
tag, but it’s just a special tag to link to your home.
Then, you have this other tag <txp:section />
and you can use it as
<txp:section link="1" title="1" wraptag="li" name="about" />
That tag will output:
<li><a href="http://www.mysite.com/about">About us</a></li>
So, I quote myself:
<code><ul>
<li><txp:link_to_home>home</txp:link_to_home><li>
<txp:section link=“1” title=“1” wraptag=“li” name=“about” />
<txp:section link=“1” title=“1” wraptag=“li” name=“the-big-lebowski” />
</ul></code>
.
Again, the txp:link_to_home is just an special tag to easily create a link to homepage.
That snippet will output:
<code><ul>
<li><a href=“http://www.example.com”>home</a></li>
<li><a href=“http://www.example.com/about”>About us</a></li>
<li><a href=“http://www.example.com/the-big-lebowski”>The Big Lebowski</a></li>
</ul></code>
Last edited by maniqui (2006-02-22 23:49:27)
Offline