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 Online

Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
  Monday, 11 April 2022
  1 Replies
  684 Visits
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,
more than a month ago
·
#110853
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

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

  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!