jkeeler wrote:I think we found the issue, however I still would like to know how easily one can modify the links for the mega menu to allow for more than the one custom topic page "MegaMenuTopic" to the top nav.
Also, we were attempting to move the search box from the header to the sidebar so we cut out the below code and pasted it into our ColumnsTwo and ColumnsTwoHome files but the plugin does not seem to work as it did in the header. The plugin should attempt to filter your search based on characters (currently set to 3) but this does not do it when we moved the code. Any ideas?
<div class="search-box">
@Html.Action("SearchBox", "Catalog")
</div>
If you want to move this search topic to a different forum please do. Thanks.
HI jkeeler,
Here is an example for adding several topics in the Mega Menu view.
The topic could be edited from Content Management -> Topics->topicSystemName
MvcHtmlString topic1 = Html.Action("TopicBlock", "MegaMenu", new { systemName = "topic1" });
MvcHtmlString topic2 = Html.Action("TopicBlock", "MegaMenu", new { systemName = "topic2" });
if (Model.Settings.EnableMegaMenuTopic && !MvcHtmlString.IsNullOrEmpty(topic1))
{
<li>
@topic1
</li>
}
if (Model.Settings.EnableMegaMenuTopic && !MvcHtmlString.IsNullOrEmpty(topic2))
{
<li>
@topic2
</li>
}
Moving the search box should not be a problem as long as you have only one search box on a single page as the javascript uses id to find the search element. Do you get any javascript errors?
Thanks