Content not showing
Permalink Browser Info Environment
Hello.
If I use this block on a page with this
it doesn't work.
If I put the same code in a HTML block it does show the video.
Can you please put me on the right direction?
Thanks.
BTW, I'm using C5 8.3.2 with PHP 7.2 on my computer with XAMPP.
If I use this block on a page with this
<iframe src="https://www.youtube.com/embed/dMXomAzelFU?rel=0" frameborder="0" allowfullscreen></iframe>
it doesn't work.
If I put the same code in a HTML block it does show the video.
Can you please put me on the right direction?
Thanks.
BTW, I'm using C5 8.3.2 with PHP 7.2 on my computer with XAMPP.
Type: | Discussion |
---|---|
Status: | In Progress |
Re the error, I have no idea - might be due to incompatibilities with later versions of C5 or PHP
An IFrame tag within this won't work. Use only the URL.
Thank you for answering.
I wanted to use this block to embed an external GIS map and I thought this an extended and improved version of a HTML block.
I wanted to use this block to embed an external GIS map and I thought this an extended and improved version of a HTML block.
protected $page; /** @var Permissions This page's permissions */ protected $permissions; public function on_start() { $request = $this->request; $cID = $request->query->get('cID'); if (!$cID) { $cID = $request->request->get('cID'); } if ($cID) { $page = ConcretePage::getByID($cID); } if (is_object($page) && !$page->isError()) { $this->setPageObject($page); $request->setCurrentPage($this->page); } else { throw new \Exception(t('Access Denied')); } } public function setPageObject(ConcretePage $c) { $this->page = $c; $this->permissions = new Permissions($this->page); $this->set('c', $this->page); $this->set('cp', $this->permissions); } public function action() { if ($this->page->getCollectionPointerOriginalID()) { $cID = $this->page->getCollectionPointerOriginalID(); } else { $cID = $this->page->getCollectionID(); } $url = call_user_func_array('parent::action', func_get_args()); $url .= '&cID=' . $cID;