Custom Objects Demo

Expand Your concrete5 Knowledge

I put this together as kind of a 'learning' package - it's not intended for use on a live site, it won't really do you much good as is.  But it's a good boilerplate for doing your own CRUD interface for custom database rows. 

The documentation about how everything works is available on my blog here.  It's pretty long, but hopefully should help other developers learn how to do this type of programming.  I didn't find much documentation on it when I had to start creating dashboard pages like this a little while ago, so I'm trying to help give back to the community.

The dashboard pages have a simple search form to search by title, using the built in concrete5 methods for ajax results.  Adding, editing and deleting objects are all included, and the objects are set up with title and a WYSIWYG editor.  The CustomObject model has methods brought in from the content block to handle translation of content so that your links and file paths are updated if the URLs change.  The editor is set to pull the typography.css file from whatever theme is applied to the home page.

The front end view is set up so that the objects all appear to have unique URLs even though they are not pages.  This is done with a custom page type that takes arguments for it's view function - the title of the object is converted into a url handle, then decoded and the selected object is pulled out of the database for display.  There are probably different ways to display objects, but this seemed like a good place to start.

I hope that people learn a lot from this, and that it saves time in development for people's custom projects.


Check Out My Other Add-Ons!

Blogging and Page Management

Best Suite - Core Icon

Best Suite - Core
Add blog style search/edit/list pages in the dashboard that link to composer.
Learn More »

 
Oembed Icon

Oembed
Oembed allows you to embed youtube, vimeo, flickr and many other types of content directly in your content and page lists.
Learn More »

 

Buy Best Suite - Core and get Oembed Free!

Image Sliders / Page Backgrounds

Vegas Icon

Vegas
Vegas allows you to add full screen slideshows to your site.
Learn More »

 
Backstretch Icon

Backstretch
Place an image from the file manager in the background of your page, stretched to fill the browser window. Resizes with the window and changes orientation for iPhone.
Learn More »

 
Attributes Slider Icon

Attributes Slider
Add a carousel of images with customisable html and links using attributes.
Learn More »

 

Video Players

Vimeo Icon

Vimeo (FREE)
Embeds a responsive Vimeo video player in your site. Learn More »

 

System Utilities

Recycle Bin Icon

Recycle Bin (FREE)
Lets you un-delete pages from the dashboard on sites before version 5.5.
Learn More »

 
hereNT Config Pages Icon

Herent Config Pages (FREE)
Allows the site administrator to edit any config variable in your site from the dashboard.
Learn More »

 

Tutorial Packages

c5 Boilerplate Icon

c5 Boilerplate (FREE)
A detailed, fully commented 'starter' package for concrete5 developers.
Learn More »

 
Custom Objects Demo Icon

Custom Objects Demo (FREE)
Sample package to create objects, search interfaces, and front end pages.
Learn More »

 
Approved by PRB

Our 30 Day Support Policy

  • Replies to tickets every few days.

Support Hosted

  • On concrete5.org

Also Check Out