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

{coursecontacts} link type #214

Closed Urpokarhu1 closed 2 years ago

Urpokarhu1 commented 2 years ago

Hello,

{coursecontacts} makes a link pointing to teachers phonenumber tel: -link (if teacher's phone number is empty)

image

When you add phonenumber to teachers Moodle profile the link dissappears.

image

image

Can you add a setting that lets you specify what information is used in the link? Email address would make a lot more sense

michael-milette commented 2 years ago

Hi @Urpokarhu1 ,

There is already a setting for the link type in the FilterCodes settings plugin.

image

The options include:

Does this meet your needs? The limitation is that you can only set one type of link for all contacts listed.

As for the tel: appearing when you do not specify a phone number, I am not sure why that is happening for you. Unfortunately, I am unable to understand what it says in your screenshot. Also, what theme are you using? It is possible that this tel: is being injected by your theme's CSS or JavaScript if it detects that a field is a telephone number.

Best regards,

Michael

Urpokarhu1 commented 2 years ago

Hello,

This fullfills my need, thanks.