G
G
gerrrper2014-09-10 15:11:46
JavaScript
gerrrper, 2014-09-10 15:11:46

ModX Revolution - custom work drop down list. How to make scripted activation?

It's on the Extras tab. gender (in the admin), for example, the drop-down list Authors.
Each author has his own documents.
There is a second drop-down list - Documents.
Is it possible to make it so that when an author is selected in the first list, only the documents of the selected author are loaded in the second?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Egor Rublev, 2016-08-23
@FaloSun

Doper.
https://jsfiddle.net/salofun/a1dzz009/1/
Thank you all.

O
Olga Kuleshova, 2016-08-23
@OlgaKuleshova

the logic is something like this: you can move the pointer to the end of the array (using end), get the last key.
if the current key is not the last, output a comma (if ($key !== $last) echo ',';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question