Self Service Portal : How Enable Notification preferences

lomouhamadou
Kilo Guru

Hi all,

I need your help on how to enable the notification preferences on the Self Service Portal in Helsinki?

Does anybody knows or has an idea on how to do it?

Thanks in advance,

Lô Mouhamadou

16 REPLIES 16

larstange
Mega Sage

Hi Jeff



The corret way of doing this in SP, is to create a new widget which that functionality in it.


Jace Benson
Mega Sage

The quick and dirty make a iframe.


The right way get like @lars tange says, make a widget to do it.



I plan to do a widget to do this but don't have time at the moment. So I went iFrame, however, you could ask SN for their version of theirs on HI, it's nice.



Below is my widget feel free to use it modify it for your purposes;


Cause I hate the scroll... I did this a little better but not a nice as HI's I'd suggest;


/*Option Schema*/


[


  {


      "name": "url",


      "label": "URL",


      "type": "float"


  },


      {


      "name": "width",


      "label": "Width %",


      "type": "string"


  }


]



/*Server Script*/


(function() {


  /* populate the 'data' object */


  /* e.g., data.table = $sp.getValue('table'); */


  data.options = options;


})();



/*Client Script/Controller*/


function($scope,$interval) {


  /* widget controller */


  var c = this;


  var field = "body";


  var menu = ".navbar-inverse";


  $interval(function() {


  $scope.bodyHeight = angular.element(field)[0].offsetHeight;


  $scope.menuHeight = angular.element(menu)[0].offsetHeight;


  $scope.bodyHeight = $scope.bodyHeight - $scope.menuHeight


  console.log('$scope.bodyHeight: ' + $scope.bodyHeight);


  }, 1000);


}




<div>


  <iframe id="iframe"


                  src="{{c.options.url}}"


                  width="{{c.options.width}}%"


                  height="{{bodyHeight}}"


                  style="overflow:hidden;border:none"


                  scrolling="no"


                  >


  </iframe>


</div>