Best Free Theme to examine for comprehension?
Permalink
The screencast for themes (using the Halloween theme) doesn't really show much more than barely enough to get you started. I have no idea what options there are, really.
For example, If I want to use Pages and PageList and do any kind of alteration, I have no idea what options there are. In one thread I read about a guy who wanted to have a pagelist with an image option, so he overrode the default pagelist template and added this code:
• Where did he come up with 'teaserimage'? Is that a standard term or a variable he made up?
• How does he import that into the page; does he have to add a line of php to the page template to print/echo 'teaserimage' as well as editing/overriding the pagelist's "view.php? "
• Where can I read about how to really work with "getCollectionAttributeValue?" Is this just standard PHP that I either know or don't know? Or is it specific to this templating language?
Thanks to anyone who can help me make sense of this. I don't need specific answers on how to do this particular thing, just trying to generally understand how we can figure out what is editable and how.
For example, If I want to use Pages and PageList and do any kind of alteration, I have no idea what options there are. In one thread I read about a guy who wanted to have a pagelist with an image option, so he overrode the default pagelist template and added this code:
<?php $img = $cobj->getCollectionAttributeValue('teaserimage'); ?>
• Where did he come up with 'teaserimage'? Is that a standard term or a variable he made up?
• How does he import that into the page; does he have to add a line of php to the page template to print/echo 'teaserimage' as well as editing/overriding the pagelist's "view.php? "
• Where can I read about how to really work with "getCollectionAttributeValue?" Is this just standard PHP that I either know or don't know? Or is it specific to this templating language?
Thanks to anyone who can help me make sense of this. I don't need specific answers on how to do this particular thing, just trying to generally understand how we can figure out what is editable and how.
When you want to customize a block, you have to make a copy of the one using and rename it and then if there are certain functionalities you want the block to do, you put it in the appropriate block file.
As an example, if you want to make a template for the pagelist block, you would create a template file in its block folder. Then you would apply it by using the "add custom template" option via the dashboard while in edit mode.
I am in no way an expert in this but I hope you get the idea of what I am saying.
To learn more about developing in Concrete5 go to the Help section and look under Building with Concrete5.