Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Javascript, using jQuery:

Code Block
languagejs
var link = jQuery("#LoggedInAs").attr("href");
var id =  new RegExp('[\\?&]id=([^&#]*)').exec(link)[1];

...

Javascript, using jQuery:

Code Block
languagejs
var loggedInUserName = jQuery("#LoggedInAs").text();

...

Javascript, using jQuery:

Code Block
languagejs
var currentBanadedOwnerName = jQuery("#OwnerTree").text().replace('[','').replace(']','').split('>').last();

...

Javascript, using jQuery and it’s only possible on the overview page

Code Block
languagejs
var currentUserRoleName = jQuery("#DetailsRole").text();

...

Here is an example how to add the nVelocity logic in your page extension. If current owner is top owner run a javascript code:

Code Block
languagejs
#if($controller.IsOwnerParentTopLevel())
alert("I'm top level owner parent!!!");
#end

...