Pageproperties - use status/information from K15t Tools

Comments

4 comments

  • Avatar
    Roman Serazhiev

    Hi Henry.

    We already have a feature request for a user macro or to extend Scroll Metadata one. 

    As a workaround you could add this code in a user macro:

    ## @noparams
    #set( $pageManager=$containerContext.getComponent('pageManager') )
    #set( $page = $pageManager.getPage($content.id) )

    $svThemeHelper.getScrollPage($page).getTargetVersion().getName()
    $body

    This code should print the name of the version. If you switch to a version where a page fallback to another version, the version of the fallback will be visible instead of the working one.

    Hope this helps.

    Cheers,
    Roman.

    0
    Comment actions Permalink
  • Avatar
    Henricus Fluthgraf

    thx Roman i will try it.

     

    But make it available for more metadatas/Variables ....

    e.g. Language Key, Release date, the Document titel.

    All this things i can use in your exports, but not in this case. This would be great, if cou can do it.

     

    Cheers Henry

    0
    Comment actions Permalink
  • Avatar
    Henricus Fluthgraf

    1. Feeedback : Macro doesnt work

    i copied you part into a blank makro body => no results. I only see the text of your macro.

    0
    Comment actions Permalink
  • Avatar
    Roman Serazhiev

    Hi Henry.

    I have checked with developers, and it turns out that $svThemeHelper was removed in version 3.11.1 as it was not a public API. 

    To achieve what you want, you would need to create a custom app that uses our public Java API to access such information as version name.

    If you have any questions, please let me know.

    Roman.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk