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.
With widgets & socialmedia, I've created a widget set for "share links" in teasers.
They're displayed on the homepage, but missing in a page (view) using URL /blogs/%/tag/% (4 args).
I've found this test in function widgets_node_view() (file widgets.module line 1390) :
if (!arg(2) && ($widget_sets = widgets_content_type_visibility($node, $view_mode))) {
Is there any reason checking !arg(2)
? If I remove it, my links are produced...
Comments
Comment #1
TomDude48 CreditAttribution: TomDude48 commentedNot sure why I put it in there. I went ahead and removed it.
Comment #2
schnemer CreditAttribution: schnemer commentedDid you get any error messages? for example when you put the widget block in a region and saved?
Comment #3
pverrier CreditAttribution: pverrier commentedNo, there were no error message, the widgets just weren't displayed since
if (!arg(2))
was false.It has been corrected on #1, so I change status to closed (fixed).