Skip to content

Commit 17352c6

Browse files
committed
Adding documentation for the new webspaces
1 parent 6093d42 commit 17352c6

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

book/localization.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ Localizations for the content are configured in the webspaces, as already
1414
described in :doc:`webspaces`. Adding another localization is as easy as
1515
adding another ``localization`` tag to the webspace configuration file.
1616
Localizations can also be nested, which has no impact on the representation in
17-
all the dropdowns, but it will help the system to find better fallbacks.
17+
all the dropdowns, but it will help the system to find better fallbacks. This
18+
is why you can only nest them with a depth of 2.
1819

19-
So a good example using english and german as a language might look something
20+
So a good example using English and German as a language might look something
2021
like the following fragment.
2122

2223
.. code-block:: xml

book/webspaces.rst

+20-6
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,31 @@ administration interface. Sulu allows you to create pages and sub pages in
1111
these trees and fill them with content. Have a closer look at
1212
:doc:`templates` for more details on the content management process.
1313

14-
Normally you'll create a webspace for a new website, a landingpage or a portal,
14+
Normally you'll create a webspace for a new website, a landing page or a portal,
1515
that should run on your Sulu instance.
1616

17-
The following file shows a configuration. These lines will be explained in the
17+
To generate a blank webspace configuration file you can use the Symfony debug command:
18+
19+
.. code-block:: bash
20+
bin/adminconsole config:dump-reference sulu_website --format xml
21+
22+
.. note::
23+
All of the webspace definition files are located under `config/webspaces` and the default format is XML.
24+
25+
The following file shows an example configuration written in XML. These lines will be explained in the
1826
following paragraphs.
1927

2028
.. code-block:: xml
2129
2230
<?xml version="1.0" encoding="utf-8"?>
23-
<webspace xmlns="http://schemas.sulu.io/webspace/webspace"
24-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25-
xsi:schemaLocation="http://schemas.sulu.io/webspace/webspace http://schemas.sulu.io/webspace/webspace-1.1.xsd">
26-
31+
<services:container xmlns="http://example.org/schema/dic/sulu_website"
32+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33+
xmlns:services="http://symfony.com/schema/dic/services"
34+
xsi:schemaLocation="http://symfony.com/schema/dic/services
35+
https://symfony.com/schema/dic/services/services-1.0.xsd"
36+
>
37+
<config>
38+
<webspace>
2739
<name>Example</name>
2840
<key>example</key>
2941
@@ -98,6 +110,8 @@ following paragraphs.
98110
</portal>
99111
</portals>
100112
</webspace>
113+
</config>
114+
</services:container>
101115
102116
.. note::
103117

0 commit comments

Comments
 (0)