Create the simple java project and do simple webservice consumption in eclipse and create jar file for it.
And put that jar file in tomcat/lib/ext/ folder.
And now use that Service method in theme portal_normal.vm using the following code.
1
2#set ($customLocalService = $serviceLocator.findService('com.sample.portlet.myprofile.service.MyProfileDataLocalService'))
3#set ($number=$customLocalService.getMyProfileDatasCount())
Here I given example of my class that I am going to call and use it's function.
The above is starting point for you to begin, now call your's function from portal_normal.vm as shown above and get values from the service and depend on it put conditions for hiding and showing the page in navigation.vm.
Hope it helps.
Thanks & Regards,
Amit Doshi
Bitte melden Sie sich an, um diesen Inhalt als unangebracht zu kennzeichnen.