Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-29 21:39:48

BZ
Member
From: Stuttgart, Germany
Registered: 2005-11-24
Posts: 65
Website

subnavigation and static articles

Hi,

I’m all new to this so I maybe don’t know where to look. Probably a question like this has been answered 1000 times ago, but I have already read several threads and tutorials and I’m still not getting it -> starting to get frustrated :(

My problem is, I want to have a site with a static main navigation. Ok, I do this with sections. That seems to work, but now I also have sub navigation links in the sidebar that should be displayed section sensitive. When clicking on a section link, the first (sticky) article should appear in the main area and the first article link should be “active” in the sidebar, with the reat of the static links being displayed below it. I have found several ways of making the sublinks appear (though without setting a link to class=“active” yet).

But there are some strange things going on:
When I click on some of the sublinks, the only thing happening is that the article text ist being displayed in the sidebar, whereas the article in the content area doesn’t change.

I don’t know what’s wrong.

This is what my code looks like (ehm…how can I activate BBCode btw?):
<code>
<div id=“sidebar”>
<txp:article limit=100 form=“artikel_sticky” listform=“static_headline” status=“sticky” />
<txp:rdt_article_menu id=“articles” status=“sticky” />
</div>
(…)
<div id=“content”>
<txp:article_custom status=“sticky” form=“artikel_sticky” limit=“1” />
</div>
</code>

This is the form for my static-headline:
<code>
<h4><txp:permlink><txp:title /></txp:permlink></h4>
</code>

and this the one for artikel_sticky:
<code>
<h3 class=“sticky”><txp:title /></h3>
<txp:body />
</code>

Anybody help me please, it would be very much appreciated.

Birgit

Last edited by BZ (2005-11-29 22:23:19)


Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com

Offline

#2 2005-11-29 22:04:06

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: subnavigation and static articles

From the FAQ that’s linked at the top of this forum: How do I post tags and code on the forum?


Alex

Offline

#3 2005-11-29 22:09:45

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

Re: subnavigation and static articles

Hi!
First, to post code in forum, surround the code in < code>< /code> (without the space).

When I click on some of the sublinks, the only thing happening is that the article text ist being displayed in the sidebar, whereas the article in the content area doesn’t change.

This is because you are using txp:article and txp:article_custom in the wrong way.
What does article_custom does?
Why aren’t the right articles showing up on my page?

I see you are using rdt_dynamenus plug-in, so I would recommend you this tutorial: static/dynamic site with dynamic two/three level nav


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#4 2005-11-29 22:26:01

BZ
Member
From: Stuttgart, Germany
Registered: 2005-11-24
Posts: 65
Website

Re: subnavigation and static articles

ok, changed the code now…
well I tried the three level nav tutorial, but it still doesn’t work properly.
Guess I’ll try on tomorrow.

Thanks for the help!

Last edited by BZ (2005-11-29 22:27:27)


Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com

Offline

Board footer

Powered by FluxBB