Guided Landing Pages: Template variables to really remove the code instead of hiding it.

Guided Landing Pages: Template variables to really remove the code instead of hiding it.

Currently, we can use a landing page template variable to hide part of the LP. The variable will be set as a boolean and will be used in a display css instruction.

The issue with this is that the hidden code still has to be loaded, which slows down the LP display, especially if the hidden section contains images and the visitor is on a mobile.

This idea is that it would be better if we could create "section toggle" variables that would cause the whole section embedded into it to just be removed from the landing page when it is approved.

-Greg

13 Comments
Justin_Cooperm2
Level 10

Grégoire,

I could have sworn you posted an idea similar to this in the past! You know I know about this and we will add it eventually. Right now, focusing on rolling out the enhanced functionality in the Email Editor. It will have this capability, as it will support modular design principles.

Grégoire_Miche2
Level 10

Hi Justin,

I had not posted it as an idea, just as a line item in a longer post. So I created a separate idea so that we would have the possibility to vote separately and monitor the status that you and the PM would assign to it

Thx.

-Greg

Grégoire_Miche2
Level 10

BTW, I'll be in las vegas and I hope we will have the occasion to meet there.

-Greg

Justin_Cooperm2
Level 10

Sure thing! See you in Vegas, baby!

Grégoire_Miche2
Level 10

It has been a very long time since I was last called "baby"

-Greg

Justin_Cooperm2
Level 10

It's an expression!

pastedImage_0.png

Grégoire_Miche2
Level 10
Grégoire_Miche2
Level 10

This is more or less about getting the Email 2.0 module functionality to the landing pages.

-Greg

SanfordWhiteman
Level 10 - Community Moderator

I'm writing a post about partials in Marketo LPs that is another way to approach this (and also allows you to speed up page loads with cached HTML fragments).

Imagine it paired w/mktoBooleans like this:

<partial disabled="${partial1}" src="http://pages.example.com/partialpage" />

Grégoire_Miche2
Level 10

That would be really cool. Not that easy to administrate and design though , since all your partial pages will have to be created separately then assembled in a final page.

Would it be possible to have also some JS that simply removes the unnecessary code on page load?

Greg