Move the search box

5 Messages Forum Options Options
Embed this topic
Permalink
Edward Laptop
Move the search box
Reply Threaded MoreMore options
Print post
Permalink
Hi

I have used the panels to place the search box down under a box of links -
that are in the left hand column. However, I really want to get the search
box up in the right of the header.

How would I do that please

(I have moved the login by taking some code out of global.vm and placing it
inside leftpanels.vm)

thanks

ee-web.co.uk
edward@...
07760 392284
_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users
adoro
Re: Move the search box
Reply Threaded MoreMore options
Print post
Permalink
Hi Edward,

do you want the search panel to appear in the top corner or just search input field in the place where normally login link is placed?

If so, you can copy the source code from the Search Panel - available in inline edit mode - and put it where you want.

You'll find it either from /bin/Panels/ -> choose  Search [Edit]  from the list of Panels
or bin/Panels/Search ->menu Edit -> Inline form  

I like the panels in XWiki! - it's a very helpful tool to create your own design :-)
         
Edward Laptop wrote:
However, I really want to get the search
box up in the right of the header.


(I have moved the login by taking some code out of global.vm and placing it
inside leftpanels.vm)

thanks

ee-web.co.uk
edward@ee-web.co.uk
07760 392284
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Regards,
Alla
Edward Laptop
Re: Move the search box
Reply Threaded MoreMore options
Print post
Permalink
I basically want it to look as is. I have tried copying the code as you
desribe into the global.vm but I have been staring at my screen for about 5
hours now and I have begun to do silly things like */ instead of *#

So I need a break

thanks for reply

Edward


_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users
adoro
Re: Move the search box
Reply Threaded MoreMore options
Print post
Permalink
Sure you use only "cut-out"

  <form action="$xwiki.getURL('Main.WebSearch')">
    <div id="globalsearch">
      <input id="globalsearchinput" type="text" name="text" value="$msg.get('panels.search.inputText')" size="15" onfocus="if (this.value == '$msg.get('panels.search.inputText')') value=''; this.select();" onblur="if (this.value == '') value='$msg.get('panels.search.inputText')'; this.blur()"/>
 
      <input class="button" value="$msg.get('panels.search.submit')" type="image" src="$xwiki.getSkinFile("go.png")"/>
    </div>
  </form>

without panelheader and footer? :-)



Edward Laptop wrote:
I basically want it to look as is. I have tried copying the code as you
desribe into the global.vm but I have been staring at my screen for about 5
hours now and I have begun to do silly things like */ instead of *#

So I need a break

thanks for reply

Edward


_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Edward Laptop
Re: Move the search box
Reply Threaded MoreMore options
Print post
Permalink
Thanks again Adoro - another useful tip!





Edward Laptop wrote:

>
> I basically want it to look as is. I have tried copying the code as you
> desribe into the global.vm but I have been staring at my screen for about
> 5
> hours now and I have begun to do silly things like */ instead of *#
>
> So I need a break
>
> thanks for reply
>
> Edward
>
>
> _______________________________________________
> users mailing list
> users@...
> http://lists.xwiki.org/mailman/listinfo/users
>
>

--
View this message in context:
http://n2.nabble.com/Move-the-search-box-tp833988p834350.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users