You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#110823 User parameters in iFrame/Templates

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Tuesday, 19 April 2022 11:40 BST

ASSOCIATION LACANIENNE INTERNATIONALE
Hi,
I'm trying to find my way around templates.
I would like to add podcast episodes from an external website that supports iFrame and generate its own iFrame player with a link.
In particular, I (the developer) would like Editors (not used to code) to be able to insert podcast by just filling in the ID, for instance

...src="https://player.podcastsite.com/index.html?podcastId=[podcast-id]&otherparam=blabla"...
with the ID 123456 would become
...src="https://player.podcastsite.com/index.html?podcastId=123456&otherparam=blabla"...

Is it possible for an Editor to insert such info into an iFrame/Template from the template user interface (see attached image)?

Regards,

Attachments

Ryan
Please try JCE Pro 2.9.23 Beta 4 - https://www.joomlacontenteditor.net/downloads/editor/pro/development Any variables set in content using the form {$variable} will be availalble in a dialog prompt for the user to add. So, in your instance, if the content was:

...src="https://player.podcastsite.com/index.html?podcastId={$podcast-id}&otherparam=blabla";...
then the dialog would show a field with the label podcast-id for the user to enter in the id. In the example below I've used a variable of {$Podcast ID} so the label displayed is more user friendly. https://cdn.joomlacontenteditor.net/tmp/110823-user-parameters-in-iframe-templates.gif

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.