PHP code in custom theme
Permalink
I am currently trying to create a custom theme. I am very new to Concrete5 as I am transitioning from Textpattern. I am trying to modify the
tag with something that will allow me to customize the style of the titles, not include the "posted by 'user' on 'date'" stuff because I am placing it somewhere else. So my question is, is there a particular attribute or set of attributes I can use for the title and then for the summary and main body?
I was also kind of hoping that maybe there was a library of all the possible attributes like Textpattern has for their tags (http://www.textpattern.net/wiki/index.php?title=Category:Tag_Reference)?
<?php content = new Area('Main'); $content->display($c); ?>
tag with something that will allow me to customize the style of the titles, not include the "posted by 'user' on 'date'" stuff because I am placing it somewhere else. So my question is, is there a particular attribute or set of attributes I can use for the title and then for the summary and main body?
I was also kind of hoping that maybe there was a library of all the possible attributes like Textpattern has for their tags (http://www.textpattern.net/wiki/index.php?title=Category:Tag_Reference)?
The code you quoted is not really a 'tag' like you find in TextPattern. It's PHP code that is processed on the server before the page is sent to the browser. If you've never programmed in PHP before then attempting to alter the way the page is rendered might be biting off more than you can chew. Before you get in too deep, I would suggest you take some time to read some overviews about how C5 works here:
http://www.concrete5.org/documentation/developers/...
Also, if you're having trouble getting your posted code to work, there's a dollar sign missing at the beginning of the line. It should read:
<?php $content = new Area('Main'); $content->display($c); ?>