I am new to october cms. i learned somethings about themes and pages and ... .
i use rainlab blog plugin.
i want to show author section in post page. now i am using this function in php section to display user post, title, publish date,... .
//pages/post.php
<?php
function onEnd(){
$this['post'] = $this->post; //for access to {{ post.variables }} in template
}
?>
and i display post details: {{ post.title }}
, {{ post.user.first_name}}
.
-
should i make a plugin or top way is true?
-
when should we make plugin?
- is there a faster and true way instead of plugins?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire