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 43 forks source link

Only one of multiple identical {charts} tags is rendered #201

Open michael-milette opened 2 years ago

michael-milette commented 2 years ago

In the following example, only one of each chart is rendered on the page:

{chart radial 80 Are you over 70%?} {chart radial 60 Are you over 70%?} {chart radial 75 Are you over 70%?}

{chart radial 80 Are you over 70%?} {chart radial 80 Are you over 70%?} {chart radial 60 Are you over 70%?} {chart radial 60 Are you over 70%?} {chart radial 75 Are you over 70%?} {chart radial 75 Are you over 70%?}

michael-milette commented 1 year ago

This is a known issue with the current version of FilterCodes.

Workaround

Change the percentage or the label to make subsequent versions of the chart appear correctly.

Example

This works: {chart radial 80 Are you over 70%?}

This works: {chart radial 80 Are you now over 70%?}

This works: {chart radial 81 Are you over 70%?}

If you then use this, it will not work as expected because an identical tag was previously used: {chart radial 80 Are you over 70%?}