Don't change taxonomy terms order

Junro - October 9, 2009 - 08:48

Hello,

Right now, the terms most used are displayed at the beginning of the terms list but I don't want that.

I enter terms on nodes with cck taxonomy with a particulary order. But my order change to but the more used terms first...

I'm using content template.

Here my code:

<?php $count=count($node->field_casting_taxo);$iob=0;for($iob;$iob<$count;$iob++)
{
$liste_casting.=$node->field_casting_taxo[$iob]['view']."<br>";}
if(
$node->field_casting_taxo[0]['view']!="") print "<table><tr><td valign='top'><b>".$node->content['field_casting_taxo']['field']['#title'] ." :&nbsp;</b></td><td valign='top'>".$liste_casting."</td></tr></table>"?>
<br>

You can see the terms list change here:

http://us.pariscine.com/fiche/8095

I enter the same list in a simple cck text field (firest actors list) and in a taxonomy cck field (second actors list).

That I don't understand is that sometimes (I found one case) the order I set is well respected. (see http://us.pariscine.com/fiche/776)

Any idea?

Thanks :)

Nobody?

Junro - October 10, 2009 - 00:25

Nobody?

you're getting no reply because...

dman - October 10, 2009 - 01:02

1. I don't fully understand the question... If this is about content_taxonomy why don't you post there? "cck taxonomy" is a dead project
2. That code listing is almost unreadable. While of course it's not required to follow Drupal coding standards, it's helpful if you want someone to read it without hurting their eyes.

.dan.

Oups, sorry, I was talking of

Junro - October 10, 2009 - 09:35

Oups, sorry, I was talking of Content Taxonomy, not CCK Taxonomy of course....

About the code... it's not my code, I should change it, but like it works... and it still learning php.

What I try to say is:

When you enter a list of taxonomy terms for a node (with Content taxonomy field)n how to keep the order of the terms you enter?
Because Drupal change the order to display the most using terms first.

I'm using the option Tags: Terms are created by users when submitting posts by typing a comma separated list.

So, If a user enters a new term first and after an already created term. The old term will be display first.

About the code, I deleted

Junro - October 10, 2009 - 11:19

About the code, I deleted it.

I'm using View (and viewfield) to display terms on nodes.

But my problem about order of terms is the same...

I want to keep the order of terms of the content taxonomy field ("Terms are created by users when submitting posts by typing a comma separated list.").

 
 

Drupal is a registered trademark of Dries Buytaert.