You are viewing limited content. For full access, please sign in.

Question

Question

Changing buttons in weblink

asked on November 4, 2015

Is there a way to change the button such as the Home button in Weblink to display something different like Advanced Search? I hard coded the HTML in the browse.aspx to test out though the navigation buttons are not aligned.

0 0

Replies

replied on November 10, 2015

Hi Cristobal,

Here's a JavaScript solution for replacing the text of the 'Home' link in the navigation control.  Add this script to every ASPX page on which you want to make the replacement.

Insert the following before the </body> tag at the bottom of the document:

<script type="text/javascript">                    
    $(document).ready(function() {
        var homeLink = $("#NavigationControl_DisplayDiv .NavLink:first-child");
        if (homeLink) {
            homeLink.text("Advanced Search");
        }
    });
</script>        

(If there are already other scripts present on the page, you can insert this inside of an existing <script> element rather than creating a new one.)

As far as the alignment: What are you seeing, and what do you want it to look like?  

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.