Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2009-05-21 16:46:58

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: Dictating category links order

Els wrote:

…Are you using the offset to exclude the current article?

No i am not. (btw. i am gunna stop saying thx cos you know i am ;-)
The purpose of the offset is to hide the first article in my level2 navigation, which has category names “wat” and “promise”.
The level3 navigation is what i am trying to output, which only has the category name “promise”.

This first ordered article needs to be skipped so that is doesn’t appear in level3 nav (this level2 nav item has to have the level3 category name “promise” otherwise it won’t show them).

I love txp but navigation can be real drama some times :-( and as far as i am concerned it’s certainly not intuitive.

Last edited by Timid&friendly (2009-05-21 16:52:03)


I think, therefore I AM, … … er … I think :-?

Offline

#22 2009-05-21 17:39:58

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Dictating category links order

Timid&friendly wrote:

(btw. i am gunna stop saying thx cos you know i am ;-)

Fine :) It’s more important to me to hear if my contributions work or not.

The purpose of the offset is to hide the first article in my level2 navigation, which has category names “wat” and “promise”.
The level3 navigation is what i am trying to output, which only has the category name “promise”.

So I misunderstood what you were using ‘offset’ for. Would excluding category ‘wat’ do the same?

BTW I’m not sure if I should still be replying ;) Are you working with jsoo’s examples or mine?

Offline

#23 2009-05-21 20:03:37

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: Dictating category links order

Your replies are always very welcome. I am trying to really understand txp so i am trying everything, your suggestions and those kindly offered by jsoo’s. I want to master this CMS so i can do anything i need to or want, but i’ve still got a long way to go.

Excluding the category “wat” may indeed help. But i already looked to see if exclude was an attribute of the article_custom tag and it wasn’t.
I was thinking about adding classes “level1, level2 and 3” so as to avoid these sorts of conflicts i have ran into. I’ve heard there’s a plug-in that gives you unlimited categories.

It would however be very handy if txp it’s self had extra nav functionality, something like the category/section select pulldowns but for navigation allone, that allow one to specify structurally and sematically the role of articles within the system. … but i’ll guess i’ll just try the extra categories first ;-)


I think, therefore I AM, … … er … I think :-?

Offline

#24 2009-05-21 20:08:57

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Dictating category links order

A ‘workaround’ to exclude a category is this:

<txp:article_custom sort="custom_3 asc" category='<txp:category2 />'>
	<txp:if_article_category name="wat">
	<txp:else />
		<txp:if_custom_field name="aanverwante_links_volgorde">
			<li><txp:permlink><txp:title /></txp:permlink></li>
		</txp:if_custom_field>
	</txp:if_article_category>
</txp:article_custom>

Offline

#25 2009-05-22 07:13:18

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: Dictating category links order

That was it! It works great now! Yet another lesson learned hear (toch bedankt ;-)


I think, therefore I AM, … … er … I think :-?

Offline

#26 2009-05-23 11:07:51

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: Dictating category links order

jsoo

Your php code solution worked great also. I apologise that i didn’t reply, but that because i some how missed your post. Thx for your input!


I think, therefore I AM, … … er … I think :-?

Offline

#27 2009-05-23 12:56:41

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,781
Website

Re: Dictating category links order

Glad to hear it worked also, while I am in full agreement that using native Txp tags is best if you get the functionality you want (and the markup isn’t overly complicated). So I’m glad you had Els on the case — if anyone can find a tag-based solution to a problem, it’s Els.


Code is topiary

Offline

#28 2009-06-19 11:34:32

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Dictating category links order

I wrote:

A ‘workaround’ to exclude a category is this: (some code)

Of course there is a better way :)

Offline

#29 2009-06-20 07:13:57

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: Dictating category links order

Thx Els,

When i get a mo i’ll try it out.


I think, therefore I AM, … … er … I think :-?

Offline

Board footer

Powered by FluxBB