as-ideas / oil

191 stars 56 forks source link

No third parties #217

Closed sbwMikael closed 5 years ago

sbwMikael commented 5 years ago

Hello - and thank you this project.

I have a relatively basic website that doesn't use any third-party functionality. I would like for the "Third Parties" list to appear empty on the "Cookie Preference Center" form, or better yet, rather than displaying a list of vendors, have a label that says something like "No third party services used".

I've tried played with alternatively setting "iabVendorWhitelist" to "[]" (without quotes), and adding (for example) a single item to "iabVendorBlacklist" (i.e., [1]) (with "show_limited_vendors_only" set to true), but I still see the complete vendor list.

Is there a way to achieve this configuration? To help the visualisation:

example screenshot

Entirely separately, I don't know if this will be useful to anyone, but I added a little extra script to link scrolling on the "Cookie Preference Center" form to the anchors at the side of the form. So when scrolling reaches the "Third Parties" content, for example, the active anchor switches to "THIRD PARTIES", and visa versa. It's a bit crude (and I've mixed in some JQuery), but it seems to work:

https://pastebin.com/mYRchJgY

sbwMikael commented 5 years ago

It was a long night last night, so I made some pretty glaring errors yesterday. I've set things up according to my specifications from the previous message. Rough demo here (hope this works).

JS Fiddle page