How to increase the character value of lesson name field?

How to increase the character value of lesson name field?

by Jai Bararia -
Number of replies: 3

Hello Everyone,

I am using Moodle 3.8.3+ and an adaptable theme. 

I am using multiple languages on the e-learning platform and inside the course, I am using the lessons. Now I am having a problem with converting the Lesson name into other languages. It is working approx of two other languages For the third language it is showing the error that this field has a character limit of 255.

And after searching, I find this approach " https://moodle.org/mod/forum/discuss.php?d=253649# " I did this for " mdl_lesson->name "I change the type from char to varchar and value to 1000 in the database. And I didn't find anything like that in code so I didn't change anything in code. 

For Conversion, I am using this method {mlang lang-code} text {mlang} which is working fine.

I have attached a screenshot to give you an idea of the section I am talking about.


So please help me with this. Thank you

Average of ratings: -
In reply to Jai Bararia

Re: How to increase the character value of lesson name field?

by Jai Bararia -
Anyone, please help me with this.
In reply to Jai Bararia

Re: How to increase the character value of lesson name field?

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Hello Jai,

Try the example in different languages at https://moodleformulas.org/course/view.php?id=77&section=62 ↗.
In reply to Dominique Bauer

Re: How to increase the character value of lesson name field?

by Christos Valiandes -
Hello Dominique,

I have seen the link you added above(https://moodleformulas.org/course/view.php?id=77&section=62) and it seems like something i can use to help me with the issue i am facing regarding the length of my multilingual titltes. What i wanted to ask is that i dont understand where i should add the script for this to work? 

Any ideas??

Thanks