F
F
fatfrumos412016-04-10 14:28:31
CMS
fatfrumos41, 2016-04-10 14:28:31

What is the difference between the process of layout under ModX and a site without CMS?

I apologize in advance for the stupid question. I'm just new to this stuff. I often see orders to make up some kind of menu element on the site under ModX or another CMS. How will this differ from simple layout?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
zooks, 2016-04-10
@zooks

In the case of MODX, nesting of the menu is important, and it is natural that it be a ul list.
The first element has the class first, and the active element is active.
Page content elements should be typed without classes, but through inheritance, i.e.:

.content img { float: left; margin-right: 1em }
.content blockquote { font-size: 2em }

General advice: don't use divs alone, use HTML5.
Use unordered lists more to group similar items.
Here is an example of such low-quality layout:
<div class="partners">
    <div><a href="#"><img src="i/partner1.png" alt="partner"></a></div>
    <div><a href="#"><img src="i/partner2.png" alt="partner"></a></div>
    <div><a href="#"><img src="i/partner3.png" alt="partner"></a></div>
    <div><a href="#"><img src="i/partner4.png" alt="partner"></a></div>
    <div><a href="#"><img src="i/partner5.png" alt="partner"></a></div>
</div>

It can be rewritten like this:
<section class="partners">
    <ul>
        <li><a href="#"><img src="i/partner1.png" alt="partner"></a></li>
        <li><a href="#"><img src="i/partner2.png" alt="partner"></a></li>
        <li><a href="#"><img src="i/partner3.png" alt="partner"></a></li>
        <li><a href="#"><img src="i/partner4.png" alt="partner"></a></li>
        <li><a href="#"><img src="i/partner5.png" alt="partner"></a></li>
    </ul>
</section>

A
Andrey Andreev, 2016-04-10
@b0nn1e

Specifically, in the case of MODX, there are no restrictions.
MODX "hawks" any layout.
But if you make the menu purely on the ul > li > a
A active item, ul > li.acvie > ayou will get + into karma in the next life.

R
Ruslan, 2016-04-10
@ruslan_aleev

Normal layout is no different from layout for CMS. Because According to the logic of things, layout appeared before CMS and, accordingly, layout technologies were inherited and developed in the future, but did not change / adjust to CMS in any way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question