Jump to content

Home text editor


Recommended Posts

Unfortunately, there is no easy way to do this. I had to write custom code to hide the Modules tab from users of a limited profile while still giving them access to it so that the home text editor module would work. I then had to redirect all links on the home text editor back to my modified CMS tab instead of the modules tab. Unless you are happy to modify a lot of code, I would advise against doing this.

Link to comment
Share on other sites

Yes there is a very easy way of doing this.

In your admin area you can create a new profile under employees>profiles, then under employees>permissions unselect the areas you dont want your employees to have access to or even beable to see. I dont think you can define exactly which modules they can use but can definitely only give them access to the modules list.

Link to comment
Share on other sites

  • 11 months later...

Hi, I am new here so be gentle with me :)

As it has been almost a year since the last post has this situation changed?

I need to be able to allow my 'employees' access to the Main Page to edit it but not to the other modules. is it not possible to 'move' the text editor module to another tab that is fully accesible to the employee, such as 'Tools'? Or...., now call me old-fashioned....the 'CMS' tab!!

Or does anybody know of a mod that might help me?

Hope to get a reply.

thanks

RJ

Link to comment
Share on other sites

Please guys - I could really do with some help here on this as this point alone is preventing me from ditching zencart in favour of prestashop.

How about if I were to create a new home page in CMS (an area I am happy for my employees to access) and set my server to re-direct to that page when 'Home' is clicked or the site is accessed. This is simple to do and I have tried it It would do as a work around but how could I show 'Featured' products, etc on this 'new' home page? Is there an easy way to call up Featured Products in any CMS page?

Any help please would be great.

RJ

Link to comment
Share on other sites

Rewriting the "Home text editor" module to become a tab would be a lot of work that I don't have time to do at the moment, but I can help you display featured products on a CMS page. Change lines 17-20 of cms.php from:

$smarty->assign(array(
   'cms' => $cms,
   'content_only' => intval(Tools::getValue('content_only'))
));



to:

$smarty->assign(array(
   'cms' => $cms,
   'content_only' => intval(Tools::getValue('content_only')),
   'HOOK_HOME' => Module::hookExec('home')
));



then add the following after line 8 (the </div>) of cms.tpl in your theme's directory:

{if $cms->id == 2}{$HOOK_HOME}{/if}



Change 2 to the ID of your CMS homepage. This will put all the homepage modules below the text on CMS page 2 only. You should uninstall the "Home text editor" so that it doesn't display on the CMS page.

Link to comment
Share on other sites

  • 2 months later...
Rewriting the "Home text editor" module to become a tab would be a lot of work that I don't have time to do at the moment, but I can help you display featured products on a CMS page. Change lines 17-20 of cms.php from:

$smarty->assign(array(
   'cms' => $cms,
   'content_only' => intval(Tools::getValue('content_only'))
));



to:

$smarty->assign(array(
   'cms' => $cms,
   'content_only' => intval(Tools::getValue('content_only')),
   'HOOK_HOME' => Module::hookExec('home')
));



then add the following after line 8 (the </div>) of cms.tpl in your theme's directory:

{if $cms->id == 2}{$HOOK_HOME}{/if}



Change 2 to the ID of your CMS homepage. This will put all the homepage modules below the text on CMS page 2 only. You should uninstall the "Home text editor" so that it doesn't display on the CMS page.



Thank you very much for sharing this!!
Link to comment
Share on other sites

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
×
×
  • Create New...