Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The query doesn't pull the NID. One option is changing the view to accept row plugins as the attached patch does.
Comment | File | Size | Author |
---|---|---|---|
tagadelic_views.patch.txt | 679 bytes | wwhurley |
Comments
Comment #1
dawehnerIf you need the nid, you could also add the field in your style plugin dynamically.
Comment #2
indytechcook CreditAttribution: indytechcook commentedHas anyone tested this patch?
Comment #3
dwwIt sort of works (if you apply it, you have to manually add the nid field yourself), but it's not the right way to solve this problem. If the style plugin can alter the query, it should just grab the nid itself.
Comment #4
seehawk CreditAttribution: seehawk commentedSubscribing.
Comment #5
theusualsuspect CreditAttribution: theusualsuspect commentedany news here? I need a tagadelic view asap, and since the upgrade to views 3 I have no view anymore. Are there any alternatives. I don't quite understand, what you mean by manually adding the nid field, dww? Can you help me out with that? You mean in the module itself?
Thanks folks.
Comment #6
dawehnerAdd the field to the query: $this->view->query->add_field
Comment #7
theusualsuspect CreditAttribution: theusualsuspect commentedthanks dereine, it worked.
Comment #8
indytechcook CreditAttribution: indytechcook commented@theusualsuspect patch please?
Comment #9
Eaglecanada CreditAttribution: Eaglecanada commentedI am use it with view 3, tagadelic appears on the style. Applied the patch mentioned above, get nothing.
To dereine:
where to add this field? in View/Fields? select what field to add? global custom field?
details please! Thanks!
Comment #10
dawehner@Eaglecanada
This is about adding it programmatically in the code of tagadelic.
Comment #11
Eaglecanada CreditAttribution: Eaglecanada commentedHi Dereine,
Thanks for your prompt response.
Which script & what line should I insert this code? tagadelic.module?