OpenNTF / XSnippets

Apache License 2.0
2 stars 1 forks source link

Please make the searchbox from openntf available as a snippet #15

Closed BerndGewehr closed 5 years ago

BerndGewehr commented 8 years ago

Hi OpenNTF,

the beautiful searchbox from the openntf.org start page is not yet available as a snippet, right? Would you be so kind to publish that? 2016-11-10 13_10_31-openntf org - the open source community for collaboration solutions THX! Bernd

paulswithers commented 5 years ago

Sorry, Bernd, I just came across this while doing some work on the snippets site. The way it's done pre-dates Bootstrap coming into XPages Extension Library, so it's probably not going to be easy to incorporate as it is in the Application Layout Control. The OpenNTF Snippets search is now a multi-faceted search, working slightly differently.

It would need building up as a drop-down like we do with the login area in the new Snippets site https://github.com/OpenNTF/XSnippets/blob/master/xsnippets-disk/Code/ScriptLibraries/brandcms.login.js. Instead of a login form, it would need an unordered list and best would be to pass to a hidden input control that's bound to a sessionScope variable. Getting it in the nav bar is probably going to be trickier, it may need JavaScript as well to build it up.

For info, this is what we'll be launching soon as the navigation area and search area. image

Here's the login area built by that brandcms.login.js image

BerndGewehr commented 5 years ago

Hi Paul, thank you for the ping. We found a similar way to present our search in our xPages apps in between. No issue anymore for us, but possibly a good snippet anyway once modernized with bootstrap.