+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / adding search box to template

adding search box to template

10 posts, 0 answered
  1. Natalia
    Natalia avatar
    10 posts
    Registered:
    08 Sep 2008
    24 Sep 2008
    Link to this post
    Hi, there. I am looking to add search box to the master page. I am not able to edit templates through the admin (page could not be found - and yes, we already checked all the mappings, etc).

    Can I add the search box working with the code of the master page? I've tried to hard-code it, but since a master page is all one big form, I am getting a nested form tag.

    What are my other alternatives? Thank you!
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    24 Sep 2008
    Link to this post
    Hello Natalia,

    We suppose that the ISAPI mappings for the .template extension are not properly set and that is the reason why you cannot edit templates. Please, make sure you have cleared the "Check/Verify that file exists" checkbox, as this is something that people miss very often (see the attachment for more information).

    For details refer to section Configuring IIS of the Sitefinity User Manual or section Troubleshooting.

    Best wishes,
    Pepi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    24 Sep 2008
    Link to this post
    you could also try explicitly embedding the search control into the master file itself. just register the control in at the top of the page:

    <%@ Register tagprefix="cc" namespace="Telerik.Search.WebControls" assembly="Telerik.Search" %> 

    then drop it in place on the page:

    <cc:SearchBox ID="SearchBox1" runat="server" IndexCatalogue="McAllen.NET" ResultUrl="~/Search.aspx" /> 

    hope this was helpful!
  4. Natalia
    Natalia avatar
    10 posts
    Registered:
    08 Sep 2008
    24 Sep 2008
    Link to this post
    Thank you - I'll try embedding the search control. Our host has already went through the mappings, cleared the checkbox and restarted IIS - still no templates.

    What if we want to embed other controls? Is there a place in documentation where we can look?
  5. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    24 Sep 2008
    Link to this post
    the only other sitefinity control I've ever needed to embed was the cssfilelink so I can dynamically add css files to specific pages. that one is in the Telerik.Cms.Web.UI namsepace. You might try the object browser in visual studio to look through the various telerik namespaces and see what else is available, that's how I found it. not sure about where these are documented tho...
  6. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    26 Sep 2008
    Link to this post
    Hello SelArom,

    The only reason for error 404 when trying to edit templates is that the .template ISAPI filter is not properly set into the IIS configuration on the server. So please make sure once again everything is configured as it is described in the following Troubleshooting section. Also, note that if your production server is 64bit, the ISAPI filters should be mapped to c:\windows\microsoft.net\framework64\v2.0.50727\aspnet_isapi.dll instead of c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll.

    Regarding your question about namespaces, Sitefinity API is documented in our Developer Manual.

    Hope the information is helpful for you.

    Sincerely yours,
    Pepi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Natalia
    Natalia avatar
    10 posts
    Registered:
    08 Sep 2008
    27 Sep 2008
    Link to this post

    our .template extention is configured as described - see screenshot from the server.
    http://windows.idea-bureau.com/Vadim/extension_configuration.png

    Yet we still have 404 error in the admin while editing templates. Anything else we can check?

    Natalia.

  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Sep 2008
    Link to this post
    Hi Natalia,

    Could you check whether you have the following part in your web.config as in the example below.

    <handlers> 
    <system.webServer> 
    <add name="AboMapperCustom-79182" path="*.template" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" /> 
    </handlers> 
    </system.webServer> 

    Are you getting this error when you try to edit some of our default templates as "Default.master"


    All the best,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. Natalia
    Natalia avatar
    10 posts
    Registered:
    08 Sep 2008
    29 Sep 2008
    Link to this post

    That's what I have in the web.config. Yes, I am trying to edit default templates.     

     <add name="SitefinityTemplate" path="*.template" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" />

  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Sep 2008
    Link to this post
    Hi Natalia,

    We had similar issue with users using case sensitive databases(Oracle). You could try renaming the template name in lower case letters. If this does not help, please provide us with more information. We are not able to reproduce this error at our end.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
10 posts, 0 answered