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?

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);
| improve this answer | |

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.