Skinning a Block

Custom templates are unique view layers which can be made for any type of block in a concrete5 install. A custom template is an actual PHP file, each block type has a directory for them.Google ChromeScreenSnapz025.png When you are in edit mode for a page, you can choose to set a custom template for a block. You will be presented with a list of available custom templates for this block type. 

Custom templates are used to change the presentation for the data a block presents.


Common Uses...

The Auto-Nav block is a great place to start when thinking about custom templates. The Auto-Nav block brings back part of the site tree you define with settings. Google ChromeScreenSnapz026.pngOn its own, it always displays the results as an Un-Ordered list in HTML. This is pretty common practice these days because you can do a lot of styling with these lists. Without any further work, a new Auto-Nav on your site would look like the image to the right. 

There are several custom templates that come with your Auto-Nav block. If we choose the Header Menu custom template for this instance of the Auto-Nav block, it will look something more like this:

Google ChromeScreenSnapz027.png

Same pages, and yes some CSS styling, but also a bit of PHP logic used to determine which page if any is active and put a box around it. Custom templates are view layers for blocks. 

Want to know how to do this?  Check out this how-to!

Recent Discussions on this Topic

Contributing: Custom Templates

I just wanted to contribute towards Custom Templates: I know this probably has been discussed at length on the forums, but I didn't see it in the Help documentation, so I just …

Dreamweaver and Concrete5

So the big question, I really want to use Adobe Dreamweaver CS5 to build my website. The question is, is how do I make an already created and edited DW template compatible with Concrete5? I don't have all the knowledge in the world about coding and what n…


How change currency symbol

Creating a customer database with multiple sub-tables

I am looking to replace MS Share Point. We are currently using just the basics of this product - customer database, calendar, shared file repository, event-driven emailing, and PO/RMA tracking. I am curious - does the Concrete5 product provide all of th…