Page 1 of 1

Custom capabilities not being picked up by conditional

PostPosted: August 18th, 2010, 6:49 am
by nathardwick
Hi

I'm trying to set up some custom capabilities using conditionals but my custom cap's don't seem to be being picked up... I've tried with my own then tested with the ones in the docs but to no avail :(

Setting it to those without custom cap (ie. using ! ) displays content to all - even if they have the custom cap in the conditional - which suggests it's just not being picked up - in the user listing, I can see it but it just doesn't get picked up.

Any help would be appreciated,
N

Re: Custom capabilities not being picked up by conditional

PostPosted: August 18th, 2010, 6:56 am
by nathardwick
Sorry - I was being dumb... I was adding the whole access_s2member_ccap to it myself and therefore doubling up - didn't realise it was prepended automatically - was confused by the docs... (I'm easily confused!)

N

Re: Custom capabilities not being picked up by conditional

PostPosted: August 24th, 2010, 11:52 am
by Jason Caldwell
Gotchya. No problem.

Yea, whenever you enter Custom Capabilities, you just type in the trigger words.
For instance: music,videos

Then, when you test using Conditionals, that's when you use the full version:
access_s2member_ccap_music
access_s2member_ccap_videos

* Sorry for the confusion.