michael-milette / moodle-filter_filtercodes

FilterCodes filter for Moodle enables content creators to easily customize and personalize course and site content using plain text tags (no HTML). For premium support, contact us at https://www.tngconsulting.ca/contact
https://moodle.org/plugins/filter_filtercodes
GNU General Public License v3.0
32 stars 45 forks source link

Feature request {next-activity-link} #189

Open brunohcury opened 3 years ago

brunohcury commented 3 years ago

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

michael-milette commented 3 years ago

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

brunohcury commented 3 years ago

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

michael-milette commented 2 years ago

Hi @brunohcury ,

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

brunohcury commented 2 years ago

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.

davefoord commented 2 years ago

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.

michael-milette commented 2 years ago

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?

davefoord commented 2 years ago

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

michael-milette commented 2 years ago

Yes.