Rich Walker Posted April 26, 2009 Share Posted April 26, 2009 Is there anyway to allow my staff access to the Home text editor module without giving them access to the modules page with all the other modules?ThanksRW Link to comment Share on other sites More sharing options...
rocky Posted April 26, 2009 Share Posted April 26, 2009 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 More sharing options...
jhnstcks Posted April 27, 2009 Share Posted April 27, 2009 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 More sharing options...
robertjohn Posted March 28, 2010 Share Posted March 28, 2010 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.thanksRJ Link to comment Share on other sites More sharing options...
robertjohn Posted March 29, 2010 Share Posted March 29, 2010 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 More sharing options...
rocky Posted March 29, 2010 Share Posted March 29, 2010 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 More sharing options...
SonnyBoyII Posted June 8, 2010 Share Posted June 8, 2010 HiHow can I set cms page nr=7 as homepage (instead of this one with module text editor) Link to comment Share on other sites More sharing options...
huafeihua Posted June 8, 2010 Share Posted June 8, 2010 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 More sharing options...
rocky Posted June 9, 2010 Share Posted June 9, 2010 Replace the contents of index.php with the contents of cms.php, then add the following to the top of index.php after the <?php: $_GET['id_cms'] = 7; This will display CMS page 7 as the homepage. Link to comment Share on other sites More sharing options...
SonnyBoyII Posted June 9, 2010 Share Posted June 9, 2010 Rocky .. you are the best!!it works !!!T H A N K S Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now