We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41388
    • 6 Posts
    markgoessens Reply #1, 14 years ago
    Hi everyone,

    This is my website I'm working on: m.ideebv.com
    Almost everything works fine but there is only a small thing.

    When you click on the 3th button (wat maken we) you see beneath the text a button with a 'select field' function. (Amstel Gold Race Xperience) This menu is made with Wayfinder.
    The problem is, the name of that button is the first menu-item name of that list.
    Actually, I don't want that. I want to change the name to something like: Click here for the list.

    Is this possible? Because it shows the first list item, not a custom title.

    On this link (http://designfromwithin.com/blog-webdesign-development/2012/05/07/responsive-modx-navigation-using-wayfinder-and-select-fields/) you can see the tutorial of the menu Link

    Does anyone know what I have to do, to change the text?

    Greets Mark

    This question has been answered by markgoessens. See the first response.

      • 28042 ☆ A M B ☆
      • 24,524 Posts
      How is the button itself getting generated? Can you specify a different field to use for the button text?

      Another way would be to change its text via javascript, since the whole thing uses javascript anyway.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 41388
        • 6 Posts
        markgoessens Reply #3, 14 years ago
        Hi Sottwell, thanks for you quick reply.

        This button is on the 'normal' wayfinder way generated. So nothing special.
        In MODX I can change the menu-title, but then the title is changed in de list too.
        The title has a only be changed in the list before the list has opened.
        Do you know what I mean?

        I tried with Javascript. But then there is the same problem. When I change a title with javascript, the title is changed everywhere. So, also in the list als dropdown.

        Actually, it has to be a button which opens the dropdown. [ed. note: markgoessens last edited this post 14 years ago.]
        • discuss.answer
          • 41388
          • 6 Posts
          markgoessens Reply #4, 14 years ago
          UPDATE

          A friend of mine could solve my problem by adding a javascript:

          <script>
          $(document).bind('pageinit', function() {
          $("nav div.ui-select span.ui-btn-text").html('Klik hier voor ons portfolio');
          });
          </script>


          This works perfect. Thanks for your help!