Coded something up in Couch in an interesting way? Have a snippet or shortcode to share? Post it here for the community to benefit.
23 posts Page 3 of 3
KK wrote: And now the addon expects a pipe-separated set of explicit values in config that represent the 'access level' (1 to 10) instead of names e.g.
Code: Select all
$t['blog.php'] = '10';
$t['news.php'] = '4 | 7 | 10';
$t['test.php'] = '';



@KK Hope you're doing better these days!
But I've tried your great suggestion and it "almost" works. The problem is that only administrators can log in to the admin panels in the first place. So only 7 & 10 really have any effect. I want regular users (level 2) to be able to access just one of the templates but they can't even log in. Am I missing something?
anyone?
@wysocki
@KK Hope you're doing better these days!
I am much better now. Thank you :)

I want regular users (level 2) to be able to access just one of the templates but they can't even log in. Am I missing something?
The admin-panel is off limits for non-admins and that is axiomatic. No exceptions.

That said, the admin-panel is built using standard Couch features specifically 'DataBound Form' so you may always create such a form on the front-end to grant access to non-admins. I have seen several members build full-fledged custom admin-panels on the frontend.

You may find the following thread and tutorial helpful in your quest -
viewtopic.php?f=5&t=8981

Hope this helps.
23 posts Page 3 of 3