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

05 - Add a page template Event overview to the website #10

Open
wants to merge 1 commit into
base: assignment/04
Choose a base branch
from

Conversation

luca-rath
Copy link
Contributor

@luca-rath luca-rath commented Jul 7, 2020

Add an event_overview page template to the project

Goal

Unfortunately our website is lacking an overview of all events. We would love to provide a page that displays all
the events we are managing.

Steps

  • Create a new template by adding a config/templates/pages/event_overview.xml file and a
    templates/pages/event_overview.html.twig file
  • Add a property events with type smart_content and the provider events to your event_overview.xml
  • Log into the admin UI with user "admin" and password "admin"
  • Create a new page Events and select the newly created event_overview template
  • Assign the page to the main navigation context
  • Output the events provided by the smart_content property in your templates/pages/event_overview.html.twig

Hints

  • Use {{ dump(content.events) }} in the Twig template to find out how the data that is returned by a
    smart_content property is structured.

More Information

The smart content is one of the most powerful content types of Sulu. It allows the content manager to dynamically
configure an aggregation of content from different data sources. This is possible by registering data providers for
different data sources in the system. A data provider defines which options are supported for its data source and is
responsible for loading the respective data.

Sulu already includes preconfigured data providers for pages from the content management section, contacts, accounts
and media entities.

Links

@luca-rath luca-rath force-pushed the assignment/05 branch 2 times, most recently from 4dea4cc to cd978c2 Compare July 7, 2020 13:52
@alexander-schranz alexander-schranz added the assignment Pull request for a assignment solution label Sep 23, 2020
@niklasnatter niklasnatter force-pushed the assignment/05 branch 2 times, most recently from 35d5c88 to 92d43c2 Compare October 21, 2020 08:23
@niklasnatter niklasnatter force-pushed the assignment/05 branch 3 times, most recently from efb3fbd to cd4cdc6 Compare October 23, 2020 11:30
@niklasnatter niklasnatter force-pushed the assignment/05 branch 2 times, most recently from f380ddc to a3ea35d Compare February 16, 2021 14:23
@niklasnatter niklasnatter force-pushed the assignment/05 branch 2 times, most recently from 3a46121 to ebd61cc Compare March 31, 2021 10:51
@niklasnatter niklasnatter force-pushed the assignment/05 branch 2 times, most recently from 3eb0323 to 96c7511 Compare June 22, 2021 08:52
@niklasnatter niklasnatter force-pushed the assignment/05 branch 5 times, most recently from e8288c2 to 2ca1010 Compare June 20, 2022 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assignment Pull request for a assignment solution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants