Since the inception of CCK and Views, I found no use for the taxonomy system anymore.
Need to categorize your content? Just use a CCK "category field". Need to list nodes from one or many categories? Just create a view do to the task.
Plus the tons of features of those two modules.
However, currently I'm stuck in a CCK+Views problem I found no solution yet. Basically, I need to control access to nodes based on the contents of some CCK field. I other words, I have some roles and some of then should be allowed to access (view) some node only if my CCK "category field" has some value.
This very same thing that can be easily done using taxonomy in no time. Just plug modules like TAC and TAC Lite and you're done.
I've searched contrib modules and found no solution for this problem. Some forum posts with this same issue here and there, but no useful answer.
Is there any module that can do this kind of access control? Or must I move back to good ol'taxonomy system to accomplish this?
Thanks in advance.
Comments
Why not use a CCK taxonomy field and TAC?
With Content Taxonomy, you can configure a CCK field that gets stored both as a CCK field and as a taxonomy term in the taxonomy system. Then, TAC can handle the rest. That's how I've done what you're describing.
Is there a particular reason you're avoiding using taxonomy for what it was designed for (categorizing nodes) or is it just that you've existing content that doesn't use it?
Drupal 7 might get rid of taxonomy
From what I understand, Drupal 7 has been heading towards getting rid of taxonomy and using CCK for everything. If so, it would be good to have everything based on CCK to ease migration in the future.
I also wanted to use CCK for everything, but stumbled upon the same problem of not being able to manage node access permissions based on CCK values. Have you found anything so far?
Um, what?
Getting rid of taxonomy? What? Drupal 7 is in code freeze already ...and includes taxonomy. I can't imagine why a future version of Drupal wouldn't.
Edit: for more info on D7, see http://drupal.org/node/619258
_
Yes, but taxonomy has been refactored to be field (cck) based and functionality has changed somewhat-- my guess it people are misunderstanding what that means.
Ahh, indeed
Looking at the D7 API, I can see that TAC may require some reworking to migrate--and, as it's not tagged #D7CX, I suppose it's a legitimate concern.
However, TAC is a reasonably popular module (few thousand hits a week), and any field-based access control solution would likely be just as in need of overhaul because of fields being in core in the first place.
That's it
@xjm, I'm was not aware of the Content Taxonomy module. It looks like it does exactly what I need (in fact I partially solved the issue in my site by just doing this -- having a CCK field and a corresponding taxonomy vocabulary, and making sure their value always match on the nodes).
Thanks for the tip.
FVS - https://dmarcpal.com - https://send2t.com