Answer the question
In order to leave comments, you need to log in
How to pass parameters to .tpl dle files?
This question is not about the CMS itself, but more about php. I would like to pass parameters (news id, etc.) to a file with a template, since the site uses cms dle, I would like to do this with pure php, maybe someone has already faced such a task?
Answer the question
In order to leave comments, you need to log in
In the file /engine/modules/show.full.php
before
$tpl2 = new dle_template();
$tpl2->dir = TEMPLATE_DIR;
$tpl2->load_template( 'relatednews.tpl' );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question