A way to use the top level page name as a placeholder

Comments

5 comments

  • Avatar
    Nils Bier

    Hi Nazariy,

    Thanks for contacting us.
    Currently all our placeholders can only refer to data from the root page (the page the export was started from).
    So if you export from sub-sub-page 1, all available placeholders will always be filled with the data from this page.

    In your case you're asking for a new placeholder to get the page title of the home page of the space (similar to $page.title)? Or would you need to have multiple placeholders to exactly define a specific parent page (e.g. $homepage.title, $parentpage.title)?

    Best,
    Nils

  • Avatar
    nazariy.labunets

    Hello, Nils.

    One placeholder would be enough, but now that I think about it, it might not be possible to define it like that. Here is a bit more accurate page structure that we are using:

    - Root page (space home page)- - Top level page 1
    - - - Sub page 1.1
    - - - Sub page 1.2
    - - - - Sub-sub-page 1.2.1
    - - - Sub page 1.3
    - - Top level page 2
    - - - Sub page 2.1
    - - - - Sub-sub-page 2.1.1
    - - - Sub page 2.2

    Let's say as want to export pages Sub-sub-page 1.2.1 and Sub-sub-page 2.1.1. I need the $placeholder to traverse back to Top level page 1 and Top level page 2 respectively. This means the placeholder specification is: give me the name of the top level page one level down from the root.

    A bit more context as to why I need this. When exporting a single I page I also want to give the name of the product for that particular article; otherwise, it might lack context. I could work around this by creating a single-page export template for each product separately, but that would not be convenient for our consultants (who would be the main users of the single-page exports).

  • Avatar
    nazariy.labunets

    Any ideas here?

  • Avatar
    Nils Bier

    Hi Nazariy,

    have you tried to define your own placeholder using page properties and define the product in this placeholder?
    It should then be resolved correctly in the exported file.

    If that doesn't work, another option would be to create your own pluggable placeholder.

    Does that help?

    Best,
    Nils

  • Avatar
    nazariy.labunets

    Thanks for the tip, Nils. I does not really solve what I need (probably because it's way too custom, and I can't write anything complicated in Velocity). However, I noticed that this doc page https://help.k15t.com/scroll-pdf-exporter/using-placeholders-75367828.html is missing the information on using page properties as placeholder. I could find the information here at the link that you have shared.

Please sign in to leave a comment.

Powered by Zendesk