PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Expression Web - Dynamic Web Template use for Search template

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Expression Web - Dynamic Web Template use for Search template

    I am finding the indexing of my web site very easy with good results, but I wish to use the search template within a dynamic web template (DWT) which has three columns. The left column is used for a menu and the initial search box; the right column has various uses, such as a photo gallery; and the centre column is the content for that particular page. This format is avalable on all web pages and is defined within the DWT.

    I am trying to modify a new page for the search results maintaining my house style. The problem is that the new page only offers certain areas to edit.

    I have been able to place the script and style sections of your default search page in my new page.

    However, the problem comes with trying to insert your body section. The following snippet shows in red the DWT body sections which are un-editable and your body section in black:

    <body>

    <div id="container">

    <div id="logoright" style="height: 126px; width: 180px;">

    <img alt="Class 380 EMU at Drem on its first day" src="images/380atDrem.jpg" width="180" height="126" class="style1"/>

    </div>

    <div id="logoleft" style="height: 116px; font-size: 36px; background-color: #0072c6; color: #FFFFFF;" class="center">
    <span class="style2">Rail Action Group East of Scotland</span><br/>
    <span class="style2">RAGES</span></div>

    <div id="topmenu">
    <ul>
    <li class="rageshead"><a title="Home" href="index.html"><span class="rageshead">Home</span></a></li>
    <li class="rageshead"><a title="Join us" href="membership.html"><span class="rageshead">Join us</span></a></li>
    <li class="rageshead"><a title="Contacts" href="contacts.html"><span class="rageshead">Contacts</span></a></li>
    <li><a href="http://www.facebook.com/RailActionGroup" target="_blank"><img alt="Facebook" src="images/facebook-icon.png" width="20" height="20"/></a></li>
    </ul>
    </div>
    <div class="urbangreymenu">
    <!-- #BeginEditable "leftnavigation" -->
    <!--webbot bot="Include" u-include="includes/left-menu.html" tag="BODY" -->
    <!-- #EndEditable -->
    </div>
    <div id="rightnav">
    <!-- #BeginEditable "rightsidebar" -->
    <!--webbot bot="Include" u-include="includes/rightbar-main.html" tag="BODY" -->
    <!-- #EndEditable -->
    </div>
    <div id="content">
    <!-- #BeginEditable "maincontent" -->

    <body onload="if (document.getElementById('zoom_searchbox')) {document.getElementById('zoom_searchbox').focus() ;}">
    <h1>Search this site</h1>
    <p>
    Enter one or more keywords to search for using the Zoom Search Engine.<br />
    Note that '*' and '?' wildcards are supported.
    </p>
    <!-- This is where the search form and results will appear -->
    <script language="JavaScript">ZoomSearch();</script>
    <noscript>You must have JavaScript enabled to use this version of the search engine.</noscript>
    </body>

    <p class="rageshead">News</p>
    <p class="ragespara">&nbsp;</p>

    <!-- #EndEditable --></div>
    <div id="footer">
    <p class="rageshead">Rail Action Group East of Scotland (RAGES)</p>
    <p class="ragesheadsmall">Copyright 2012 | All Rights Reserved</p>
    </div>
    </div>

    </body>


    You will see my attempt at placing your body section within the editable region. I assume that the "onload" command must be within the <body> tag?

    Expression web (EW) is "complaining" that the tag <div> cannot contain a tag <body>, however, it appears to work with the search results appearing in my centre column as expected (hoped for) and further searches also work from with that centre column.

    I would be happier if EW did not indicate an error, so is there any suggestion how to do this?


    Russell Darling




  • #2
    At the moment you have two <body> </body> sections on your page. So this isn't good.

    The onload command isn't mandatory. It just moves the cursor focus to the search box. So you could remove it.

    Comment


    • #3
      << At the moment you have two <body> </body> sections on your page. So this isn't good.

      I didn't think it was!

      << The onload command isn't mandatory. It just moves the cursor focus to the search box.

      I didn't appreciate its use.

      << So you could remove it.

      I have done that and all is well.

      Many thanks for the quick solution.

      Russell Darling (hoping to aspire to the next class above "Newbie")

      Comment

      Working...
      X