Is your plugin hosted on GitHub? Make sure to press the "fetch" button next to the repository field to fetch your plugin's info from GitHub rather than typing it all in.
Repository
Name
Home Page
Short description A simple content repository plugin for Ruby on Rails
Description == ContentRepository ContentRepository is a simple content repository plugin for Ruby on Rails. Its main are of application might be blogs or other content-centric aplications. The basic structure is the content tree, that is built of instances Simplabs::ContentRepository::Content, e.g.: + parent_content | +--- child_content1 | +--+ child_content2 | +-- sub_child_content Every Simplabs::ContentRepository::Content has an arbitrary number of sections, that hold the actual content of the instance, e.g.: + content | +--- header_section | +--- body_section | +--- footer_section Additionally to the content tree and the sections, instances of Simplabs::ContentRepository::Content might be associated to containers (Simplabs::ContentRepository::Container). Containers are not structured in trees, but discrete buckets that group certain content or parts of the content tree, e.g.: + parent_content | +--- child_content1 => container1 | +--+ child_content2 | +-- sub_child_content => container2 To add some semantic tagging options, there are also tags that can be associated to instances of Simplabs::ContentRepository::Content. <b>Simplabs::ContentRepository::Content</b> has the following properties * <b>name</b>: internal name, will be used as title by default * <b>title</b>: if name and title differ * <b>slug</b>: used to access the content, generated auomatically from the name, can be overridden * <b>parent</b>: the parent content * <b>container</b>: the associated container * <b>timestamps</b> <b>Simplabs::ContentRepository::Container</b> has the following properties * <b>name</b>: internal name, nothing else is needed for containers * <b>timestamps</b> <b>Simplabs::ContentRepository::Section</b> has the following properties * <b>name</b>: internal name * <b>body</b>: holds the actual content of the section, e.g. body text of a blog post * <b>content</b>: the content the section is associated with * <b>timestamps</b> The content class Simplabs::ContentRepository::Content also adds a finder method find_by_slug that allows finding of content by its path in the content tree, e.g. Simplabs::ContentRepository::Content.find_by_path(['parent_content', 'child_content2', 'sub_child_content']) would return the child leaf in the above content tree. === Custom Content Types The default content model can of course be subclassed to implement custom content types. For example, if you want to create a structure that has categories and articles where articles are the categories' children + category 1 | +--- article 1 | +--- article 2 | + category 2 | +--- article 3 you just add models for article and category. The only thing you have to do in addition to that is tell ContentRepository that the parent of an article is not of type Content anymore but of type Category and that the children of a category are of type Article: class Category < Simplabs::ContentRepository::Content has_children :articles end class Article < Simplabs::ContentRepository::Content has_parent :category end Both has_parent and has_children take a class as second argument if it cannot be inferred from the association name.
Description format RDoc MarkDown Textile
License Ruby's Rails' (MIT) GPL LGPL BSD Apache Artistic PublicDomain BSD-type Free-Trial Free-but-Restricted OpenSource Proprietary Shareware Source-available-proprietary Commercial
Category Assets Controllers Internationalization Misc. Enhancements Model Rails Engines Searching and Queries Security Statistics and Logs Testing View Extensions