moodle-filter_filtercodes icon indicating copy to clipboard operation
moodle-filter_filtercodes copied to clipboard

Feature request {next-activity-link}

Open brunohcury opened this issue 3 years ago • 8 comments

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

brunohcury avatar Oct 28 '21 16:10 brunohcury

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

michael-milette avatar Oct 28 '21 17:10 michael-milette

Yes of course! next

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

brunohcury avatar Oct 28 '21 17:10 brunohcury

Hi @brunohcury ,

How is this different from the links that Moodle includes at the bottom of each page?

michael-milette avatar Oct 29 '21 13:10 michael-milette

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.

brunohcury avatar Oct 29 '21 13:10 brunohcury

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.

davefoord avatar Mar 31 '22 10:03 davefoord

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?

michael-milette avatar Mar 31 '22 12:03 michael-milette

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"....

davefoord avatar Mar 31 '22 12:03 davefoord

Yes.

michael-milette avatar Mar 31 '22 12:03 michael-milette