hello,
I am building a responsive Landing Page template. I am inserting using the code below.
<img class=
"mktoImg"
id=
"exampleImg"
mktoName=
"Example
Image"
>
How can I use the value of the image source as a variable?
Why? I want to reuse the same image in two places in the template, I don't want the user to select the same image twice.
Just want to eliminate any built possibility within Marketo before I just jQuery it.
Also is there a more detailed/comprehensive list of variable use cases?
Hi Yasser,
The image line of code you provided will make the image element editable by an end user in the guided landing page editor. You still need to add the image URL path for the default image of your choice. From there, the user can click on the image and select a new image to replace it. You could make this image a String Variable, but not as helpful here as it requires the user to have the URL path for the image as opposed to just browsing existing images in the design studio (which they can see) and selecting an appropriate replacement image.
I'm assuming you have read through this documentation but in case you haven't, it is extremely helpful.
Create a Guided Landing Page Template - Marketo Docs - Product Documentation
Let me know if this did or did not answer your question and we can go from there.
You're correct, I don't want the user to know the URL.
Yes, I read the Landing Page documentation but thought there might be an advanced version...
Once the image is defined as an element, the user can always edit the element to choose an image if no default is set or change an existing image. So again, I think you want to set a default image which you can do by placing the standard HTML image reference inside of that MKTO image element class.
Yes, I understand that. I'll use jQuery to make this work.
Thank you.