Moving database to Admin
6 posts by 2 authors in: Forums > CMS Builder
Last Post: December 23, 2009 (RSS)
By (Deleted User) - December 21, 2009 - edited: December 21, 2009
Re: [cohagan] Moving database to Admin
By (Deleted User) - December 21, 2009
Re: [cohagan] Moving database to Admin
By Chris - December 21, 2009
Within the CMS is there a method of moving a table/section to the admin menugroup? Or to create a new menugroup that is only visible to the administrator.
The latter is possible. When creating or modifying User Accounts, you can specify which sections users have access to.
I want to make a database that I can reference to create a list in another section but it seems to only create a one item list rather than the whole list I created in the reference database.
Can you elaborate on how you're going about this?
Chris
Re: [chris] Moving database to Admin
By (Deleted User) - December 21, 2009
In the section editor I create a multi record editor with a table name of measures_database.
I modified that section editor by adding a list field which had the data I wanted. In this case its a list of measures such as:
cup
ounce
gallon
etc.
Then I went to the section editor to add this field to another editor and "hopefully" pull the list from measures_database.
Does that make sense?
Re: [cohagan] Moving database to Admin
By Chris - December 23, 2009
Ahh, I understand. If you don't want to copy-and-paste your list options around, you may consider setting up a separate section for your options and then use the "Get options from database (advanced)" list field feature.
Your measures_database section only needs to have one field in it: a text field (let's call that "label".) Having a dragSortOrder field can be convienient. You won't want a list field in measures_database; instead, create records for each of the measurements (by going to the section and clicking Create.)
Now you can create a List Field in other sections which get their list options from the measures_database section. To do so, set the List Field's "List Options" to "Get options from database (advanced)", set "section tablename" to "measures_database", use "label" for list option values, and "label" for list option labels.
I hope this helps! If I misunderstood your question, please feel free to ask more! :)
Chris
Re: [chris] Moving database to Admin
By (Deleted User) - December 23, 2009