You have to use the [#-- ... --] syntax; the engine is set to
AUTO_DETECT_TAG_SYNTAX, but since other markup has been processed with
the [] syntax prior to this comment, <#-- ... --> won't be recognized.
On Dec 21, 2009, at 10:06 PM, Rakesh Vidyadharan wrote:
How do I hide/disable the search bar that is shown by default on all
pages built using the STK? I tried commenting out the appropriate
section in /templating-kit/templates/global/branding, but the search
form still shows up. I also enabled the template on the edit page.
I tried restarting tomcat, activating the node etc., but not effect.
On a related note, what is the easiest way to plug in a custom
search handler for the same?
Thanks
Rakesh
This work, even with the <!-- html comment --> inside the commented
block (which wouldn't be the case if the <> was picked up)) :
[#--
<div id="search-box">
<h6>${i18n['accessibility.header.search']}</h6>
<form action="${model.searchPageLink!}" >
<div>
<label for="searchbar">$
{i18n['accessibility.header.searchFor']}</label>
<input id="searchbar" name="queryStr" type="text"
value="${ctx.queryStr!}" />
<input class="button" type="submit" value="$
{i18n['button.label.search']}" />
</div>
</form>
</div><!-- end search-box -->
--]
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------