Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-04-24 06:25:18

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Display a link to a certain page, if category is..

Bongo-man your previous question seemed like you wanted category X to link to links X. linklist does not seem to have an exclude category attribute but I’m sure we can figure out a way.

A question. Are the links you want to show internal or external?
ie are they links to other articles in your site or are they links to other sites?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#14 2009-04-24 16:40:21

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Display a link to a certain page, if category is..

Bongo-man wrote:

Another thing <txp:linklist category='<txp:category />'> is not clear with respect to the guide. It uses these " ", instead of ' ' for object of this expression, as follows:

<txp:linklist category="<txp:category />">

The book is from before 4.0.7, and if it’s using <txp:linklist category="<txp:category />">, it’s probably using the asy_wondertag plugin as well. In 4.0.7 and later you don’t need asy_wondertag anymore, and you must use single quotes when using tags as values for attributes.

Offline

#15 2009-04-24 19:29:08

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: Display a link to a certain page, if category is..

colak wrote:

A question. Are the links you want to show internal or external?
ie are they links to other articles in your site or are they links to other sites?

-> The links are external to the blog and internal to the site. Anyway I will try again what told me Els and also I will search some example abut this kind of conditional expression.
I thank you and Els for your answers.
Bongo-man

Last edited by Bongo-man (2009-04-24 19:30:07)

Offline

#16 2009-04-24 19:42:42

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Display a link to a certain page, if category is..

Bongo-man wrote:

The links are external to the blog and internal to the site.

Meaning inside Txp? If so, we can probably find another way to do it. Are they links to individual article pages?

Offline

#17 2009-04-24 21:03:35

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: Display a link to a certain page, if category is..

They are under a same domain name.

I have installed the blog in this directory:

http://www.domainname.com/directory1/directory2a/textpattern/

So that I’ve manteined the original fisical structure and the original pages of my site, like this:

http://www.domainname.com/directory1/directory2a/tematic-index1.html mantaining the original fisical path, since directory2a is the name of the section having a specific template and css.
Similarly I made for other tematic pages.

the articles, instead,have now a different (not so much) web address, something like this:

http://www.domainname.com/directory1/articles-directory2a/articlename1.html

Other pages having a different graphical output cannot stay in the same directory (section) so they mantain the original fisical address (and they will remain out of the blog):
http://www.domainname.com/directory1/directory2a/page1.html

I need to have link to this tematically related pages in every article of the blog, so I tought to use conditional expressions and really I have realized, as you said, tematic categories for articles and matching categories for phisical paths (links) to this page. The only problem is that, till now, these ‘conditionally acting’ links don’t work, but I hope to have them working soon.

Last edited by Bongo-man (2009-04-24 21:10:21)

Offline

#18 2009-04-24 21:15:11

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Display a link to a certain page, if category is..

Ah, OK, if I understand you correctly the links are ‘external’ to the Txp installation, so we’ll have to stick to the original idea.

When you say ‘don’t work’, what exactly does that mean? Does it display the wrong links, nothing at all, something else? At the moment we’re just guessing what could be wrong. Is it possible that you switch your site to debugging mode, and post a tag trace of a category page that doesn’t do what it’s supposed to do? And post the exact code you have on your page?

Offline

Board footer

Powered by FluxBB