|
|
General workings and workflow
The work flow
The following are the steps in brief after the website has been installed and setup with geego:
1. Create at least one template definition and corresponding view and add to templates list by clicking on templates in the main menu.
2. Add a page by clicking on new page giving a page name, location and template.
2. Editing the content by clicking on content with page selected. You are then presented with a screen displaying all content with option to edit each content item.
3. Publish the page by clicking on publish in page list view.
Publishing in more depth
Published data can be stored in 2 ways:
- The default and more simple way is in the g_published_blocks table. All data will be stored in the data field as one Hash with a symbol key for each content data item. This is great as means you can have unliimited flexibility for your data structure including grids and nested grids without having to set up any extra database tables. All page data published in this manner can then be retrieved using @g[:].
- The other option is to publish repeater content to its own table, you then retrieve the published data using normal Ruby on Rails code. You therefore need to create a table with the necessary fields and its ActiveRecord model in order to publish in this way.
For your more basic data grids, option 1 will be sufficient and quicker to setup. However if you only need to display some of a grids data, need to sort the data on various fields or need to do anything more complicated than just display the entire grid, then option 2 is normaly the best option. For more information on this go to publishing to models.
|