dimanche 1 novembre 2015

should we handle all things via plugins and components in october cms?

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}}.

  1. should i make a plugin or top way is true?

  2. when should we make plugin?

  3. is there a faster and true way instead of plugins?


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire