Hello everyone,

Sorry for my English, I'm French, I have post my request on the french forum but no response since a week so I come here.

es that can someone help me?

- I would like to add $content in sc_articles.
- I would like to add $rubricpic in sc_topnews.

Thank you in advance for your help and answers.
Qty.
25.09.2016, 12:37
Hej Notsuko,

the French board is uRl-_'s area but he is not available. For tomorrow I've a task in my calendar to check your request and hope I can help.

Regards...
Regards.. .
26.09.2016, 22:42
Hello Notsuko,

to add new content to your html file you must exapnd your data array.

Here the original from sc_articles...
Quelltext:
  1.         $data_array = array();
  2.         $data_array['$date'] = $date;
  3.         $data_array['$articlesID'] = $articlesID;
  4.         $data_array['$title'] = $title;
  5.         $sc_articles = $GLOBALS["_template"]->replaceTemplate("sc_articles", $data_array);
  6.         echo $sc_articles;


Now expand your array with a new variable
Quelltext:
  1.         $data_array = array();
  2.         $data_array['$date'] = $date;
  3.         $data_array['$articlesID'] = $articlesID;
  4.         $data_array['$title'] = $title;
  5.         $data_array['$mynewcontent'] = "Hello World";
  6.         $sc_articles = $GLOBALS["_template"]->replaceTemplate("sc_articles", $data_array);
  7.         echo $sc_articles;


Add in your templates/{file}.html the new var $mynewcontent

Hope that is what you want to know. Otherwise feel free to contact me in Skype or Discord.

Regards.. .
27.09.2016, 17:05