Configuring the Editor. Magento 2.1
Oglas
Oglas
Using the Editor CHAPTER 35: Pages
Configuring the Editor
The WYSIWYG editor is enabled by default, and can be used to edit content on CMS pages and blocks, and in products and categories. From the configuration you can activate or deactivate the editor, and elect to use static—rather than
—
for media content in product and category descriptions.
WYSIWYG Options
To configure the editor:
1.
On the Admin sidebar, tap Stores. Then under Settings, choose Configuration.
2.
In the panel on the left under General, choose Content Management.
3.
Expand the WYSIWYG Options section, and do the following:
a.
Set Enable WYSIWYG Editor to your preference. The editor is enabled by default.
b.
Set Static URLs for Media Content in WYSIWYG for Catalog to your preference for
that is included in category and product field descriptions.
4.
When complete, tap
Save Config
.
560 Magento Community Edition 2.1 User Guide
CHAPTER 36:
Content Blocks
A block is a modular unit of content that can be positioned most anywhere on the page.
Content blocks are sometimes referred to as static blocks, or CMS blocks, and can be used to display fixed information such as text, images, and embedded video, as well as dynamic information from a widget or that originates in a database or other source. Most elements on the home page are blocks that can be easily managed.
You can create custom blocks of content without writing any code, and assign them to appear in a specific place in the page layout. Blocks can also be defined and positioned by making a
in XML code.
Magento Community Edition 2.1 User Guide
Blocks on Home Page
561
Adding New Blocks CHAPTER 36: Content Blocks
Adding New Blocks
Custom blocks of content can be added to any page, group of pages, or even to another block.
You can place code for a carousel image slider in a block, and then position the block on the home page.
The Blocks workspace uses the same
as the Pages workspace to help you find blocks and perform routine maintenance operations.
Blocks Workspace
562 Magento Community Edition 2.1 User Guide
CHAPTER 36: Content Blocks
To create a block:
1.
On the Admin sidebar, tap Content. Then under Elements, choose Blocks.
2.
In the upper-right corner, tap
Add New Block
. Then, do the following:
Adding New Blocks
New Block
a.
By default the status of the new block is enabled. If you want to change the status, set
Enable Block
to “No.”
b.
Assign a Block Title for internal reference.
c.
Assign a unique Identifier for the block. Use all lowercase characters, with underscores instead of spaces.
d.
Select each Store View where the block is to be available.
e.
Complete the block Content as needed.
l
Use the
to format text, create links and tables, images, video, and audio.
l
If you prefer to work with the HTML code, tap
Show / Hide Editor
.
3.
When complete, tap
Save Block
.
The new block appears at the bottom of the list in the Blocks grid.
Magento Community Edition 2.1 User Guide 563
Preuzimanje
Oglas