Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-11-27 08:49:11

myplaces
New Member
Registered: 2008-11-27
Posts: 1

how to create external link, that appears in main navigation?

I understand that in admin is links, where i can create external links. And in admin are sections and categories where i can create internal links.
I need to create external link, that is listed in main navigation. For example
About (internal link)
Link to external page
Articles (internal link)

Now I can create internal and external links block, but these are separeted
I do not understand how to create
Internal link
External link
Internal link
External link

I can only
Internal link
Internal link
External link
External link

Please help how to do it

Offline

#2 2008-11-27 19:32:51

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: how to create external link, that appears in main navigation?

are about and articles links to sections?
if so you could do something like:

<ul>
<txp:section name="about" link="1" wraptag="li">
<li><a href="something">external</a></li>
<txp:section name="articles" link="1" wraptag="li">
</ul>

~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#3 2008-11-27 19:58:24

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: how to create external link, that appears in main navigation?

A minor correction to kemie’s code

<txp:section name="about" link="1" wraptag="li" />

(notice the closing slash)

Last edited by maniqui (2008-11-27 20:06:42)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB