Version

Documentation » Timeline Bundle

« 1. Installation

This Page

« 1. Installation

2. Configuration

2.1. Full Configuration Options

  • YAML
    # config/packages/sonata_timeline.yaml
    
    sonata_timeline:
        manager_type: orm
        class:
            component:        '%spy_timeline.class.component%'
            action_component: '%spy_timeline.class.action_component%'
            action:           '%spy_timeline.class.action%'
            timeline:         '%spy_timeline.class.timeline%'
            user:             '%sonata.user.admin.user.entity%'
    

2.2. Customize the Timeline Block

You can customize the title (default: Latest Actions) of the block by using these config options:

  • YAML
    # config/packages/sonata_admin.yaml
    
    sonata_admin:
        dashboard:
            blocks:
                - { position: center, type: sonata.timeline.block.timeline, settings: { context: SONATA_ADMIN, max_per_page: 25, title: "My Timeline Block" }}
    

You can customize the icon (default: <i class="fa fa-clock-o fa-fw"></i>) of the block by using these config options:

  • YAML
    # config/packages/sonata_admin.yaml
    
    sonata_admin:
        dashboard:
            blocks:
                - { position: center, type: sonata.timeline.block.timeline, settings: { context: SONATA_ADMIN, max_per_page: 25, icon: '<i class="fa fa-flag-o fa-fw"></i>' }}
    

Found a typo? Something is wrong in this documentation? Just fork and edit it!