Please complete your profile

Hello folks!

I’d like to display a banner in the after-header extension point if and only if a user did not provide certain information in his profile (first name, last name and some custom field). This is what it looks like so far:

{{velocity}}
#if(!$isGuest){{error}}Please complete your profile!{{/error}}#end
{{/velocity}}

So, how can I access the user’s profile fields from within the velocity macro?

Thanks in advance for some hint!

Holger

Hi, you can use the user script service, see https://extensions.xwiki.org/xwiki/bin/view/Extension/User%20Module/Scripting/

Thanks a lot!