Jump to content

Recommended Posts

Posted

Hi,

I'm using Rockdev 3.23.2

I have a page that is displaying content from a series of subpages, and I have users that can only edit 1 of these subpages.

I would like Alfred to let them edit it from this list page (as it is the only way it is displayed on the site). 

So I am using {alfred($item)}, where $item is the subpage, in a div. This works perfectly if I am logged in as admin, but logged in as the user with edit access to a subpage, it doesn't work. No icons appear

I can edit from the dashboard, so its only front page editing that isn't working.
I checked  and the user does have 'page-edit-front' checked.

Is this possible? or does it need any extra settings? 

cheers

Posted

I think it might be something to do with jquery. For some reason, when I am logged in as superuser, i get no errors and can see "Alfred is ready" in console, but if I login as a limited user, I get a ton of messages that jquery is not loaded, and Alfred reports...

Loading jQuery...
inject_main.js:1 inject_main.js
20 Alfred.min.js?m=1731854866:8 Loading jQuery...
Alfred.min.js?m=1731854866:8 jQuery not found

I am adding the scripts in my _init file with this 

$rockfrontend->scripts()
  ->add('/site/templates/uikit/dist/js/uikit.min.js')
  ->add('/site/templates/uikit/dist/js/uikit-icons.min.js')
  ->add('/site/modules/FormBuilder/ProcessFormBuilder.js', 'defer')

...

  ->minify(!$config->debug);

 

Am I doing it correctly? 

 

Posted

ok, i saw this comment

and have aded in the jquerycore file. this works for now, but I don't really understand why this file gets loaded for admin user but not other users. I can't see anything obvious in the Roles settings.

 

  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...