moodle-filter_filtercodes
moodle-filter_filtercodes copied to clipboard
Feature request {next-activity-link}
Hello Michael! Your plugin is very good, it helps a lot in our routine. Friend, do you know if there is any tag that I can insert to advance to the next activity inserted in moodle? I will basically use the footer navigation bars with the same usefulness when we have a sequential advance of activities. Thank you very much in advance. Thank you very much
Hi @brunohcury
Not yet but that is an interesting suggestion. Can you give me an example of a situation where you would use this tag?
Best regards,
Michael
Yes of course!
It would be even better if there were both links, to advance the activity and to go back to the previous activity.
Thank you very much
Hi @brunohcury ,
How is this different from the links that Moodle includes at the bottom of each page?
Hi Michael,
The idea would be to use them with the same function, to use in different places on the page, because I want to hide the navigation links that are in the footer.
I also like the idea of this, as I tend to hide (with CSS) the automatic links that appear in the footer (as most of my courses, are non-linear, they make no sense) - so having ability to add these tags in for the courses that are linear, would be very useful.
Hi,
Both are good use cases. I will see what can be done. For the tag names, I am thinking {coursepreviousactivity} and {coursenextactivity}.
What should these tags become, just a URL or an HTML link?
If you make the tag into a URL link, would you be able to attach some sort of class to this - this by default would have no CSS attached to it, but it would allow someone to use CSS to customise the links - e.g. potentially turn them into a button. e.g. the link would appear as
<a class = "filtercodeslink" .....
Then someone could add some css to .filtercodeslink to make it appear however they want?
Could we also be clever and have a subclass so if someone wanted to differentiate the next from the previous they could do that also?
<a class = filtercodeslink next"....
Yes.