Closed (fixed)
Project:
Drupal core
Version:
7.26
Component:
drupal.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2014 at 12:17 UTC
Updated:
28 Jul 2014 at 07:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dcam commentedI'm sorry, but I don't understand what you're asking for. You need to sort the contents of one field based on a taxonomy term selected in another field? Is this on a node edit form? Am I totally misunderstanding?
Comment #2
pramodga commentedHi dcam,
Thanks for your response. Actually requirements is providing with dropdown list "category". If we select "Category 1" from dropdown.
The Category 1 contents should get sorted.
Comment #3
dcam commentedOh, do you mean filtered? As in:
You have a list of 100 nodes.
15 of those nodes are tagged with Category 1.
You select Category 1 from the drop-down.
Then only those 15 nodes are displayed in the list.
Comment #4
sidharthapIs it something like :
1 - Vocabulary - (category1 in your case)
2 - Vocabulary contains 5 terms and the requirement is to sort these terms ?
Comment #5
pramodga commentedExactly dcam... So the nodes will sorted based on taxonomy id, right???
Comment #6
pramodga commented@sidharthap : Actually category 1 is a term under Vocab- Category
Comment #7
dcam commentedI'm sorry if there has been miscommunication between us, but saying that you want to sort the list when a taxonomy term is selected makes no sense to me. What I am talking about is referred to as "filtering," not "sorting." "Sorting" implies that the entire list is re-ordered based on some value. "Filtering" means that certain list items are removed from the list based on some value.
From your reply in #5 it sounds like my description in #3 is what you want, to filter the list based on the taxonomy term. This is very easy to achieve using the Views module. and there are many guides available on the Internet that will show you how, but I will list the basic steps here:
If you want to reload the list with AJAX, rather than having to reload the whole page there is an option for that. In the View's admin edit page, look for it in the Advanced Options.
I hope this helps you and that I haven't misunderstood what you want to do.
Comment #8
pramodga commentedExactly dcam....Will try out this. Thanks for valuable feedback
Comment #9
dcam commentedLet us know how it goes. If it works for you, then please mark this issue as being fixed. Good luck!
Comment #10
pramodga commentedComment #11
pramodga commentedWorking fine dcam. :)