Closed michael-milette closed 2 years ago
Hello awesome @michael-milette,
I tested it and looks like everything is ok. I really want to make the cards generation better in settings but got no success. Today the generation of fields are made after we change the number of cards ans reload the settings page, I want to make that in real time, so as soon as we change the value of cards. Have you ever saw some settings doing things like this?
Kind regards, Rodrigo Mady
I haven't seen this level of dynamic display before in Moodle. I think it would be a first for a Moodle theme. However, what would the impact be for a site with 10,000 concurrent active users?
Hi @rmady
When I got to the Frontpage, I get the following errors:
Notice: Undefined property: stdClass::$frontpagecardstitle in theme/trema/layout/frontpage.php on line 107 Notice: Undefined property: stdClass::$frontpagecardssubtitle in theme/trema/layout/frontpage.php on line 108
I am not sure how this happened however, I suspect that I chose to disable front page cards (frontpageenablecards setting) during installation of the theme. As a result, there are several settings whose which are not set set in content_settings.php including the two mentioned above. Here is the relevant code:
As a result, when the layout/frontpage.php tries to access these settings in order to display the home page, they don't exist and the above-mentionned notices occur.
The workaround is to enable the cards, save and then go disable the cards. However, this should not be necessary if you simply don't want the cards in the first place.
Let me know if you have any questions.
Best regards,
Michael Milette