Skip to content

Enriches Sulu CMS Accounts (Organizations) with specific business data fields, such as register numbers and opening hours.

License

Notifications You must be signed in to change notification settings

manuxi/SuluExtendedAccountBundle

Repository files navigation

SuluExtendedAccountBundle

php workflow symfony workflow License: MIT GitHub Tag Supports Sulu 3.0 or later

A Sulu bundle to extend the account entity with company data, business hours, public holidays and company holidays.

Company data

OPenings

English | 🇩🇪 Deutsch

Documentation

Quick Start

composer require manuxi/sulu-extended-account-bundle

If you are not using Symfony Flex, register the bundle in config/bundles.php:

return [
    //...
    Manuxi\SuluExtendedAccountBundle\SuluExtendedAccountBundle::class => ['all' => true],
];

Add the admin routes to config/routes/routes_admin.yaml:

SuluExtendedAccountBundle:
    resource: '@SuluExtendedAccountBundle/Resources/config/routes_admin.yaml'

Update the database schema:

php bin/console doctrine:schema:update --force

For detailed instructions see the Installation Guide.

Dependencies

This bundle requires the SuluAdminExtrasBundle for the business_hours, public_holidays and holiday_dates content types.

Twig Functions

The bundle provides Twig functions for frontend use:

Function Returns Description
is_open_now(accountId) bool Whether the account is currently open
get_business_hours(accountId) array Full weekly schedule
get_today_hours(accountId) array|null Today's hours
is_holiday(accountId) bool Whether today is a holiday

See Features for usage examples.

Configuration

There is no configuration required at this time.

Contributing

Please feel comfortable submitting issues or pull requests. Feedback to improve the bundle is always welcome.

License

This bundle is released under the MIT License.

About

Enriches Sulu CMS Accounts (Organizations) with specific business data fields, such as register numbers and opening hours.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages