Iframe in Tempate – how to?
Notice: This thread is very old.
- nanuqcz
- Member | 822
Hello,
- first, you have to create iframe in template with correct URL
<iframe src="{link Articles:detail, id => 1}"></iframe>
- second, you want to prevent application from rendering layout
<iframe src="{link Articles:detail, id => 1, showLayout => FALSE}"></iframe>
class ArticlesPresenter extends BasePresenter {
function renderDetail($id, $showLayout = TRUE) {
if (!$showLayout) {
$this->setLayout(FALSE);
}
...
}
}
But, I think iframe isn't best way to making nice web pages. :-)