|
Admin Pack/Extras select options in entry page
|
|
04-26-2012, 05:14 PM
(This post was last modified: 04-26-2012 05:26 PM by JiminSA.)
Post: #1
|
|||
|
|||
|
Admin Pack/Extras select options in entry page
Is there a way that I can tailor the array parameters in index.php, so that the Admin. user can only check one box in the dropdown options and override the Filter/Check all/Uncheck all header? (superfluous)
(04-26-2012 05:14 PM)JiminSA Wrote: Is there a way that I can tailor the array parameters in index.php, so that the Admin. user can only check one box in the dropdown options and override the Filter/Check all/Uncheck all header? (superfluous) Woops - false alarm - I really should have read the excellent documentation more closely. I now realise that we have the multiple = false option which solves my problem
If you don't squeak, you won't get oiled!
|
|||
|
04-26-2012, 08:56 PM
Post: #2
|
|||
|
|||
|
RE: Admin Pack/Extras select options in entry page
Tip: If you don't include the 'multiple' option, the default is 'false'. There is also a 'mode' option that is ignored when 'multiple' is 'false', so it also isn't needed. Multiselect boxes are somewhat rare, so the defaults actually work pretty well.
It sounds like you are well on your way already to figuring out the entire admin you want to build. Would love to hear about your experience. Author of Barebones CMS If you found my reply to be helpful, be sure to donate! All funding goes toward future product development. |
|||
|
04-26-2012, 11:39 PM
(This post was last modified: 04-26-2012 11:57 PM by JiminSA.)
Post: #3
|
|||
|
|||
RE: Admin Pack/Extras select options in entry page
(04-26-2012 08:56 PM)thruska Wrote: It sounds like you are well on your way already to figuring out the entire admin you want to build. Would love to hear about your experience. So far, so good... I now realise that problems I may come across can be most often be resolved if I look through the documentation. Don't worry, when they can't be resolved I shall be into the forum very quickly ![]() If you'd like to keep track of my progress in situ I'll PM you a password for the following link - just click the yellow diamond bottom left... http://bespoke-webwork.com/Development/index.html If you don't squeak, you won't get oiled!
|
|||
|
04-27-2012, 01:21 PM
Post: #4
|
|||
|
|||
|
RE: Admin Pack/Extras select options in entry page
Looks like you might be having issues with the Javascript. Also seeing some oddity text and images in random places on the page but that's probably just test stuff.
Here's a couple tips: 1) I normally build an admin like that with two menu options. The first would be "New Vehicle Entry" which adds the entry to the database. After creating a new entry, I would redirect to the "Manage Vehicles" page with a success message. The second menu option would be "Manage Vehicles". On the "Manage Vehicles" page, build an array of rows out consisting of the entries in the database and use the "table" field type to display everything. I like to have an extra "Options" column at the end of each row where there would be links like "Edit | Delete". Of course, ask if the user really wants to delete an entry. But you aren't quite to this point of the admin yet. 2) There are two primary ways to inject one-off Javascript and CSS into an Admin Pack page: Use 'htmldesc' or a 'custom' field. The simplest way to get raw Javascript into a variable is to wrap up your Javascript in a ob_start(), ob_get_contents(), ob_end_clean() wrapper and then include the output from that into the array. But if you are going to use the same Javascript and CSS code everywhere, then making your own template with minor changes to the default one is probably going to be easier to deal with. It is up to you how you want to do this. The admin is tiny so how you want to handle it could go either way. The former approach has the advantage of being easier to upgrade Admin Pack in the future. 3) It looks like you are trying to offer a photo upload feature. You can use the "file" field type to offer a standard upload button and dialog. Then handle the upload in the submit handler. Author of Barebones CMS If you found my reply to be helpful, be sure to donate! All funding goes toward future product development. |
|||
|
04-27-2012, 01:36 PM
Post: #5
|
|||
|
|||
|
RE: Admin Pack/Extras select options in entry page
Thanks for jumping in with some great guidelines, which I shall follow up on...
If you don't squeak, you won't get oiled!
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Help





