Rogelio's picture

Hi, is there any way to show a block only for Profile owner?

in Visibility Conditions i can´t find the correct way to do this, any user is allowed to see other users profiles but i want to hide a specific block for them

thanks

Accepted answer

I believe that if your block is a view, you should be able to use a contextual filter. Are you familiar with how contextual filters work in views?

After checking myself for an obvious solution to this problem - I went to the github issue queue and found that there is an outstanding request for this (I think). 

Please, look at this issue: https://github.com/backdrop/backdrop-issues/issues/4029

If this is what you are looking for, please comment on the issue AND if possible test the existing PR and provide feedback. The more people that comment on an issue, the more likely we are to get it into BackdropCMS core in the near future.

Instructions on testing PRs: https://forum.backdropcms.org/comment/726#comment-726

 

Comments

I believe that if your block is a view, you should be able to use a contextual filter. Are you familiar with how contextual filters work in views?

After checking myself for an obvious solution to this problem - I went to the github issue queue and found that there is an outstanding request for this (I think). 

Please, look at this issue: https://github.com/backdrop/backdrop-issues/issues/4029

If this is what you are looking for, please comment on the issue AND if possible test the existing PR and provide feedback. The more people that comment on an issue, the more likely we are to get it into BackdropCMS core in the near future.

Instructions on testing PRs: https://forum.backdropcms.org/comment/726#comment-726

 

Rogelio's picture

With Views is very easy to get it, but the block is from userpoints, by this time views doesn´t have userpoints options, so i was looking directly from block visibility, im going to follow those links you suggest

thanks stpaultim