--
You received this message because you are subscribed to the Google Groups "CommunityEngine" group.
To post to this group, send email to communi...@googlegroups.com.
To unsubscribe from this group, send email to communityengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/communityengine?hl=en.
Bruno, let's chat about the documentation then. I'm doing a major site using CE and I'm sure that a lot of what I'm doing would lead to some good documentation that I wouldn't mind writing as long as I can get authoritative reviews from you. In other words I don't want to write things that are wrong.Dan
To unsubscribe from this group and stop receiving emails from it, send an email to communityengi...@googlegroups.com.
Visit this group at http://groups.google.com/group/communityengine?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
When using require_from_ce() with a controller you must specify the full controller name (without the extension). It doesn't assume _controller is appended to the end of whatever you require.
Use your own routes.rb to override or add routes. If you override or extend the default controllers and wish to add routes for new actions it is not necessary to copy the entire original routes.rb file, simply add your customizations to your application's routes.rb file.
In some cases it may be easier to define custom routes than to extend actions of a RESTful controller. For example when I tried to extend the Categories controller by adding a browse action to support a page that allowed for dynamic browsing of categories I found that I got errors trying to specify a url like /categories/browse because it complained that browse was not a valid category id. This is because it was apparently matching the GET operation against the 'resources :categories' in the routes file. So defining this:
get '/browse_categories' => 'categories#browse', :as => :browse_categories
solved the problem. I could then use :browse_categories_path as a URL helper within views to create links to the category browser page.
Blogging
Blog items are referred to as posts within the code. A post is always owned by the author, so it is tied to a User object. Optionally it may also belong to a category.
Blog posts support html tags, static pages (the pages model) do not.
--
You received this message because you are subscribed to a topic in the Google Groups "CommunityEngine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/communityengine/7EwrnO3HHbQ/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to communityengi...@googlegroups.com.