search.jsp

 

<%@ page session="false" buffer="none" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="../includePortalTaglibs.jspf" %>
<%@ taglib uri="/WEB-INF/tld/SearchMenuControl.tld" prefix="searchmenu" %>

<portal-core:constants/><portal-core:defineObjects/>

<portal-navigation:urlGeneration allowRelativeURL="true" 
                                 contentNode="myco.public.home.search" 
                                 portletParameterType="action" 
                                 accessControlCheck="NoCheck">

    <portal-navigation:urlParam name="javax.portlet.action" 
                                value="newQuery" 
                                type="action"/>
    
    <form class="form-inline pull-right topMargin" 
          role="search" 
          action="<%wpsURL.write(out);%>" 
          method="get">

     <input type="hidden" 
            value="<searchmenu:currentContentNode/>" 
            name="sourceContentNode">

        <div class="form-group">

            <label class="control-label accessibleText" 
                   for="wpthemeSearchBoxInput">
                Requested By
            </label>

            <input type="text" 
                   class="form-control standard" 
                   placeholder="Search" 
                   id="wpthemeSearchBoxInput" 
                   name="search_query"/>
        </div>

        <button type="submit" 
                class="btn btn-default" 
                title="Search">

            <span class="accessibleText">Search</span>
            <span class="glyphicon glyphicon-search"></span>

        </button>
    </form>

</portal-navigation:urlGeneration>