Skip to content

Commit f67f431

Browse files
authored
Merge pull request #347 from symfony-cmf/tree-browser
Configure custom tree browser icons
2 parents c9b053a + 6e6ff09 commit f67f431

File tree

3 files changed

+38
-28
lines changed

3 files changed

+38
-28
lines changed

app/config/config.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ twig:
2323
debug: '%kernel.debug%'
2424
strict_variables: '%kernel.debug%'
2525
exception_controller: 'FOS\RestBundle\Controller\ExceptionController::showAction'
26+
form_themes:
27+
- '@CmfTreeBrowser/Form/fields.html.twig'
2628

2729
# Assetic Configuration
2830
assetic:
@@ -115,11 +117,20 @@ cmf_menu:
115117

116118
cmf_resource:
117119
description:
118-
enhancers: [sonata_phpcr_admin]
120+
enhancers: [sonata_phpcr_admin, cmf_tree_icons]
119121
repositories:
120122
default:
121123
type: doctrine/phpcr-odm
122124

125+
cmf_tree_browser:
126+
icons:
127+
AppBundle\Document\DemoSeoContent: 'fa fa-file-text-o'
128+
Sonata\BlockBundle\Model\BlockInterface: 'fa fa-cube'
129+
Symfony\Cmf\Bundle\SeoBundle\Model\SeoMetadata: 'fa fa-search'
130+
Symfony\Cmf\Bundle\MenuBundle\Model\MenuNode: 'fa fa-share-square-o'
131+
Symfony\Cmf\Bundle\RoutingBundle\Model\Route: 'fa fa-link'
132+
Symfony\Cmf\Bundle\RoutingBundle\Model\RedirectRoute: 'fa fa-reply'
133+
123134
cmf_sonata_phpcr_admin_integration:
124135
bundles:
125136
seo: ~
@@ -131,7 +142,6 @@ cmf_sonata_phpcr_admin_integration:
131142
menu_basepath: /cms/content
132143
routing: ~
133144

134-
135145
sonata_block:
136146
default_contexts: [cms]
137147
blocks:

composer.lock

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
}
271271
.sf-reset ul a,
272272
.sf-reset ul a:hover {
273-
background: url(../images/blue-arrow.png) no-repeat right 6px;
273+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAYAAAAx8TU7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFdJREFUeNpiYACBjjOhDEiACSggCKTLgXQ5TJARqhIkcReIKxgqTGYxwvV0nDEGkmeAOIwJySiQ4HsgvseIpGo3ELsCtZ9lRDIvDCiwhwHJPEFkJwEEGACq6hdnax8y1AAAAABJRU5ErkJggg==) no-repeat right 7px;
274274
padding-right: 10px;
275275
}
276276
.sf-reset ul, ol {

0 commit comments

Comments
 (0)