Page 1 of 1

Parameter to control search bar position

Posted: Fri Feb 24, 2023 7:47 am
by InspectorSpacetime
I would assume that a lot of users like to change the position of the search bar, in order to get the page layout they need. Currently this can be done with the XHTML fragments or a custom plugin, but for someone not familiar with web development and such this might be difficult and time-consuming.

Wouldn’t it be handy for the users, if there was a parameter that controls where the search bar is inserted? This would give users a quick way to customize the layout.

I think the most common options would be to place the search bar in the header or above the left TOC. Maybe also one where the search bar is not created at all?

Re: Parameter to control search bar position

Posted: Mon Feb 27, 2023 5:42 pm
by cosmin_andrei
Hello,
Thank you for your feedback!
In the future we are thinking to have more templates for each layout so the user can choose the best template for each use-case.
I have logged an issue to our internal tracking tool to be investigated by our development team.

Re: Parameter to control search bar position

Posted: Wed Mar 01, 2023 12:31 am
by chrispitude
Hi Cosmin,

I wonder if there could be an interactive tool like the Styles Basket, but that instead builds template HTML files with some kind of interface that allows the components to be placed and arranged. If this interface is shown in the browser, then the browser's own CSS Flexbox support could be used to take care of rendering the placeholders.

Re: Parameter to control search bar position

Posted: Wed Mar 01, 2023 1:07 pm
by cosmin_andrei
Hi Chris,
Thank you for your feedback!
I have logged an issue to our internal tracking tool to be further investigated by our development team.

Re: Parameter to control search bar position

Posted: Mon Jul 10, 2023 12:38 pm
by galanohan
So... I've searching answers for similar questions like this one for days. My boss asked me to move the search bar to the top of the webhelp page. However, I'm not quite experienced with css and even though I tried using certain universal parameters listed in W3C school, which might affect the layout and position of search bar, none of those settings worked as expected.

Re: Parameter to control search bar position

Posted: Mon Jul 10, 2023 4:18 pm
by marius
Hello,
We have a collection of Oxygen Publishing Templates that can be used as a starting point for customizing WebHelp output.
One of them it moves the Search Input component from its default location to the header section of each output page.
You can find it here: https://github.com/oxygenxml/oxygen-pub ... -in-header
Regards,

Marius

Re: Parameter to control search bar position

Posted: Thu Aug 03, 2023 9:51 am
by galanohan
Hi Marius,

Thanks for the GREAT info! That works pretty good!