Totara Learn Open Discussions

Blocks or HTML Displayed by Audience

 
Sean Putman
Blocks or HTML Displayed by Audience
by Sean Putman - Wednesday, 2 June 2021, 2:21 PM
 

We are trying to display some information on the seminar page for a global online class by audience i.e. someone from the Europe would see a little bit different information than someone from the US. It is straight forward with a Label on the course page, but not so much on the Seminar page and we want to carry that forward to the Seminar page. Is there a way to display by audience in the Seminar description HTML editor or with a block?

Thanks,
Sean

Craig Eves
Re: Blocks or HTML Displayed by Audience
by Craig Eves (Totara Support) - Thursday, 3 June 2021, 8:11 PM
Group Totara

Hi Sean

Are you able to enable the multilang filter for headings and content and then type in the content with the multilang tags similar to the example in the linked document.

Regards




Sean Putman
Re: Blocks or HTML Displayed by Audience
by Sean Putman - Friday, 4 June 2021, 9:50 AM
 

Hey Craig,

Thanks for the response! Yes we have multilang activated and are using it. The issue is I might have someone from Germany still viewing in English and would like to adjust the content (specifically pricing text) based on their country which we have set as an audience. If their language is set to German it does make it easier for sure.

Sean

Craig Eves
Re: Blocks or HTML Displayed by Audience
by Craig Eves (Totara Support) - Monday, 7 June 2021, 6:18 PM
Group Totara

Hi Sean

Each user is able to select their preferred language  this is independent of the country and this is what the multilang filter would use. there is also an option to autodetect language based on the user's browser.

Regards

Sean Putman
Re: Blocks or HTML Displayed by Audience
by Sean Putman - Wednesday, 9 June 2021, 8:00 AM
 

Thanks Craig! I appreciate you taking the time to answer. We are using the multilang and autodetect option currently and it is working well. We can get a lot of what we need from that implementation.

Maybe a better example would be if we wanted to change some displayed text for the US and Canada who both use us_en as their language. Just curious if there was any way to do that in the HTML editor or with blocks like there is with activities using an audience.

Simon Seiffert
Re: Blocks or HTML Displayed by Audience
by Simon Seiffert - Wednesday, 9 June 2021, 4:01 PM
Group Helpful contributor 2024Group Most Helpful Contributor 2022Group Most helpful contributor 2023Group TXP Site Administrator

Hi Sean,

I achieve something similar using audiences and custom roles assigned to those audiences (which have no permissions directly attached). I add this role to the block permissions with View capability, and remove the other roles (Learner, Authenticated User, Guest etc.) so only they (and admins) see it.

This works great for us, as I use it to show custom blocks on the main dashboard to just Clinical staff, or only show the self-completion block in specific courses to learners in certain audiences.

It would be great to have an visible audience capability for blocks though as well - so this workaround didn't have to be in place!

Hope this helps!

Simon.

Sean Putman
Re: Blocks or HTML Displayed by Audience
by Sean Putman - Wednesday, 9 June 2021, 6:58 PM
 

Thank you Simon! This worked perfectly for what we were looking to do. I appreciate you taking the time to answer.

Sean