author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Fri, 26 Mar 2010 09:18:21 +0100 | |
branch | stable |
changeset 5033 | 441191f7def1 |
parent 855 | 4e5bac6f15d1 |
permissions | -rw-r--r-- |
855
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
1 |
.. -*- coding: utf-8 -*- |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
2 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
3 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
4 |
Les ressources externes |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
5 |
======================= |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
6 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
7 |
Les ressources externes à une application regroupent l'ensemble des fichiers qui seront chargés dans l'entête des pages XHTML générées. |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
8 |
Elles sont donc constituées principalement des feuilles de styles, des scripts javascripts et de certaines ressources graphiques comme l'icône favicon par exemple. |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
9 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
10 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
11 |
Liste des feuilles de styles utilisées par défaut |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
12 |
------------------------------------------------- |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
13 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
14 |
Les fichiers par défaut se trouve dans les sources du framework. En voici le tableau récapitulatif: |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
15 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
16 |
+--------------------------------------+----------------------------------------------------+-----------------------------------+ |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
17 |
| Fichiers | Utilisation | Vues ou widget concernés | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
18 |
+======================================+====================================================+===================================+ |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
19 |
| web/data/cubicweb.acl.css | formulaires pour le contrôle aux accès | editgroups, security | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
20 |
| web/data/cubicweb.calendar.css | calendriers | onemonthcal, oneweekcal | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
21 |
| web/data/cubicweb.calendar_popup.css | popup calendriers | DateWidget | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
22 |
| web/data/cubicweb.css | gabarit principal de l'application | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
23 |
| web/data/cubicweb.facets.css | surcharge du `MIT Simile Exhibit Web Widgets`_ | filter_box | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
24 |
| web/data/cubicweb.form.css | formulaires | creation, inline-creation, copya, | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
25 |
| | | inline-edition, edition, muledit | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
26 |
| web/data/cubicweb.html_tree.css | style pour les widgets d'arborescence | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
27 |
| web/data/cubicweb.ie.css | dédié aux comportements de Internet Explorer | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
28 |
| web/data/cubicweb.iprogress.css | style pour les widgets d'avancement | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
29 |
| web/data/cubicweb.login.css | page et popup d'authentification | logform | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
30 |
| web/data/cubicweb.mailform.css | style utilisé dans les formulaires d'envoi de mail | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
31 |
| web/data/cubicweb.preferences.css | style pour la page des préférences utilisateurs | systemepropertiesform | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
32 |
| web/data/cubicweb.print.css | style dédié à l'impression | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
33 |
| web/data/cubicweb.schema.css | style dédié au schéma de l'application | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
34 |
| web/data/cubicweb.suggest.css | surcharge utilisée pour les suggestions | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
35 |
| web/data/cubicweb.tablesorter.css | surcharge pour le tri dans les tableau | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
36 |
| web/data/cubicweb.tableview.css | surcharge pour le tri sélectif | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
37 |
| web/data/cubicweb.timetable.css | style pour le widget Timetable | timetable | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
38 |
| web/data/jquery.autocomplete.css | surcharge pour le widget `jQuery autocompleter`_ | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
39 |
| web/data/jquery.treeview.css | surcharge pour le widget `jQuery treeview`_ | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
40 |
| web/data/pygments.css | style pour la coloration des blocs de code | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
41 |
| web/data/timeline-bundle.css | surcharge du `MIT Simile Timeline Web Widgets`_ | TimelineWidget | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
42 |
| web/data/ui.tabs.css | surcharge pour le widget Tabs de `jQuery UI`_ | | |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
43 |
+--------------------------------------+----------------------------------------------------+-----------------------------------+ |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
44 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
45 |
.. _MIT Simile Exhibit Web Widgets: http://code.google.com/p/simile-widgets/wiki/Exhibit |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
46 |
.. _MIT Simile Timeline Web Widgets: http://code.google.com/p/simile-widgets/wiki/Timeline |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
47 |
.. _jQuery autocompleter: http://www.dyve.net/jquery/?autocomplete |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
48 |
.. _jQuery treeview: http://plugins.jquery.com/project/treeview |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
49 |
.. _jQuery UI: http://docs.jquery.com/UI |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
50 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
51 |
D'une manière générale, si vous réutiliser un nom de fichier existant, vous écrasez le contenu du fichier d'origine. |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
52 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
53 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
54 |
Changer les feuilles de styles |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
55 |
------------------------------ |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
56 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
57 |
Configuration statique |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
58 |
~~~~~~~~~~~~~~~~~~~~~~ |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
59 |
Dans les sources de votre nouveau cube, vous devez éditer le fichier *data/external_resources* et définir la variable de configuration: |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
60 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
61 |
# CSS stylesheets to include in HTML headers |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
62 |
# uncomment the line below to use template specific stylesheet |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
63 |
STYLESHEETS = DATADIR/cubicweb.css |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
64 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
65 |
Les styles sont définis dans le fichier external_resources par 3 variables: |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
66 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
67 |
- la variable STYLESHEETS est défine pour tous les types de médias |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
68 |
- la variable STYLESHEETS_PRINT sont les styles applicables pour l'impression |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
69 |
- la variable IE_STYLESHEETS s'appliquent uniquement aux versions d'Internet Explorer |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
70 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
71 |
En copiant le fichier d'origine **cubicweb.css**, il est alors possible de modifier le gabarit de base du framework CubicWeb. |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
72 |
Il est également possible de réutiliser le fichier d'origine. |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
73 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
74 |
En créant un nouveau fichier **cubes.(le_nom_du_cube).css** dans le répertoire **data/** et en ajoutant une directive css @import, il est possible de réutiliser les styles définis par défaut: |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
75 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
76 |
@import url("cubicweb.css"); |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
77 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
78 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
79 |
Chargement dynamique de feuilles de style dans vos vues |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
80 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
81 |
Il est possible de charger des css spécifiques pour une vue par l'utilisation de la méthode add_css(): |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
82 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
83 |
self.req.add_css('mon_cube.css') |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
84 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
85 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
86 |
Les ressources graphiques de base |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
87 |
--------------------------------- |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
88 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
89 |
Vous pouvez changer certaines ressources graphiques comme: |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
90 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
91 |
- le logo du site: |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
92 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
93 |
# path to the logo (relative to the application main script, seen as a |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
94 |
# directory, hence .. when you are not using an absolute path) |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
95 |
LOGO = DATADIR/logo.png |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
96 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
97 |
- la 'favicon' du site: |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
98 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
99 |
FAVICON = DATADIR/favicon.ico |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
100 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
101 |
- le logo des flux RSS: |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
102 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
103 |
RSS_LOGO = DATADIR/rss.png |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
104 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
105 |
- l'icône permettant l'appel au widget 'calendrier': |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
106 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
107 |
CALENDAR_ICON = DATADIR/calendar.png |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
108 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
109 |
- l'icône utilisée pour la validation d'une recherche: |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
110 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
111 |
SEARCH_GO = DATADIR/go.png |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
112 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
113 |
- l'icône d'aide en ligne: |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
114 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
115 |
HELP = DATADIR/help.png |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
116 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
117 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
118 |
Ajouter vos scripts javascripts |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
119 |
------------------------------- |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
120 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
121 |
Configuration statique |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
122 |
~~~~~~~~~~~~~~~~~~~~~~ |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
123 |
Vous devez surcharger la variable JAVASCRIPTS dans le fichier *data/external_resources* de votre cube. |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
124 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
125 |
Chargement dynamique de script javascript dans vos vues |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
126 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
127 |
Il est possible de charger vos scripts par la méthode add_js(): |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
128 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
129 |
self.req.add_js('mon_script.js') |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
130 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
131 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
132 |
Problèmes connus |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
133 |
---------------- |
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
134 |
|
4e5bac6f15d1
FIXME where to put the file ?
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
diff
changeset
|
135 |
Il est important de noter que la méthode de chargement dynamique ne marche pas avec les widgets Ajax. Vos fichiers devront déjà être au préalable avoir été chargés. |