backdrop-contrib / conditional_fields

Define dependencies between fields based on their states and values.
GNU General Public License v2.0
1 stars 5 forks source link

Undefined array key "profile" #33

Closed theflightrs closed 1 day ago

theflightrs commented 2 days ago

Edit: Content retracted, copied to Fields Visibility Condition queue

laryn commented 2 days ago

Is this filed in the wrong issue queue? The error looks to be from ‘ field_visibility_condition’.

As a separate comment, perhaps you could instead set a css class based on this profile field value so you don’t have to add fields twice, and just style them differently based on that css class?

theflightrs commented 1 day ago

@laryn Wow, i just checked and you are right. Sorry for that - i really mixed them up. Will remove it soon!

Actually, i'm not sure how to do that yet, but i have two CSS classes. I will try to think about that.

The website is a bit of complex interplay of distinguishing between anonymous, unauthorized and authorized users since it's more of a game website. It's a bit of a brain breaker here how to show the blocks straightforwardly, but i'm leaving it at white for now:

2024-11-11 01 12 47 www 5sd org 65323744774d

2024-11-11 01 13 19 www 5sd org b95482b1c952

2024-11-11 12 36 43 www 5sd org 459aef53b1ac

Edit: Feel free to erase this issue, i will head over to the respective queue.

laryn commented 1 day ago

Looks like an interesting project! :)

theflightrs commented 1 day ago

@laryn Thanks, i hope to introduce it somewhere on the BD forums at some point. 5SD Operations Center, quite wild!