Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2011-10-03 10:28:31

faltik
New Member
From: Czech Rep.
Registered: 2009-12-03
Posts: 7

Re: Restricting user privileges

One more thing I’d like to ask.

Is there a way, how could I 1) hide all the sections (= the whole drop-down menu) for all the users and then 2) show each section individually for each user, depending on their priviledges? Thing is I have a lot of sections, categories, users etc., which means ridiculous numbers of lines in my script, not to mention that I’d have to add more and more lines each time new category or section is created.

I was thinking about something like

$('body.some_class #section').remove(); // Instead of thousands of lines with each option removed
$('body.some_class #section option[value="some_section"]').show();

but that obviously doesn’t work since I removed my drop-down menu in the first step.

Again, any help appreciated.

Offline

Board footer

Powered by FluxBB