| Override System Of Extend |
| Content Type Management | |||
| Written by Ercan Özkaya | |||
|
As some of you may already know it's possible to override the HTML output of components or modules by using layout files in your template. If you are interested in a great resource about overrides here is one from Andrew Eddie Our topic here is how to use overrides for specific content types in Extend. First of all let's start with type creation
Table name field in the image is used for the database table created specifically for that content type. So in this case jos_extend_types_gallery will be created after saving. This field has one more purpose. It's the general identifier of types for overrides. You will see a directory called layouts in components/com_extend. If we follow our example we should create the following directory structure for our custom layouts: /components /com_extend /layouts /gallery (matches the type table name) /article (matches the view directory name) default.php (matches the layout file name) /category blog.php blog_links.php ... You don't have to override all layout files in a view directory. You can just put what you want to change. You also don't have to create overrides for both article and category views. You can override either one or both. So this way you can create a gallery category view which lists thumbnails of images and link them to article pages. Then you can have a lightbox effect in article view. There are many possibilities Later today, I'm planning to release the beta version of my component. So if you want to try it yourself stay tuned!
|





0 Comments