7

In the Tridion GUI, I have to show a list of the current publications through the Tridion JavaScript Anguilla framework.

Unfortunately, I didn't find any methods which return the publications for the logged in user.

Can someone help me with this?

1 Answer 1

7

You can try something like this.

var root = $models.getItem($const.TCMROOT);
var list = root.getListPublications();

function onListLoaded() {
    $evt.removeEventHandler(list, "load", onListLoaded);
    list.getXml(); // Here the Publications XML for the current logged user.
}

$evt.addEventHandler(list, "load", onListLoaded);

list.load(true);
2
  • Eric became @puf?
    – Nuno Linhares
    Commented Oct 15, 2013 at 12:33
  • Mr. P is in our hearts and amygdalas. Commented Oct 15, 2013 at 18:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.