Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-28 18:17:16

NNF
Member
Registered: 2006-02-27
Posts: 13

D'oh, I am lost... create links to all articles in section

I am trying to reconstruct the following with Textpattern:

http://www.evatec.info/en/products.html

How exactly would I go about doing that? Right now I have this (not all products are there yet):

http://test.evatec.info/products

That sort of works, except:

- I need one article to be displayed on /products only. If you were to click a link in the submenu on the right, the linked article should appear instead.
- The menu on the right changes when you are viewing on of the articles. I want that menu to always remain the same (linking to all articles).

If anyone could give some advice as to how to accomplish this, I’d be very grateful…

Marco

Offline

#2 2006-02-28 18:42:51

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: D'oh, I am lost... create links to all articles in section

Which TXP tag are you using to build your menu options?

Offline

#3 2006-02-28 18:47:23

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,771
Website

Re: D'oh, I am lost... create links to all articles in section

I’m guessing you have all the product articles in the same section, you can do both using txp:article.
Use txp:article with limit=“1” for the main article and txp:article with a simpler form and section=“sectionname” listing only txp:title for the menu.

Alternatively use: rdt_article_menu for the menu list.

Last edited by jakob (2006-02-28 22:00:31)


TXP Builders – finely-crafted code, design and txp

Online

#4 2006-02-28 19:07:48

NNF
Member
Registered: 2006-02-27
Posts: 13

Re: D'oh, I am lost... create links to all articles in section

The tag I’m using is: <code><txp:article form=“products” /></code>

The ‘products’ form contains the following:

<code><txp:permlink><txp:title /></txp:permlink></code>

That works, but not when you’re viewing one of the articles. Then it only displays a link to the article you’re currently viewing.

@jakob: I’ll give that plugin a shot, thanks :)

Last edited by NNF (2006-02-28 19:37:13)

Offline

#5 2006-02-28 19:21:18

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: D'oh, I am lost... create links to all articles in section

<code><txp:permlink></code> will only return the current article in single article mode, if all your articles are in the same section try <code><txp:recent_articles /></code>, you can set limits, categories and a variety of other options with it.

Last edited by rsilletti (2006-02-28 19:23:46)

Offline

#6 2006-02-28 20:39:01

khellstr
Member
From: Helsinki, Finland
Registered: 2006-02-16
Posts: 12
Website

Re: D'oh, I am lost... create links to all articles in section

Try to use
<txp:article_custom form="products" section="products"/>
for the menu.

Offline

#7 2006-02-28 23:18:08

NNF
Member
Registered: 2006-02-27
Posts: 13

Re: D'oh, I am lost... create links to all articles in section

Thanks everyone, especially khellstr. Your solution worked like a charm :)

Seems like I’m finally getting the hang of this thing, it’s all pretty nifty!

Offline

Board footer

Powered by FluxBB