ModX Snippets are small pieces of PHP script that can be called and reused multiple times on a Modx Revolution or ModX Evolution website.
Questions tagged [modx-snippets]
5 questions
5
votes
0 answers
Poll manager with multiple questions for modx revo
I need a poll manager for modx with the possibility of adding more questions and answers to them. Standard module "Polls" allows add only one question.
I want to use this module for creating system, which can check knowledge of any subject for my…

dark
- 167
- 1
- 6
- 17
0
votes
1 answer
Listing MODX Articles with at least one common tag
Is it possible to use the getResources snippet to find related articles that have at least one common tag with the active resource?
[[getResources?
&parents=`xxx, xxx`
&showHidden=`1`
&limit=`10`
…

Niko Suominen
- 97
- 9
0
votes
2 answers
Modx revo regClientStartupScript 404
I create a snippet called myscripttest:
regClientStartupScript('assets/templates/js/myscript.js');
put myscript.js into assets/templates/js, call [myscripttest] from my document. Result: it returns 404 for…

mikebrsv
- 1,890
- 2
- 24
- 31
0
votes
1 answer
What is it? [[++[[*context_key]].yaKey]] (ModX)
I need to change value of SEO-goals (onclick) on the multi domain website. And I found this thing on the project server(MODX): onclick="yaCounter[[++[[*context_key]].yaKey]].reachGoal('something'); return true;" And if I change this text it changes…

Maximus Dredoff
- 306
- 3
- 17
0
votes
1 answer
Login plugin Hooks not running
I am trying to send a 2nd email to my sites admin when a user registers.
I made a postHook snippet that sends an email but it didnt work - the Registration process worked as expected, but I got no 2nd email from the hook.
In testing I set the hook…

MeltingDog
- 14,310
- 43
- 165
- 295