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: {courseactivityname} #158

Open brunohcury opened 3 years ago

brunohcury commented 3 years ago

Hello Michael,

I wonder if the filter {instancename} would be possible within the scope of the plugin? In practice this new filter will bring the name of the created resource. In the example of the image I added the resource "page" and inside it I already bring the section information as you guided me by {sectionname}, however as there are many subclasses, I would like the filter to bring the name of the resource / activity created. Thank you in advance for your help.

PS: In the attachment I'm editing a resource "page" and I would like the filter to bring the name I defined for this one.

instancename

michael-milette commented 3 years ago

Hi @brunohcury ,

Is it the name of the activity that you want?

If so, can you give me a real-life example of how you would use it? Isn't the activity name already part of the page heading?

Best regards,

Michael

brunohcury commented 3 years ago

Hello Michael, Thanks for your return.

Yes, it's the name of the activity I'm accessing that I need to return. The Activity/Resource Title actually comes more in the header of the page, in this course I've hidden the default title to use it in a more personalized way for my realities. In this case, I'm bringing in the title of the activity the "section name" - "name of the title of this resource". Below is an image that illustrates this use: PS: Sorry for the draft. exemple

brunohcury commented 3 years ago

Michael, How are you my friend? About this request, do you know if there was a possibility to include it in the "roadmap"?

brunohcury commented 2 years ago

Michael, all right! My friend, can you tell me if this function already exists in FilterCodes?

Thank you very much in advance