Code Red Posted February 15, 2007 Posted February 15, 2007 Just a quick question - is there an easy way to hide individual fields in the Admin/Site Setup page? A lot of them aren't relevant to the site I'm working on and I don't want to just delete them from the configuration db table in case it messes everything up. Plus there's some I'd rather the user didn't see and start mucking around with!
wheeloftime Posted February 15, 2007 Posted February 15, 2007 Just a quick question - is there an easy way to hide individual fields in the Admin/Site Setup page? A lot of them aren't relevant to the site I'm working on and I don't want to just delete them from the configuration db table in case it messes everything up. Plus there's some I'd rather the user didn't see and start mucking around with! It depends on what you call easy but a fairly quick way would be to simply comment out the code parts which are responsible for displaying certain options and/or complete blocks. Ie. if I wanted to block all the Modules from view I could edit simple and quickly the admin index.php and the admin/includes/colum_left.php. Someone knowing the modules by name could of course type the url by hand and gain access afterall so renaming/removing the underlying source files would be a good idea too. Then there is also contributions like this which could be a better option depending on what is really needed.
Code Red Posted February 15, 2007 Author Posted February 15, 2007 It depends on what you call easy but a fairly quick way would be to simply comment out the code parts which are responsible for displaying certain options and/or complete blocks. Ie. if I wanted to block all the Modules from view I could edit simple and quickly the admin index.php and the admin/includes/colum_left.php. Someone knowing the modules by name could of course type the url by hand and gain access afterall so renaming/removing the underlying source files would be a good idea too. Then there is also contributions like this which could be a better option depending on what is really needed. Hi, Sorry maybe I wasn't explaining myself well enough - I meant the individual options in the Site Setup page itself, such as "Switch to Default language currency" and "Display cart after adding product" etc. They're not relevant to the site itself, but they'll probably have some impact if I just delete those fields.
wheeloftime Posted February 15, 2007 Posted February 15, 2007 Hi, Sorry maybe I wasn't explaining myself well enough - I meant the individual options in the Site Setup page itself, such as "Switch to Default language currency" and "Display cart after adding product" etc. They're not relevant to the site itself, but they'll probably have some impact if I just delete those fields. I understood what you meant but just in case gave a more overall sample. The idea for those individual fields is about the same but more involving as you will have to go into each file to comment out the display parts. You can delete them once you have filled in all to your needs but if you want to edit something later on that won't be handy either (unless you know how to edit the appropriate db fields through phpMyAdmin or something).
Jack_mcs Posted February 15, 2007 Posted February 15, 2007 No, you can't disable individual fields like that. There might be a contribution that will allow it but I am not familiar with it if there is. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
wheeloftime Posted February 15, 2007 Posted February 15, 2007 No, you can't disable individual fields like that. There might be a contribution that will allow it but I am not familiar with it if there is. Jack Of course you can. Hiding != disabling but the effect is the same.
Code Red Posted February 15, 2007 Author Posted February 15, 2007 Of course you can. Hiding != disabling but the effect is the same. Hiding is good for me! Thanks for the help, guys.
Jack_mcs Posted February 15, 2007 Posted February 15, 2007 I don't understand that if you can easily hide, or disable them, as the op asked, why you haven't provided the solution. That's what I said wasn't possible but Im anxious to see how it is done. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Code Red Posted February 15, 2007 Author Posted February 15, 2007 I don't understand that if you can easily hide, or disable them, as the op asked, why you haven't provided the solution. That's what I said wasn't possible but Im anxious to see how it is done. Jack Okay, this is what I've done that has worked so far - Go into the db, and set configuration_group_id for the unwanted fields to 0 (any id No. that isn't used by another config page would work as well, I guess). I'm not sure what impact this will have, but as far as I can see the record is still there if any part of the site needs to refer to it, but because the id is not 1, the Setup page will ignore it. The only problem I can see is if any pages apart from Setup use the configuration_group_id as a reference...
wheeloftime Posted February 15, 2007 Posted February 15, 2007 I don't understand that if you can easily hide, or disable them, as the op asked, why you haven't provided the solution. That's what I said wasn't possible but Im anxious to see how it is done. Jack Because it is not always neccessary. Giving a lead is sometimes enough and a better learning curve. Code Red sounded knowledeable enough to find his way and if not it can be given afterall. Anyhow, I was to hasty indeed as with some parts like the configuration area you can not simply do as I suggested. My bad so you are correct in that. He found another way though which should work.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.