N
N
Nikita Kit2016-06-16 23:02:32
MODX
Nikita Kit, 2016-06-16 23:02:32

How can snippets generate your markup with classes in MODX?

Good evening everyone.
I encountered such a problem in modex - I planted the layout, css - dropped for my markup, but how it came to the need to use snippets ... in general, I still did not understand how to generate HTML inline with my classes (so that styles were applied) &[email protected] generates markup. and adds as classes - it's not clear to me where he gets them from.
bf6345f034574bfe8839c67f908e86bf.png
(Fig. 1 " doesn't work")
If I try to create a regular chunk with the markup I need by adding &tpl='mychank' to the snippet, on the front-end I generally get an array of resources instead of a menu in the form lines. By the way, this happens even when I try to register my classes, right in line. Although the array is different...
How to correctly generate classes and attributes for html elements generated by snippets?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question