Patch (to be ported)
Project:
Taxonomy Node
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
10 Oct 2009 at 13:15 UTC
Updated:
24 Apr 2012 at 15:08 UTC
Jump to comment: Most recent file
Comments
Comment #1
tonyhrx commentedJust to say how useful this patch is.
In any of the views versions, you cannot use alpha-paged views of taxonomy terms because views page nodes, not terms.
Now I can create alpha-paged views of taxonomy nodes and link them back to eith er the taxonomy views, or in my case panels that take the termID.
Dix points.
Comment #2
hanoiiI am planning on including this patch, however, I think I rather have two different checkboxes for selecting what should be used as the term of the taxonomy node, so you can have either of them, or both (parent and own term).
Comment #3
natukThis patch worked well for me. I am not sure though that it makes sense to allow tagging with the parent term instead of the actual term. This module allows a one-to-one correspondence of a node to a term and the tagging should reflect that, no?
In a way tagging the node with the parent term is somehow arbitrary. Why not tag with sibling terms, or child terms?
Perhaps the above patch could be expanded to include child and sibling terms and in fact any other terms extracted based on a taxonomy relationship - but it feels that this is outside the scope of the module?
Comment #4
jvieille commentedThe patch does not seem to work on the last dev
Comment #5
jvieille commentedI made the modif manually.
This is exactly what I was looking for. It works perfectly for me, using in production from now.
If nothing wrong comes in the next days, and additional testers come up with positive experience I would suggest to to commit ASAP.
Thanks for this great improvement.
Comment #6
masondib commentedI agree that this is very useful and just wanted to put in a plug for the option of both parent and own term. This is what is needed in my use case. Thanks.
Comment #7
masondib commentedI got the checkboxes option working on my site by modifying TUc's patch above. Attached a patch below rolled against the 6.x-1.0-beta3 version (it's my first so I'd appreciate others testing it out). Hope it helps. Thanks for the great module.
Comment #8
digitalfrontiersmediaThis patch isn't quite right. Not sure if it's because the parent_term was already inserted into the variable table prior to adding the patch or not, but you can't just check for the existence of the parent_term key unless you're also removing the keys if the option has been turned off. Reason: The array key can be present but with an empty or zero value.
Result: Module will not add term to node if "term" isn't checked, but will add parent_term regardless. Thus, resulting in either node tagged with parent term or node tagged with BOTH parent and node term (depending on condition of 'term' checkbox).
Maybe best to simply test for the values:
Doing it this way seems to work.
Comment #9
jlmeredithWould it be possible for someone to roll #8 as a patch. I would be willing to pay someone a bounty as I need this feature for a project that is in production. I have applied the first patch but as indicated, it does not really fix the issue. Or if someone can tell me what line numbers need to be replaced with the code in #8?
Comment #10
masondib commentedThanks for the correction, DigitalFrontier. array_key_exists() didn't feel quite right, but it worked for me so I went with it. Your solution is much better.
@jlmeredith, the code in #8 basically just replaces two lines from the patch in #7.
Replace these two:
With these two:
Comment #11
jlmeredithIs it possible to get this rolled into a patch and then into the next release? Thanks!
Comment #12
jvieille commentedDoes the new dev of today includes the patch?
Thanks
Comment #13
jvieille commentedkeeping on top of my list
Comment #14
DrPhunk commentedrunning with 6.x-1.0-beta3 and there doesn't appear to be a checkbox to select either option.
can someone suggest which lines I would need to change to have it work the original way, i.e. assign the child term to the created node instead of the parent?
Comment #15
digitalfrontiersmediaTook a while to get back to this, but since masondib concurs with my changes, I went ahead and rolled the changes to the original patch into a new patch per jlmeredith's request. This patch is against CVS HEAD (Revision 1.2). So, hopefully will get comitted.
Comment #16
Amy_M commentedHaving a strange issue with this patch.
When creating a term in a hierarchy, it is now creating a duplicate term as a child for example if I am creating term B:
Instead of
Term A
- Term B
I am Getting:
Term A
- Term B
- Term B-0
Any Suggestions would be much appreciated, thanks for the great patch, it's really useful!
Comment #17
jvieille commentednot in the last dev yet
Comment #18
jvieille commentedBump
Comment #19
jvieille commentedAny hope this will be committed ?
Five months of smooth usage