push article to landing page | Community
Skip to main content
October 1, 2015
Solved

push article to landing page

  • October 1, 2015
  • 2 replies
  • 2507 views

I search around the api documentation for pushing article to marketo landing page but so far I only found the way to push landing page template via api. Is there a way to push article to landing page via api? I want to re-use the created landing page template and just keep adding content into it.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Well, you certainly can have many different variations and store them under different filenames -- then pass the filename as a query param or use some other JS logic to translate a URL to LP-as-template + JSON-as-content. There's no need to delete them as you go along.


For example, pages.example.com/articles.html?a=98 loads inner content from /article98.html.

2 replies

October 1, 2015

Hi Charles

My idea is using Token APIs.

For example

- Create a blank page with {{my.article}}

- Change {{my.article}} via API

Create Token by Folder Id » Marketo Developers

Delete Tokens by Folder Id » Marketo Developers

NOTE:You need to call Delete and Create Token APIs if you want to update the token.

SanfordWhiteman
New Participant
October 1, 2015

You might think about using Files, which you can upload using the Assets API, as data sources for LP content.  (In other words, use a standard LP as a secondary template and populate content from a File).

Grégoire_Miche2
New Participant
October 3, 2015

Hi Sanford,

How would you populate a LP content from a file?

-Greg

SanfordWhiteman
New Participant
October 4, 2015

For one example, upload an HTML fragment and use that as the source (via Ajax) for an empty DIV. Or you could use full-fledged templating and XML/JSON sources. Tons of directions to choose from!