It would be very useful to be able to add a selection rule for the term ID.
Scenario:
- You have a taxonomy/term panel you would like to use as the default.
- You would like to override certain term pages, e.g. to highlight a particular term, modify the layout, etc.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | term.inc_.txt | 4.4 KB | damienmckenna |
| #8 | ctools-n534034-v2.patch | 4.76 KB | damienmckenna |
| #7 | ctools-n534034.patch | 4.34 KB | damienmckenna |
| #6 | term.inc_.txt | 3.94 KB | damienmckenna |
| #3 | term_tid.inc_.txt | 3.25 KB | damienmckenna |
Comments
Comment #1
damienmckennaHere's a starting point.
Comment #2
damienmckennaSo, with an initial starting point, any thoughts on how to make this better, more solid so it could be added to CTools?
Comment #3
damienmckennaUpdated file:
* Gave it a more useful name - term_tid.
* The summary display says what terms are selected rather than just naming the vocabulary.
Comment #4
merlinofchaos commentedYou might look at the term context to see how I dealt with the whole "pick a term from multiple vocabularies" while still keeping the UI workable. I don't like the way the settings in this one works.
Comment #5
damienmckennaAm digging into the latest CVS to give it another spin..
Comment #6
damienmckennaHere's an updated version. It works, but it needs some error checking.
Comment #7
damienmckennaHere's a version of the last file as a proper patch.
Comment #8
damienmckennaUpdated patch, forgot to update the ctools_term_ctools_access_check() function.
Comment #9
merlinofchaos commentedLooks reasonable. Committed.
Comment #10
damienmckennaThanks :-)
Comment #11
damienmckennadatacaliber found a bug in the file, here's an updated one.
Comment #12
damienmckennaNevermind, I see you fixed it in CVS. Thanks :)
Comment #13
damienmckennaFYI, here's some code to migrate settings from my early patches above to the current code in the 1.1 release: