Sharing a site on .tpl templates. Split into header.tpl, footer.tpl, and any content.tpl (example: index.tpl or news.tpl). And there instead of certain values ​​are% pattern_%. So, how to replace all these elements in variables through OOP? Please show me an example so that each element should not be replaced with variables.

  • in the sense of wrap? connect, output in the template $ node-> title as an example in the drupal - Jean-Claude
  • @ Jean-Claude Make it so as to replace% elements% with variables, without str_replace each time. - Ersultan 5:41 pm
  • see above, in the drupal it is done like this: echo $node->title , no replays. - Jean-Claude
  • @ Jean-Claude the fact is that I am not working in Drupal, I do not know what echo $node->title and how to use it. Can you enlighten? - Ersultan 5:48 pm
  • one
    Ersultan, and what will you replace, say,% news_list%? - Ipatiev

0