Get Page Variable
  • Updated on 21 Jul 2017
  • 2 minutes to read
  • Print
  • Dark
    Light

Get Page Variable

  • Print
  • Dark
    Light

This tutorial demonstrates how to use Get Page Variable Step located in Page Context category in the Tool Box . With this step we can get some Page parameters to the Flow based on the context of the Page this Flow is running on.
Example:
In this example we are going to build a simple Page with Tile Part . A Flow Source for Tile is going to use Get Page Variable step to display Page Name.
To learn how to build your first Page, please click here .

We begin in the Designer Folder with clicking Manage/Page > Add Page on Folder Actions Panel.
2017-12-22_101748-1-1024x569.png

Then, we Name the Page and click Ok to proceed to the Page Designer.
2017-12-22_103414.png

In the Page Designer we add Tile Part component to our Page .
2017-12-22_103623-1024x270.png

Next, we locate Common Properties for Tile Part and click Create link under Flow settings.
createTileFlow.png

In the resulting window we Name the Flow and click Ok .
2017-12-22_103715.png

In the Flow Designer we add Get Page Variable step from All Steps [Catalog] > Page Context category.
2017-12-22_103907-1024x873.png

Next, we are going to configure Get Page Variable step.
We locate Page Context > Data Type option. Here we can select from PageVariable, FolderId, URLVariable, and CookieValue. We select URLVariable. Then, for Variable Name we define ‘pageName’ key.
After Variable Name is defined we should be able to see Step outcome and Page Data output created.
2017-12-22_104656-1024x826.png

We connect the outcome from Get Page Variable step to the Create Tile Data step.
Set Create Tile Data to display HTML Text . ForHTML Text we select value of Page Data .
2017-12-22_105045-1024x826.png

Finally, we map Tile Data to the output on theEnd Step in our Flow .
2017-12-22_105228-1024x826.png

This completes our Tile Source Flow . We can save it and close Flow Designer.
Back in the Page Designer we save the Page and close Designer .
flowCompleted-1.png

Next we are going to attach the Page to the Folder by usingAll > Manage > Page > Add Page action on Folder Actions Panel.
addPage-1.png

In the resulting window we pick our Page and click PICK to save and continue.
2017-12-22_105453.png

If we view our Page we should be able to see our Page Name displayed on the Tile Part component.

Was this article helpful?