Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2006-01-14 13:58:55
- Thirteen
- Member
- Registered: 2006-01-09
- Posts: 40
Re: horizontal link list
First, there’s an extra space at the end after the slash on your output_form tag. That should solve the unknown tag warning.
Second, this has nothing to do with your errors- but I just remembered that when I was trying to style the links horizontally for a txp:linklist output, I came across a problem that it wouldn’t apply. Meaning the links would appear just fine, but it won’t go horizontally even when I applied the div id. The easiest way around this, it seemed, was to not use textpattern’s links management for this specific case but instead use it purely as an html include via the output_form. So what you can do is something like this:
1. Create a form where you type in all your links in the way you’d like it to be with your id or class to style it, etc.
2. On any page template where you’d like the links to appear, you’d include that form via the txp:output_form tag. Your links should then appear horizontally as you intend it to be.
The main difference between the two methods is really the part where you’d skip the extra step of creating the links first in the textpattern’s links management. In the end, I found that it was easier for me because I still only had one form to edit the links whenever I need to and it’d apply across all the pages it appeared on. Perhaps you can try it this way. You might find it working to your favor more as well since you can style it more and use » wherever you like, etc.
Hope this helps.
Offline
#14 2006-01-14 15:13:43
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: horizontal link list
Oke,
One question. How do i change this to make it work with categories ??
<code>
<ul>
<li> » <a href=“zwangerschap.htm”>Zwangerschap</a></li>
<li> » <a href=“bevalling.htm”>Bevalling</a></li>
<li> » <a href=“maand1.htm”>september t/m november</a></li>
<li> » <a href=“december.htm”>december</a></li>
<li> » <a href=“januari.htm”>januari</a></li>
</ul>
</code>
Roelof
Last edited by roelof (2006-01-14 15:14:54)
Offline
#15 2006-01-14 15:18:19
- Thirteen
- Member
- Registered: 2006-01-09
- Posts: 40
Re: horizontal link list
What do you mean to work with categories? What kind of categories are you referring to?
Offline
#16 2006-01-14 15:21:37
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: horizontal link list
I mean i want to put all articles into category’s so every page is a seperat categorie.
Therefore all articles about “zwangerschap” will be in the category “zwangerschap” and so on
Offline
#17 2006-01-14 15:29:22
- Thirteen
- Member
- Registered: 2006-01-09
- Posts: 40
Re: horizontal link list
If I’m understanding you correctly, I think what you’re looking to do is no longer related to displaying your links. It’s a matter of organizing your articles in accordance to the categories so that it’d appear on separate pages. That would then involve creating sections and pages to correspond to your sections. On those pages and/or forms, you’d then sort which articles you want to display. Once you have that all worked out, you can edit your links to direct you there, etc.
Offline
#18 2006-01-14 16:29:48
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: horizontal link list
oke, i have done that.
Someone on this forum told me that everything what must be displayed on the frontpage must be in the categorie default. How do i do it for a form ??
Offline
#19 2006-01-14 16:34:50
- Thirteen
- Member
- Registered: 2006-01-09
- Posts: 40
Re: horizontal link list
You meant the section “default” and not the category “default” right? Because that’s not really the same thing, I think.
Using forms is something entirely separate from sections and pages. Think of it like a supplement. You use it to help you display your content the way you’d like it to. All you’d have to do is create the form to do what you want it to, then apply it accordingly on your page template. So to apply it on to your front page, you’d just apply the form where applicable on the page you’re using for the default section.
Offline
#20 2006-01-14 16:40:37
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: horizontal link list
then i have a big problem.
I made a form with the name of navigation.
In the page i type :
<code>
<div id=“hoofdmenu”>
<txp:output_form form=“navigatie” / >
</div>
</code>
And nothing happens on my frontpage.
See : http://www.tamarawobben.nl
Roelof
Offline
#21 2006-01-14 16:49:09
- Thirteen
- Member
- Registered: 2006-01-09
- Posts: 40
Re: horizontal link list
You have an extra space in your output_form tag after the slash. Get rid of that and see if your links appear.
Btw, we’re only talking about your links not appearing and nothing else right? Because for articles to appear, you’d have to call it.
Last edited by Thirteen (2006-01-14 16:50:06)
Offline
#22 2006-01-14 17:01:24
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: horizontal link list
Thank you,
The links appears now.
But now the layout is not good.
Offline
#23 2006-01-14 17:13:18
- Thirteen
- Member
- Registered: 2006-01-09
- Posts: 40
Re: horizontal link list
You’re welcome; I’m glad that part got worked out.
In terms of the layout- I just took a look at your page source and noticed something odd. The links aren’t wrapped up inside your hoofdmenu id. I’m not sure why that is without knowing how you’re organizing your layout. What do you have on your “navigatie” form? Which leads me to a question: Why did you put the div id of your links on your page and wrap it around your form output rather than just stick it inside the form and just include the form without any need of typing out the div id everytime you want to include it?
Offline
#24 2006-01-14 17:51:19
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: horizontal link list
My navigation form looks like this :
<code>
<ul id=“hoofdmenu”>
<li><a href=”<txp:site_url />zwangerschap/”>zwangerschap</a></li>
<li><a href=”<txp:site_url />bevalling/”>bevalling</a></li>
<li><a href=”<txp:site_url />novtmdec/”>sept t/m november</a></li>
<li><a href=”<txp:site_url />december/”>december</a></li>
<li><a href=”<txp:site_url />januari/”>januari</a></li>
</ul>
</code>
When i didn’t do <ul id=“hoofdmenu” Css didn’t work so i choose this option.
And what do you mean with the last words ( why didn’t you …… to include it )
Roelof
Offline