Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

descriptive / meaningful names for tabs #170

Open
a-kempka opened this issue Feb 6, 2024 · 1 comment
Open

descriptive / meaningful names for tabs #170

a-kempka opened this issue Feb 6, 2024 · 1 comment

Comments

@a-kempka
Copy link

a-kempka commented Feb 6, 2024

As a teacher I would like to (optionally) give my tabs meaningful / descriptive names additionally to the automatically generated ids

So instead of naming the URL /course/view.php?id=325&section=3 a descriptive name that could be configured in the tab's properties could be /course/view.php?id=325&section=information

In some cases descriptive names are more helpful than id-numbers:

  • When tabs are being moved - not to lose track of which tab is which
  • When working with links that should always point to a specific tab (which has not yet been created and whose id is not yet known)
  • To give students a better hint in the URL which tab they are on (or for tech support to recognize the url better)
@davidherney
Copy link
Owner

Hi @a-kempka...

I like your idea. In the new version I added a parameter so that users can navigate using the title of a tab.
The parameter is called "sectionname". An example of use would be:
https://MYMOODLE/course/view.php?id=6&sectionname=Information

This should be a new parameter because Moodle defines section as an Integer parameter so any text is lost.

The following should be considered:

  • The user must be authenticated before using the link. Moodle only keeps "section" and "sectionid" parameters if the user is redirected to login.

  • It only works for tabs with custom names, it does not work with dynamic names like "Topic 1"

  • Sections in the new versions have a "permalink" option. Those links are defined with the "sectionid", that link is much safer because it does not depend on parameters that change like the name. This link should be used for cases where you want to have a more precise reference.

  • If two tabs have the same name, the tab that was created first is obtained regardless of its position in the tab bar.

Please try it and tell me what you think.

Saludos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants