开发者

Drupal 6: sort display of node references

I have a content type that references multiple nodes, and I need a way to sort the display of those referenced nodes.

Any ideas?

--- EDIT --- Clarification:

I'm not using views, but rather am using my own queries.

I have a bunch of teachers (teacher content-type), and some conferences (conference content-typ开发者_开发百科e).

Within the conference content-type I want a node-reference field set to handle multiple teacher selections. But I need to be able to manually order them independently. What that means is that each individual conference needs to be able to sort the order of the particular teachers selected.

That's the ideal situation, but not the way I'm actually doing it.

What I'm ACTUALLY doing to jury-rig this thing is to have separate node-reference fields (teacher 1, teacher 2, teacher 3 etc.). Each node-reference field independent of the others.

It makes for a mess when it comes to creating views or composing db queries.

I know what I'm looking for is all but impossible, but I thought I'd run it by the Drupal gurus here anyway...

--- EDIT 2 --- Further clarification:

Another way to do what I want, but is really impractical, is to create a separate nodequeue for each conference. Then you could select a handful of teachers associated with each conference and order them via the nodequeue. - That should help with visualizing the problem. But as a solution, it's even more messy (in terms of administration) than the one I'm currently using.

Also: I should mention that we're talking about 40 to 80 conferences, and 100-200 teachers. Just to get an idea of why I'm looking for a more elegant solution than the two I mentioned above.


Node reference with autocomplete widget gives you reordering capabilities when number of values set to 'unlimited'. Maybe not the most comfortable, but works.


I'm assuming you're using Views since you mentioned "displays". You can always change the order of the view fields from the Views UI but the order will be static (all items will have the same order).

If you want each item to have a potentially different order for the fields maybe you can set up a parent child relationship where the child item is ordered dynamically.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜