Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-03 21:52:34

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

problems with live articles

Hi,

I use rdt_dynamenus plugin and I’m having problems with my section template.
My page should look like this:

“static” section menu on top of page
section sensitive submenu on the sidebar
a list of section sensitive articles on the sidebar, below the submenu.

Now the main navigation and the submenu seem to work fine (or at least I have not encountered any problems yet =)), but when I click on a live article link, the content area will remain empty. I would like it to work the same as the sticky article links: when I click on them, the article shows up in the content area and all article links in the sidebar will still be there.

The template looks similar to this:
<code>
<div id=“sidebar-2”>
<txp:rdt_article_menu id=“articles” status=“sticky” />
<txp:rdt_article_menu id=“articles” status=“live” />
</div>
<div id=“content”>
<txp:article status=“sticky” form=“artikel_sticky” limit=“1” />
</div>
</code>
and I’ve also tried this:
<code>
<div id=“sidebar-2”>
<txp:output_form form=“subnav-menu” />
<txp:output_form form=“article-list” />
</div>
<div id=“content”>
<txp:article status=“sticky” form=“artikel_sticky” limit=“1” />
</div>
</code>

probably the txp:article tag in the content area is causing me the troubles because it says that it can only output sticky articles. But how can I manage that live articles are only output in the content area when a link is clicked in the sidebar??


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

Offline

#2 2005-12-03 22:04:15

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

Re: problems with live articles

That is because you are using status="sticky".
Why are you using that?

Try removing it.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2005-12-03 22:06:30

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

Re: problems with live articles

OK, you want “live” articles only to show when they are clicked.

Try:

<code>
<div id=“content”>
<txp:if_article_list>
<txp:article status=“sticky” form=“artikel_sticky” limit=“1” />
<txp:else />
<txp:article />
</txp:if_article_list>
</div>
</code>

Edit: some typo errors corrected

Last edited by maniqui (2005-12-03 22:07:16)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#4 2005-12-03 22:06:46

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

Re: problems with live articles

when I remove it the latest article will show up when clicking on a section link (which is most likely a live article), but it should always be the same sticky article showing up first

Edit: Yeah, exactly. I’m typing too slow :D

Last edited by BZ (2005-12-03 22:07:50)


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

Offline

#5 2005-12-03 22:08:24

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

Re: problems with live articles

Yes. You are right. I was wrong.
Check my post above (we post at the same time).

Last edited by maniqui (2005-12-03 22:08:54)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#6 2005-12-03 22:14:12

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

Re: problems with live articles

Looks better now :)
Thank you very much!


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

Offline

Board footer

Powered by FluxBB