Authorize 2 elements to share the same content in a guided LP or email 2.0 template

Authorize 2 elements to share the same content in a guided LP or email 2.0 template

Marketo does not enable 2 elements in a guided LP template to have the same ID. This is because it is not authorized in HTML. But it may happen that this is needed. Here is the use case :

The responsive design of the template make some elements visible only in desktop views and other only on mobile view. But these 2 elements are supposed to have the same content (same text, same image, ...). Currently, in this case, we have to set them up separately and continuously resize the browser to be able to work on the 2 elements. This is also error prone, as if the user creating the LP does not resize, he/she may miss the fact that there are some mobile elements to be set as well (although they are visible on the right pane).

It would be much easier and convenient to be able to set 2 elements in the template to share the same content, provided that they are of the same type, so that they have exactly the same content, automatically and permanently. When editing one, the other one would automatically be updated.

-Greg

5 Comments
Anonymous
Not applicable

Having two elements with the same ID is not permissible in HTML.

Here's the HTML5 spec, re: the ID attribute: 3.2 Elements — HTML5

Applying the same ID to multiple elements may cause unexpected behaviour across different browsers, with respect to whether the invalid element is displayed by the browser and what CSS styles are applied to it. Additional issues may arise if someone's Javascript is grabbing elements by ID and the author of the script did not expect (rightly) that multiple elements might be returned for a single ID. 

Grégoire_Miche2
Level 10

Hi Danya,

Then we should be able to set 2 elements as having a replicate content.

-Greg

Grégoire_Miche2
Level 10

Edited the idea to make it compliant with HTML rules.

-Greg

Grégoire_Miche2
Level 10

This can be partially done with variables, especially since we now have the image and picklist variables, at least for emails.

-Greg

kh-lschutte
Community Manager
Status changed to: Open Ideas