Table of Contents
...
Replacing the Welcome message
atWelcome.aspx is the default page which holds the welcome message for iShare Maps. To create a custom copy and paste atWelcome.aspx to the custom folder. Edit it to suit and then go to the General Settings under Studio and find the entry Web > Welcome. Enter 'custom/<name of file>.aspx' as the value. Save and exit.
Adding a Cookie Acceptance Notice
You may wish to add a Cookie Acceptance Notice to your iShare page. Here we have an example that you could use and change for your requirements.
Paste code macro | ||||||
---|---|---|---|---|---|---|
| ||||||
<div id="atWelcomePanel" class="atPanel"> <div class="atPanelHeader"> <h3> Welcome to My Council!</h3> </div> <div class="atPanelContent"> <p>If you're new here, here's a few tips to help get you started:</p> <ol> <li> <p> Enter an address above (but not yet!). Local information - it's what <strong>My Council</strong> is all about.</p> </li> <li> <p> <strong>My House</strong> will provide information related to any property in Hull.</p> </li> <li> <p> <strong>My Nearest</strong> will list facility information in relation to any given property.</p> </li> <li> <p> See what's local with <strong>My Maps</strong>, decide what items you want to see and flag those nearest to you.</p> </li> </ol> <p>Okay, you're ready to go. Start by picking a location!</p> <div id="cookieNotice"> <p>By using this website you agree to our use of cookies as described in our cookie policy.</p> <p><button onClick="return hideCookieNotice();" name="atAcceptCookies" type="button">I agree</button> <a href="https://astuntech.atlassian.net/wiki/x/oQLaAg">Learn about our cookie policy</a></p> </div> </div> </div> <script type="text/javascript"> function hideCookieNotice() { var x = document.getElementById("cookieNotice"); x.style.display = "none"; return false; } </script> |
You need to change add the "cookieNotice" div to and point it to your own cookie policy as this page just points to the one for iShare Maps e.g.
Code Block | ||
---|---|---|
| ||
<div id="cookieNotice"> <p>By using this website you agree to our use of cookies as described in our cookie policy.</p> <p><button onClick="return hideCookieNotice();" name="atAcceptCookies" type="button">I agree</button> <a href="https://astuntech.atlassian.net/wiki/x/oQLaAg">Learn about our cookie policy</a></p> </div> |
You will also need to make sure that you add the hideCookieNotice JavaScript section e.g.
Paste code macro | ||
---|---|---|
| ||
<script type="text/javascript"> function hideCookieNotice() { var x = document.getElementById("cookieNotice"); x.style.display = "none"; return false; } </script> |
Overriding the default value for Auto Complete Address Searching
There is a minChars parameter that you can add to the addressSearch option in the atMyCouncil.aspx page to override the default (1). This controls the number of characters that are entered before the auto complete searching begins. In the following example we have set this to 3.
Code Block |
---|
<% Response.Write(GetRemoteSingleTemplateFile("custom/index.html", true) ); %> <div id="atContainer"> <script type="text/javascript"> if (!window.astun) { window.astun = {}; } if (!window.astun.settings) { window.astun.settings = {}; } window.astun.settings.addressSearch = { 'showRecordsCount': true, 'minChars': 3 } window.astun.settings.mapOptions = {}; window.astun.settings.mapOptions.showSearchResultsUnderMap = true; /* window.astun.settings.mapOptions.click = 'none'; // tooltip or none window.astun.settings.mapOptions.hover = 'none'; // tooltip or none */ |