-
Notifications
You must be signed in to change notification settings - Fork 20
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
02 - Add a content block to the homepage #7
Open
luca-rath
wants to merge
1
commit into
assignment/01
Choose a base branch
from
assignment/02
base: assignment/01
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
niklasnatter
force-pushed
the
assignment/01
branch
from
July 9, 2020 08:40
c8d2b1b
to
54dc2eb
Compare
niklasnatter
force-pushed
the
assignment/02
branch
from
July 9, 2020 08:41
62269c8
to
4a3b90c
Compare
niklasnatter
force-pushed
the
assignment/02
branch
2 times, most recently
from
September 23, 2020 10:47
d3b0852
to
d2641ea
Compare
niklasnatter
force-pushed
the
assignment/02
branch
from
October 21, 2020 07:04
d2641ea
to
f54429c
Compare
niklasnatter
force-pushed
the
assignment/01
branch
from
October 21, 2020 08:23
f1c945f
to
a875bf1
Compare
niklasnatter
force-pushed
the
assignment/02
branch
from
October 21, 2020 08:23
f54429c
to
59960cb
Compare
niklasnatter
force-pushed
the
assignment/01
branch
from
October 21, 2020 09:32
a875bf1
to
8b44076
Compare
niklasnatter
force-pushed
the
assignment/02
branch
from
October 21, 2020 09:32
59960cb
to
197981d
Compare
niklasnatter
force-pushed
the
assignment/01
branch
from
October 23, 2020 09:16
8b44076
to
7d0a4d4
Compare
niklasnatter
force-pushed
the
assignment/02
branch
from
October 23, 2020 09:16
197981d
to
3c66779
Compare
niklasnatter
force-pushed
the
assignment/01
branch
from
October 23, 2020 11:30
7d0a4d4
to
5b17716
Compare
niklasnatter
force-pushed
the
assignment/02
branch
2 times, most recently
from
October 23, 2020 15:14
3f7a1d5
to
57392b6
Compare
luca-rath
force-pushed
the
assignment/01
branch
from
November 6, 2020 13:12
3a7ed77
to
a48c3cd
Compare
luca-rath
force-pushed
the
assignment/02
branch
from
November 6, 2020 13:12
57392b6
to
34aaaef
Compare
niklasnatter
force-pushed
the
assignment/02
branch
2 times, most recently
from
February 16, 2021 14:23
e1b6743
to
61c2dc1
Compare
niklasnatter
force-pushed
the
assignment/02
branch
2 times, most recently
from
March 31, 2021 10:51
f9b3e0e
to
fc9d6b7
Compare
niklasnatter
force-pushed
the
assignment/02
branch
from
May 27, 2021 12:47
fc9d6b7
to
ffd157f
Compare
niklasnatter
force-pushed
the
assignment/01
branch
from
June 22, 2021 08:46
34b1d1b
to
a7cf2ce
Compare
niklasnatter
force-pushed
the
assignment/02
branch
from
June 22, 2021 08:46
ffd157f
to
7299fdd
Compare
niklasnatter
force-pushed
the
assignment/02
branch
from
June 20, 2022 19:46
7299fdd
to
d8b37c6
Compare
niklasnatter
force-pushed
the
assignment/02
branch
3 times, most recently
from
June 20, 2022 21:19
b43077b
to
b470b18
Compare
niklasnatter
force-pushed
the
assignment/01
branch
from
June 20, 2022 21:19
a2908ef
to
8c9c7ec
Compare
niklasnatter
force-pushed
the
assignment/02
branch
from
October 17, 2022 13:31
b470b18
to
69a2e31
Compare
niklasnatter
force-pushed
the
assignment/02
branch
from
October 17, 2022 14:52
69a2e31
to
fb0a78b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a content block to the homepage
Goal
Currently the content of our homepage consists of a single text editor and therefore lacks the possibility of managing
different kinds of standardized content sections. We want to provide a way to manage content blocks such as image
galleries or quotes to our content manager without having to worry about breaking the layout of our page.
Steps
blocks
to theconfig/templates/pages/homepage.xml
filetemplates/pages/homepage.html.twig
Hints
Run
bin/console sulu:content:types:dump
to list all available content types.More Information
The block content type allows to define an arbitrary amount of block types. Each block type is a composition of
multiple basic content types. After defining a block content type, the content manager is able to create and sort
instances of the configured block types in the Sulu administration interface.
A common use case for the block content type is to group a text editor and a media selection. This allows to couple
the respective text to the selected image and render it in a flexible and responsive way on your website. In contrast,
adding images to a basic text editor makes it harder to adapt the format and placement in your twig template.
Links