S
S
shynga2021-01-07 17:03:55
MODX
shynga, 2021-01-07 17:03:55

How to create a new section in MODX Revo 2.8?

Hello. Can you please tell me how to create a new section on the site in MODX Revolution 2.8.1?
The section is simple, 4 photos in a row.
I took the code from another section, which also has 4 div blocks in a row, but as I understand it, something needs to be changed.

<div class="row row-cols-xxl-4 row-cols-xl-4 row-cols-lg-4 row-cols-md-3 row-cols-sm-2 row-cols-2 justify-content-center g-4">
   {'!pdoResources' | snippet : [
      parents' => 12,
      'showLog' =>0,
      'tpl' => '@FILE chunks/service/service.tpl',
      'limit' => 20,
      'sortby' => '{"publishedon":"DESC"}',
      'includeTVs' => 'icon',
      'tvPrefix' => '',
      'hideContainers' => 1
   ]}
</div>


The site itself stroymastercom.kz Section License

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arthur Sh, 2021-02-06
@Shev_Art_V

Find a resource in the admin panel that has 12 written in brackets on the right, copy it, here parents' => ? instead of a question, write the id of the new resource, there will be other documents inside, open them one by one for editing and change the license to the desired image. The option that I described is terrible, but if you are not well versed in modx, then moreover, someone has already created a section with licenses for you in this way, for some reason.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question