Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize webspace #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions config/webspaces/conference.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8"?>
<webspace xmlns="http://schemas.sulu.io/webspace/webspace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.sulu.io/webspace/webspace http://schemas.sulu.io/webspace/webspace-1.1.xsd">
<!-- See: http://docs.sulu.io/en/latest/book/webspaces.html how to configure your webspace-->

<name>SymfonyCon</name>
<key>conference</key>

<localizations>
<!-- See: http://docs.sulu.io/en/latest/book/localization.html how to add new localizations -->
<localization language="en" default="true"/>
<localization language="fr"/>
<localization language="de"/>
</localizations>

<default-templates>
<default-template type="page">default</default-template>
<default-template type="home">homepage</default-template>
</default-templates>

<!-- See: https://docs.sulu.io/en/latest/book/webspaces.html#excluded-templates-optional
<excluded-templates>
<excluded-template>other</excluded-template>
</excluded-templates>
-->

<templates>
<template type="search">search/search</template>
<!-- See: http://docs.sulu.io/en/latest/cookbook/custom-error-page.html how to create a custom error page -->
<template type="error">error/error</template>
</templates>

<navigation>
<contexts>
<context key="main">
<meta>
<title lang="en">Main Navigation</title>
<title lang="de">Hauptnavigation</title>
</meta>
</context>
<context key="footer">
<meta>
<title lang="en">Footer Navigation</title>
<title lang="de">Footer Navigation</title>
</meta>
</context>
</contexts>
</navigation>

<portals>
<portal>
<name>SymfonyCon</name>
<key>conference</key>

<environments>
<environment type="prod">
<urls>
<url>con.symfony.com/{localization}</url>
</urls>
</environment>
<environment type="stage">
<urls>
<url>stage.con.symfony.com/{localization}</url>
</urls>
</environment>
<environment type="test">
<urls>
<url>test.con.symfony.com/{localization}</url>
</urls>
</environment>
<environment type="dev">
<urls>
<url>con.symfony.lo/{localization}</url>

<!-- keeping the host placeholder for development purposes -->
<url>{host}/{localization}</url>
</urls>
</environment>
</environments>
</portal>
</portals>
</webspace>
18 changes: 12 additions & 6 deletions config/webspaces/website.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://schemas.sulu.io/webspace/webspace http://schemas.sulu.io/webspace/webspace-1.1.xsd">
<!-- See: http://docs.sulu.io/en/latest/book/webspaces.html how to configure your webspace-->

<name>Website</name>
<name>Symfony</name>
<key>website</key>

<localizations>
Expand Down Expand Up @@ -37,33 +37,39 @@
<title lang="de">Hauptnavigation</title>
</meta>
</context>
<context key="footer">
<meta>
<title lang="en">Footer Navigation</title>
<title lang="de">Footer Navigation</title>
</meta>
</context>
</contexts>
</navigation>

<portals>
<portal>
<name>Website</name>
<name>Symfony</name>
<key>website</key>

<environments>
<environment type="prod">
<urls>
<url language="en">{host}</url>
<url language="en">symfony.com</url>
</urls>
</environment>
<environment type="stage">
<urls>
<url language="en">{host}</url>
<url language="en">stage.symfony.com</url>
</urls>
</environment>
<environment type="test">
<urls>
<url language="en">{host}</url>
<url language="en">test.symfony.com</url>
</urls>
</environment>
<environment type="dev">
<urls>
<url language="en">{host}</url>
<url language="en">symfony.lo</url>
</urls>
</environment>
</environments>
Expand Down