Kunstmaan / KunstmaanBundlesStandardEdition

The "Kunstmaan Bundles Standard Edition" distribution
http://bundles.kunstmaan.be
MIT License
89 stars 39 forks source link

How define another section in the admin "NO ADMIN FOUND" #245

Closed cedriclombardot closed 7 years ago

cedriclombardot commented 7 years ago

Hi,

I want to add a new block section in admin

I'have added in main.yml a new section :

name: Carousel
context: main
types:
    - { name: Carousel, class: XXX\AppBundle\Entity\PageParts\CarouselPagePart }

name: Main
context: main
types:
    - { name: Audio, class: HSDATA\AppBundle\Entity\PageParts\AudioPagePart }
    - { name: Button, class: HSDATA\AppBundle\Entity\PageParts\ButtonPagePart }
    - { name: Download, class: HSDATA\AppBundle\Entity\PageParts\DownloadPagePart }

Visible in admin but show message "NO ADMIN FOUND"

cedriclombardot commented 7 years ago

Ok i'have found !

We need add one config.yml in pageparts folder per section and also one contect at same time and to conclude change : public function getPagePartAdminConfigurations() { return array('HSDATAAppBundle:carousel', 'HSDATAAppBundle:main'); } in page