Answer the question
In order to leave comments, you need to log in
How to create a document to edit block content in MODX?
I create a template for the next page "services". I create the document, I refer to a template "services". I prescribe alias as in url (services) and everything is fine, everything works OK, but only on this page there are blocks with content that needs to be edited separately. As I understand it, you need to create a subdocument in the "services" document for this, but I can't figure out how to associate it with the markup chunk of this block .
In general, here: macros6.prligh.bget.ru/services.html
Answer the question
In order to leave comments, you need to log in
If I understand you correctly, you need to display the categories of the catalog on the page, for this you create a sub-document, and display on the page with the help
of this read
you make the document "services" add child documents "service-1 ... service-n" to it ", everyone should have different aliases, on your page where the list of services will be displayed, the getResourses snippet is called
Listing the child resources of the current resource using the 'myRowTpl' chunk:which will fetch all child documents of the "Services" document and output using the myRowTpl chunk
Well, then go to the "Elements" tab, select "Additional fields", create a new one, name it for example "zeleboba", select "Text editor" in the "Input options" tab, mark your own in the "Available for templates" tab and all this save the case. And then you climb into your page and in the "Additional fields" tab you see your new field. In the field template, is displayed . Well, by the same principle, create the rest of the blocks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question