Comments (6)
It uses mustache templating so this page is probably a good place to look for ideas - I wonder if userdate might work:
https://docs.moodle.org/dev/Templates#.7B.7B.23_userdate_.7D.7D_.28Moodle_3.3_onwards.29
I don't think we've tried anything like this before so let us know if you figure it out!
from moodle-local_cohortauto.
Well, I used this pattern in the Main Template section, but nothing happened:
{{#userdate}} {{ timecreated }}, %B %Y {{/userdate}}
so I then tried adding spaces:
{{ #userdate }} {{ timecreated }}, %B %Y {{ /userdate }}
Which resulted in a cohort:
1605290540, %B %Y
Obviously, the epoch time and string literals, so the helper syntax must be incorrect.
Just as a look/see (as per the other helper documentation) I also tried:
{{# userdate }} {{ timecreated }}, %B %Y {{/ userdate }}
But again, nothing.
I looked at the "Replace array" but it simply looks to use a static text pattern.
from moodle-local_cohortauto.
Does it look as if the plugin ignores helpers?
from moodle-local_cohortauto.
sounds like it - you might need to look to see how Moodle adds those helpers to the templates and see if you can hack that into the way the plugin manages templates.
from moodle-local_cohortauto.
I suspect this is beyond what I would be able to achieve :(.
Just for a giggle, I might look at the code, but this is not really my area.
from moodle-local_cohortauto.
Yep - not giggling... Unfortunately, I don't really know where to start.
from moodle-local_cohortauto.
Related Issues (20)
- "$PAGE->context was not set" when performing OAuth2 login HOT 7
- Force cohorts to update without logging in users HOT 2
- Can't delete generated cohorts HOT 1
- Support for 3.11? HOT 1
- Deprecated: Required parameter $result follows optional parameter $prefix in HOT 1
- allow match on cohortid HOT 1
- Compatible moodle 4.X ? HOT 1
- UI checks making unit tests failure HOT 1
- sync_users.php not working in moodle 4 HOT 3
- Massive Server Load HOT 7
- NULL value for column idnumber is not allowed on Moodle 4.1+ anymore HOT 1
- Problems when using the Plugin HOT 1
- Moodle 4.0 or 4.1 HOT 1
- Prevent warnings on empty emails HOT 2
- warning for $PAGE->context not set when logging in user HOT 2
- settings.php: curious why this plugin is not listed in the local plugin settings HOT 1
- cli/sync_users.php: show username being processed only if necessary HOT 2
- cli/sync_users.php cron_setup_user() function is deprecated HOT 2
- Moodle 3.9 issues HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-local_cohortauto.