Hi, Well, as you see in the code of the example "DevGuide.SuggestService" suggestion service, when building the results, you could do:
#set($resultDocPrettyName = $resultDoc.plainTitle) and then return results in the form: <rs id="1" info="$resultDocURL">$resultDocPrettyName</rs> Regarding the display of the suggestions in the list, making them links instead of text does not make much sense to me, but if you really want to do it, I guess you could override the "createItemDisplay" [1] method in suggest.js, either at rutine, or in the actual file on your server. Hope this helps, Eduard ---------- [1] https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/uicomponents/suggest/suggest.js#L754 On Thu, Dec 3, 2015 at 3:59 PM, MohamedAyed <[email protected]> wrote: > Hello everyone, > > I've created a form which used the "Suggest Widget" extension for fields. > > I've been able to make the code from the Autosuggest widget work, which can > be found in this tutorial > <http://platform.xwiki.org/xwiki/bin/view/DevGuide/AutoSuggestWidget> . > > I'm trying to show the pages prettyName instead of the pages FullName and > also i want to make the suggestion to be links not just a simple text. > > Has someone already done this before or can help me out with this ? > > Thank you > Much appreciated, > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/Suggest-Widget-tp7597080.html > Sent from the XWiki- Dev mailing list archive at Nabble.com. > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

