Currently trying to use this to provide private access to an event page. The node body and standard content all shows. But any views on that page that use NID or similar relational references are all blocked, and do not appear.
My events have products so there should be an add to cart showing in the sidebar which is controlled by a view, but it doesn't.
Thanks for the contributions
Comments
Comment #2
klokie commentedSame here. Looks like a bug in tca_views_query_alter().
Comment #3
klokie commentedComment #4
TravisJohnston commentedOld but I still use this module so figured I'd keep this issue updated for future reference. The problem is indeed caused and resolved within tca_views_query_alter(). It makes sense that you want to hide the token node from views, but shouldn't apply to all if there are special cases. Currently hard coding something like the following around what's there works fine for now.
In the above, I wrap the code with a conditional to only run the block if the views are not "view_name_here" and "another_view_name_here_if_needed". This works for now but it messy and overriding the module directly.
Ideally it would be nice to have a management page where you could add these views in. Could be per token node so you can say "this page uses these blocks that we want to still show".
Comment #5
lobodakyrylo commentedSince 7.x version is not maintaining anymore and there are no patches, I close this issue as outdated but you can reopen it if you have a solution.
Comment #6
nick_sh commentedI have the same issue on tca_commerce_product 3.0.2. Are there any solutions?
Comment #7
nick_sh commentedComment #8
yorkshire-pudding commentedI've fixed this in the Backdrop CMS port (see https://www.drupal.org/project/tca/issues/3466432) by adding an option into the view display settings to override the access. This allows views blocks to be displayed. A contextual filter can be used to only show if authorised by token or permission. See https://github.com/backdrop-contrib/tca/issues/1 and the associated pull request for the code if you want to backport it, or give Backdrop a try.
Comment #9
mauro_ commentedSince D7 is no longer supported, I'm going to close this issue.
The 3.1.1 release includes some fixes for the views query alter hook and I have my eye on future improvements for views support