| author | cavaliet |
| Thu, 19 Jul 2012 16:05:48 +0200 | |
| changeset 100 | 6abcdd06d768 |
| parent 90 | 413f45b26903 |
| child 104 | 415bc12426e9 |
| 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 |
| 64 | 70 |
ignore_wikipedia_error: false |
|
18
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
71 |
fields: |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
72 |
title: |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
73 |
type: string |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
74 |
length: 1024 |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
75 |
accessor: getTitle |
| 29 | 76 |
weight: 1.0 |
|
18
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
77 |
description: |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
78 |
type: text |
| 29 | 79 |
weight: 0.5 |
|
61
9f427e7c88f9
Correct event mamangement in hdabo_sf
ymh <ymh.work@gmail.com>
parents:
48
diff
changeset
|
80 |
categories: |
|
9f427e7c88f9
Correct event mamangement in hdabo_sf
ymh <ymh.work@gmail.com>
parents:
48
diff
changeset
|
81 |
type: text |
|
9f427e7c88f9
Correct event mamangement in hdabo_sf
ymh <ymh.work@gmail.com>
parents:
48
diff
changeset
|
82 |
accessor: getCategoriesStr |
|
9f427e7c88f9
Correct event mamangement in hdabo_sf
ymh <ymh.work@gmail.com>
parents:
48
diff
changeset
|
83 |
weight: 1.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
|
84 |
# 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
|
85 |
# 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
|
86 |
# 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
|
87 |
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
|
88 |
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
|
89 |
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
|
90 |
document: [ 'document' ] |
| 45 | 91 |
# document_list_profile is the list of the columns displayed in a document's tag list, AND the button to sort tags. |
| 89 | 92 |
# The list can contain "sort_tag, order, move_up_down, id, label, wikipedia_link, wikipedia_permalink, dbpedia_link, category, remove_wikipedia_link, alias, remove_tag_from_list, alternative_label, alternative_wikipedia_url" |
93 |
# The integers mean : 0 : never displayed and not available in the list. 1 : displayed by default. 2 : hidden by default but available in the list |
|
94 |
# If visibility is not defined, it means 0. Hidden columns can be not in the list, it means 0. |
|
| 45 | 95 |
# Exemple of list : ['sort_tag', 'order', 'move_up_down', 'label', 'wikipedia_link', 'remove_tag_from_list' ] |
96 |
# If document_list_profile in not defined, all columns and the sort tag button will be displayed. |
|
| 100 | 97 |
# If no param is set in the controller call, all columns and the sort tag button will be displayed. ({% render "WikiTagBundle:WikiTag:addJavascript" %}) |
| 41 | 98 |
document_list_profile: |
| 89 | 99 |
all: |
100 |
sort_tag: |
|
101 |
visibility: 1 |
|
102 |
order: |
|
|
90
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
103 |
label: '##' |
| 89 | 104 |
visibility: 1 |
105 |
move_up_down: |
|
106 |
visibility: 1 |
|
107 |
id: |
|
|
90
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
108 |
label: '#id' |
| 89 | 109 |
visibility: 1 |
110 |
label: |
|
|
90
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
111 |
label: '#Tag' |
| 89 | 112 |
visibility: 1 |
113 |
wikipedia_link: |
|
|
90
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
114 |
label: '#Lien W' |
| 89 | 115 |
visibility: 1 |
116 |
wikipedia_permalink: |
|
|
90
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
117 |
label: '#pLien W' |
| 89 | 118 |
visibility: 1 |
119 |
dbpedia_link: |
|
|
90
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
120 |
label: '#Lien D' |
| 89 | 121 |
visibility: 1 |
122 |
category: |
|
|
90
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
123 |
label: '#Catégorie' |
| 89 | 124 |
visibility: 1 |
125 |
remove_wikipedia_link: |
|
|
90
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
126 |
label: '#Supprimer le lien W' |
| 89 | 127 |
visibility: 1 |
128 |
alias: |
|
|
90
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
129 |
label: '#Alias' |
|
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
130 |
visibility: 1 |
| 89 | 131 |
remove_tag_from_list: |
|
90
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
132 |
label: '#Retirer le tag' |
| 89 | 133 |
visibility: 1 |
134 |
alternative_label: |
|
|
90
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
135 |
label: '#Label redirigé' |
|
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
136 |
visibility: 1 |
| 89 | 137 |
alternative_wikipedia_url: |
|
90
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
138 |
label: '#Lien redirigé' |
|
413f45b26903
update configuration for document_list_profile and column names
cavaliet
parents:
89
diff
changeset
|
139 |
visibility: 1 |
| 89 | 140 |
#editor : [ 'sort_tag', 'order', 'id', 'move_up_down', 'label', 'wikipedia_link', 'wikipedia_permalink', 'dbpedia_link', 'category', 'remove_wikipedia_link', 'alias', 'remove_tag_from_list' ] |
141 |
editor: |
|
142 |
sort_tag: |
|
143 |
visibility: 1 |
|
144 |
order: |
|
145 |
label: '#' |
|
146 |
visibility: 1 |
|
147 |
move_up_down: |
|
148 |
visibility: 1 |
|
149 |
id: |
|
150 |
label: 'id' |
|
151 |
visibility: 1 |
|
152 |
label: |
|
153 |
label: 'Tag' |
|
154 |
visibility: 1 |
|
155 |
wikipedia_link: |
|
156 |
label: 'Lien W' |
|
157 |
visibility: 1 |
|
158 |
wikipedia_permalink: |
|
159 |
label: 'pLien W' |
|
160 |
visibility: 1 |
|
161 |
dbpedia_link: |
|
162 |
label: 'Lien D' |
|
163 |
visibility: 1 |
|
164 |
category: |
|
165 |
label: 'Catégorie' |
|
166 |
visibility: 1 |
|
167 |
remove_wikipedia_link: |
|
168 |
label: 'Supprimer le lien W' |
|
169 |
visibility: 1 |
|
170 |
alias: |
|
171 |
label: 'Alias' |
|
172 |
visibility: 1 |
|
173 |
remove_tag_from_list: |
|
174 |
label: 'Retirer le tag' |
|
175 |
visibility: 1 |
|
176 |
alternative_label: |
|
177 |
label: 'Label redirigé' |
|
178 |
visibility: 2 |
|
179 |
alternative_wikipedia_url: |
|
180 |
label: 'Lien redirigé' |
|
181 |
visibility: 2 |
|
182 |
#contributor: [ 'order', 'label', 'wikipedia_link', 'wikipedia_permalink', 'delete_wikipedia_link', 'remove_tag_from_list' ] |
|
183 |
contributor: |
|
184 |
sort_tag: |
|
185 |
visibility: 0 |
|
186 |
order: |
|
187 |
label: '#' |
|
188 |
visibility: 1 |
|
189 |
move_up_down: |
|
190 |
visibility: 1 |
|
191 |
id: |
|
192 |
label: 'id' |
|
193 |
visibility: 0 |
|
194 |
label: |
|
195 |
label: 'Tag' |
|
196 |
visibility: 1 |
|
197 |
wikipedia_link: |
|
198 |
label: 'Lien W' |
|
199 |
visibility: 1 |
|
200 |
wikipedia_permalink: |
|
201 |
label: 'pLien W' |
|
202 |
visibility: 1 |
|
203 |
dbpedia_link: |
|
204 |
label: 'Lien D' |
|
205 |
visibility: 1 |
|
206 |
category: |
|
207 |
label: 'Catégorie' |
|
208 |
visibility: 2 |
|
209 |
remove_wikipedia_link: |
|
210 |
label: 'Supprimer le lien W' |
|
211 |
visibility: 1 |
|
212 |
alias: |
|
213 |
label: 'Alias' |
|
214 |
visibility: 2 |
|
215 |
remove_tag_from_list: |
|
216 |
label: 'Retirer le tag' |
|
217 |
visibility: 1 |
|
218 |
alternative_label: |
|
219 |
label: 'Label redirigé' |
|
220 |
visibility: 2 |
|
221 |
alternative_wikipedia_url: |
|
222 |
label: 'Lien redirigé' |
|
223 |
visibility: 2 |
|
|
73
c8ecf6c0bdd3
Add configuration to enable curl request with proxy or any other CURLOPT
cavaliet
parents:
64
diff
changeset
|
224 |
# Options for curl_setopt, typically proxy settings. If you want to use constant values, just write for example 'CURLOPT_PROXYAUTH' or 'CURLAUTH_NTLM'. |
|
c8ecf6c0bdd3
Add configuration to enable curl request with proxy or any other CURLOPT
cavaliet
parents:
64
diff
changeset
|
225 |
# The program will check if the string gives an existing constant |
|
c8ecf6c0bdd3
Add configuration to enable curl request with proxy or any other CURLOPT
cavaliet
parents:
64
diff
changeset
|
226 |
# For boolean, just write 'TRUE' or 'FALSE'. |
| 75 | 227 |
#curl_options: |
228 |
# CURLOPT_HTTPPROXYTUNNEL: 'TRUE' |
|
229 |
# CURLOPT_PROXYAUTH: 'CURLAUTH_NTLM' |
|
230 |
# CURLOPT_USERAGENT: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.1) Gecko/20100101 Firefox/10.0.1' |
|
231 |
# CURLOPT_PROXY: 'derain.centrepompidou.lan:3128' |
|
232 |
# CURLOPT_PROXYUSERPWD: 'DOM-CNAC\cavaliet:thibaut'; |
|
233 |
# CURLOPT_PROXYTYPE: 'CURLPROXY_HTTP' |
|
| 41 | 234 |
|
| 34 | 235 |
|
| 32 | 236 |
services: |
237 |
wiki_tag.tag_test_listener: |
|
238 |
class: Company\BaseBundle\Event\TestListener |
|
239 |
arguments: [@service_container] |
|
240 |
tags: |
|
241 |
- { 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
|
242 |
|
|
382573c64e16
Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents:
34
diff
changeset
|
243 |
|