I have a URL set field called Megaphone. I am a podcaster and want to add my podcast player in dynamically.
I then have a page ConnectTheRock (Title) with a HTML1 element. I want to get the URL into the HTML1 element. I can see lots of people showing code - but it just won’t work
Thanks for your message. I am glad you figured it out. Now I want to explain why it does so that you or others can learn a little bit about whats going on.
What the .megaphone does is specify what piece of information (column in your database collection/field key) you want to “grab” and “assign”. So whether it is after the getCurrentItem or itemUrl , now your html1 knows it needed to display whatever link was saved under the megaphone column.
Also know that “itemUrl” is just a variable or placeholder and it can be any word you want. For example even this would work:
So now in “plain English” what it says is basically: Please get my current item from my dataset and call it pizzaPlease. Then get the information from megaphone column of my database collection for that current item I called pizzaPlease and display that information in my element called html1.