| author | cavaliet |
| Mon, 28 Nov 2011 10:34:24 +0100 | |
| changeset 41 | dc31a49ad590 |
| parent 35 | 382573c64e16 |
| child 43 | 9124c70d4fd2 |
| permissions | -rwxr-xr-x |
| 0 | 1 |
imports: |
2 |
- { resource: parameters.ini } |
|
3 |
- { resource: security.yml } |
|
4 |
||
5 |
framework: |
|
6 |
#esi: ~ |
|
|
5
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
3
diff
changeset
|
7 |
translator: { fallback: %locale% } |
| 0 | 8 |
secret: %secret% |
9 |
charset: UTF-8 |
|
10 |
router: { resource: "%kernel.root_dir%/config/routing.yml" } |
|
11 |
form: true |
|
12 |
csrf_protection: true |
|
13 |
validation: { enable_annotations: true } |
|
14 |
templating: { engines: ['twig'] } #assets_version: SomeVersionScheme |
|
15 |
session: |
|
16 |
default_locale: %locale% |
|
17 |
auto_start: true |
|
18 |
||
19 |
# Twig Configuration |
|
20 |
twig: |
|
21 |
debug: %kernel.debug% |
|
22 |
strict_variables: %kernel.debug% |
|
23 |
||
24 |
# Assetic Configuration |
|
25 |
assetic: |
|
26 |
debug: %kernel.debug% |
|
27 |
use_controller: false |
|
28 |
filters: |
|
29 |
cssrewrite: ~ |
|
30 |
# closure: |
|
31 |
# jar: %kernel.root_dir%/java/compiler.jar |
|
32 |
# yui_css: |
|
33 |
# jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar |
|
34 |
||
35 |
# Doctrine Configuration |
|
36 |
doctrine: |
|
37 |
dbal: |
|
38 |
driver: %database_driver% |
|
39 |
host: %database_host% |
|
40 |
port: %database_port% |
|
41 |
dbname: %database_name% |
|
42 |
user: %database_user% |
|
43 |
password: %database_password% |
|
44 |
charset: UTF8 |
|
45 |
||
46 |
orm: |
|
47 |
auto_generate_proxy_classes: %kernel.debug% |
|
48 |
auto_mapping: true |
|
49 |
||
50 |
# Swiftmailer Configuration |
|
51 |
swiftmailer: |
|
52 |
transport: %mailer_transport% |
|
53 |
host: %mailer_host% |
|
54 |
username: %mailer_user% |
|
55 |
password: %mailer_password% |
|
56 |
||
57 |
jms_security_extra: |
|
58 |
secure_controllers: true |
|
59 |
secure_all_services: false |
|
| 3 | 60 |
|
61 |
fos_user: |
|
62 |
db_driver: orm # other valid values are 'mongodb', 'couchdb' |
|
63 |
firewall_name: main |
|
64 |
user_class: Company\UserBundle\Entity\User |
|
|
18
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
65 |
|
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
66 |
wiki_tag: |
| 22 | 67 |
route_for_documents_by_tag: company_other |
|
18
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
68 |
document_class: Company\BaseBundle\Entity\Document |
| 19 | 69 |
document_id_column: id |
|
18
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
70 |
fields: |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
71 |
title: |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
72 |
type: string |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
73 |
length: 1024 |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
74 |
accessor: getTitle |
| 29 | 75 |
weight: 1.0 |
|
18
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
76 |
description: |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
77 |
type: text |
| 29 | 78 |
weight: 0.5 |
|
31
f457dd0e7a1e
First step to add context search to a page. Works fine but needs to be improved with several list of selectors.
cavaliet
parents:
29
diff
changeset
|
79 |
# reactive_selectors is a list of jQuery selectors meant to let appear tag context search by selecting text. |
|
35
382573c64e16
Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents:
34
diff
changeset
|
80 |
# Example of list : [ '.any_class', '#any_div .p_class', '#another_selector' ]. Write [ 'document' ] if you want the whole document/page to be reactive. |
|
31
f457dd0e7a1e
First step to add context search to a page. Works fine but needs to be improved with several list of selectors.
cavaliet
parents:
29
diff
changeset
|
81 |
# Do not define reactive_selectors if you want nothing to be reactive. |
|
35
382573c64e16
Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents:
34
diff
changeset
|
82 |
reactive_selectors: |
|
382573c64e16
Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents:
34
diff
changeset
|
83 |
all: [ '.left_sheet', '#p_title .sheet_title', '#p_description' ] |
|
382573c64e16
Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents:
34
diff
changeset
|
84 |
only_p: [ '#p_title .sheet_title', '#p_description' ] |
|
382573c64e16
Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents:
34
diff
changeset
|
85 |
document: [ 'document' ] |
| 41 | 86 |
# document_list_profile is the list of the columns displayed in a document's tag list. |
87 |
# The columns can be "order, id, move_up_down, label, wikipedia_link, wikipedia_permalink, dbpedia_link, category, remove_wikipedia_link, alias, remove_tag_from_list" |
|
88 |
# Exemple of list : [ 'order', 'move_up_down', 'label', 'wikipedia_link', 'remove_tag_from_list' ] |
|
89 |
# If document_list_profile in not defined, all columns and the button will be displayed. |
|
90 |
document_list_profile: |
|
91 |
all: [ 'order', 'id', 'move_up_down', 'label', 'wikipedia_link', 'wikipedia_permalink', 'dbpedia_link', 'category', 'remove_wikipedia_link', 'alias', 'remove_tag_from_list' ] |
|
92 |
editor : [ 'order', 'id', 'move_up_down', 'label', 'wikipedia_link', 'wikipedia_permalink', 'dbpedia_link', 'category', 'remove_wikipedia_link', 'alias', 'remove_tag_from_list' ] |
|
93 |
contributor: [ 'order', 'label', 'wikipedia_link', 'wikipedia_permalink', 'delete_wikipedia_link', 'remove_tag_from_list' ] |
|
94 |
another: [ 'order', 'label', 'wikipedia_link', 'remove_tag_from_list' ] |
|
95 |
||
| 34 | 96 |
|
| 32 | 97 |
services: |
98 |
wiki_tag.tag_test_listener: |
|
99 |
class: Company\BaseBundle\Event\TestListener |
|
100 |
arguments: [@service_container] |
|
101 |
tags: |
|
102 |
- { name: kernel.event_listener, event: wikitag.tag_changed, method: onTagCreateAction } |
|
|
35
382573c64e16
Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents:
34
diff
changeset
|
103 |
|
|
382573c64e16
Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents:
34
diff
changeset
|
104 |
|