Sidebar

Lee

Well-known member
This has probably been asked before, but i'm at work and don't have time to trawl through search results and a quick search returned nothing of use.



Is there a known way to make the sidebar available on all pages?
 
In the PAGE_CONTAINER template add this

Code:
<xen:if is="{$canSearch}"><xen:include template="sidebar_search" /></xen:if>

After

Code:
{xen:raw $sidebar}

Save

Create new template named "sidebar_search"

Add to it

Code:
<div class="section">
    <div class="secondaryContent">
        <h3>
            <a title="Search Forums" href="search/">Search Forums</a>
        </h3>
		<xen:hook name="quick_search">
			<fieldset id="sideBarSearch">
				<form action="{xen:link 'search/search'}" method="post" class="sideBarFormPopup ">
					
					<div class="primaryControls">
						<!-- block: primaryControls -->
						<input type="search" name="keywords" value="" class="textCtrl" placeholder="{xen:phrase search}..." results="0" title="{xen:phrase enter_your_search_and_hit_enter}" id="QuickSearchQuery" />				
						<!-- end block: primaryControls -->
					</div>
					
					<div class="secondaryControls">
						<div class="controlsWrapper">
						
							<!-- block: secondaryControls -->
							<dl class="ctrlUnit">
								<dt></dt>
								<dd><label for="searchBar_title_only"><input type="checkbox" name="title_only" id="searchBar_title_only" value="1" /> {xen:phrase search_titles_only}</label></dd>
							</dl>
						
							<dl class="ctrlUnit">
								<dt><label for="searchBar_users">{xen:phrase posted_by_member}:</label></dt>
								<dd>
									<input type="text" name="users" value="" class="textCtrl AutoComplete" id="searchBar_users" />
									<p class="explain">{xen:phrase separate_names_with_comma}</p>
								</dd>
							</dl>
						
							<dl class="ctrlUnit">
								<dt><label for="searchBar_date">{xen:phrase newer_than}:</label></dt>
								<dd><input type="date" name="date" value="" class="textCtrl" id="searchBar_date" /></dd>
							</dl>					
						</div>
						<!-- end block: secondaryControls -->
						
						<dl class="ctrlUnit submitUnit">
							<dt></dt>
							<dd><input type="submit" value="{xen:phrase find_now}" class="button primary"></dd>
						</dl>
						
						<a href="{xen:link search}" class="advSearchLink">{xen:phrase advanced_search}...</a>
					</div>
					
					<input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
				</form>
			</fieldset>
			</xen:hook>
	</div>
</div>

Save

Should be set after that ;)
 
Top Bottom