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?


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);

  • Eric became @puf?
    – Nuno Linhares
    Oct 15 '13 at 12:33
  • Mr. P is in our hearts and amygdalas.
    – Alvin Reyes
    Oct 15 '13 at 18:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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