Content not showing

Permalink Browser Info Environment
Hello.

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
cristi78
View Replies:
cristi78 replied on at Permalink Reply
cristi78
On a live site I receive the following error when I click the Add button.

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;
deterdw replied on at Permalink Reply
deterdw
Re the error, I have no idea - might be due to incompatibilities with later versions of C5 or PHP
deterdw replied on at Permalink Reply
deterdw
An IFrame tag within this won't work. Use only the URL.
cristi78 replied on at Permalink Reply
cristi78
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.

concrete5 Environment Information

localhost XAMPP

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.