Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By docteurdem on
Hello,
I have 2 custom templates: page--slideshow.tpl.php and mypage.tpl.php. I want to use iframe tag in page--slideshow.tpl.php to call mypage.tpl.php but it did not work. (Drupal 7)
content of page--slideshow.tpl.php:
======================
<iframe width="560" height="315" src="/<?php echo path_to_theme().'/templates/custom/mypage.tpl.php';?>" allowfullscreen></iframe>
content of mypage.tpl.php:
================
<?php print render($page['content']); ?>
I got this error:
http://mycompany/sites/default/themes/participants/templates/custom/mypa... 403 (Forbidden)