Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
Re: problems with live articles
That is because you are using status="sticky"
.
Why are you using that?
Try removing it.
Offline
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)
Offline
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
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)
Offline
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
Pages: 1