Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Menu connector labels 4 years 9 months ago #6273

  • Beth
  • Beth's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
When using the menu connector, there doesn't seem to be an option to label the menu buttons as anything other than the page title. It would be nice to be able to write "Go back to [section]" or something, rather than just the title of the page. The title property only makes a difference in the editing view. Maybe it could be made so that the Title is what appears on the button rather than the Destination Page.

Please Inloggen or Create an account to join the conversation.

Menu connector labels 4 years 9 months ago #6275

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 852
  • Thank you received: 261
Hi Beth
that's a good suggestion and I'll add it to our to do list. Probably just as an optional property tick box that says: Use menu connector titles as button titles.

However in the meantime you could easily achieve this with a bit of script:

1. On your menu connector page add an optional script property
2. In the script box add the following for each button label that you wish to change:
$(".ui-button-text:contains('Objectives')").html("Back to Objectives");
$(".ui-button-text:contains('Section summary')").html("Back to Section summary");

So this finds buttons on the menu connector page where the text contains whatever you add as the 'first value' and changes it to whatever you add as the 'second value' and is case sensitive. Also although it would work by just finding one word it would change all instances of that word so it's best to match the whole string and make sure each page title is unique. e.g. If you had a page named Section 1 summary and a separate page named Section 2 summary and button links to both in your menu connector and then you just added
$(".ui-button-text:contains('summary')").html("Back to Section 1 summary");
it would change both the button labels because each contains the word summary. So best to match the entire string in the first value.

Try that and let us know how you get on?
HTH
Ron
Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/
The following user(s) said Thank You: Beth

Please Inloggen or Create an account to join the conversation.

Menu connector labels 4 years 9 months ago #6276

  • Beth
  • Beth's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
Yes, that works! Thanks very much.

Please Inloggen or Create an account to join the conversation.

  • Page:
  • 1
Moderators: JohnSmith
Time to create page: 0.045 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search