Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
The navbar as form
<p>Hello!</p>
<p>I trying to place the code for my navbar in a Form, only need to managing at one place, instead of at all “Pages” – but somehow, when I do so – everything beneath (the Posts and the Footer) jumps out of their place.</p>
<p>The navbar code – that i made an article Form named meny of (recalled in the Page) as <pre>
<code><txp:article form=“meny” /></code>
</pre>
– looks like this</p>
<pre><code><ul>
<li class=“home page_item”><a href=“http://www.vsq.se/”>Nyheter</a></li>
<li class=“home page_item”><a href=“http://www.vsq.se/stegen”>Stegen</a></li>
<li class=“home page_item”><a href=“http://www.vsq.se/medlem”>Medlem</a></li>
<li class=“page_item”><a href=“http://www.vsq.se/foereningsinfo”>Föreningsinfo</a></li>
<p></ul></code></pre></p>
<p>I guess whats above does matter here – and thats following</p>
<pre>
<code><link rel=“stylesheet” href=“http://www.vsq.se/css/screen.css” type=“text/css” media=“screen” />
<link rel=“stylesheet” href=“http://www.vsq.se/css/print.css” type=“text/css” media=“print” />
<title><txp:page_title /></title>
</head>
<body>
<div id=“wrap”>
<a href=”#content” title=“Skip to Content” class=“hide” accesskey=“s”>Skip to Content »</a>
<div id=“header”>
<h5><txp:link_to_home><txp:site_slogan /></txp:link_to_home></h5>
<ul>
<li class=“home page_item”><a href=“http://www.vsq.se/”>Nyheter</a></li>
<li class=“home page_item”><a href=“http://www.vsq.se/stegen”>Stegen</a></li>
<li class=“home page_item”><a href=“http://www.vsq.se/medlem”>Medlem</a></li>
<li class=“page_item”><a href=“http://www.vsq.se/foereningsinfo”>Föreningsinfo</a></li>
<p></ul>
<hr class=“hide” />
</div>
<div id=“main”>
<div id=“content”>
<txp:article limit=3 /></code>
</pre></p>
<p>Anyone knows how to to?</p>
Last edited by yaform (2006-01-22 13:13:57)
all we need is some creactivism
Offline
#2 2006-01-22 13:14:44
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: The navbar as form
I’m sorry yaform, I don’t understand the problem. When I look at http://www.vsq.se/ it looks okay to me.
It shouldn’t make any difference whether you put the actual navigation code on your page template, or put it in a form called ‘navbar’ and on the page call the form with <txp:output_form form="navbar" />
.
edit: Ah, changing your post while I’m not looking ;) So you should use the right output tag.
Last edited by doggiez (2006-01-22 13:16:00)
Offline
Re: The navbar as form
Well – I loooove you. Thanx a bunch master doggiez!
so I was wrong at txp:article. Got to learn some here.
all we need is some creactivism
Offline
#4 2006-01-22 14:29:58
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: The navbar as form
yaform wrote:
so I was wrong at txp:article. Got to learn some here.
Article forms are called with <txp:article />
. In article forms you place the tags that say which parts of an article you want to display (<txp:body />
, <txp:title />
etcetera). For these forms you need to set type: article.
Misc forms (that can basically contain anything else, like your navigation code) are called with <txp:output_form />
. Set type: misc.
And of course there also are link, comment and file forms, each needing their own tags to call them ;)
Offline
Re: The navbar as form
As I said – thanx a lot – and – you are THE sigma.
all we need is some creactivism
Offline
Pages: 1