equal
deleted
inserted
replaced
1 Building my photos web site with |cubicweb| part V: let's make it even more user friendly |
1 Building my photos web site with |cubicweb| part V: let's make it even more user friendly |
2 ========================================================================================= |
2 ========================================================================================= |
3 |
|
4 We'll now see how to benefit from features introduced in 3.9 and 3.10 releases of CubicWeb |
|
5 |
3 |
6 .. _uiprops: |
4 .. _uiprops: |
7 |
5 |
8 Step 1: tired of the default look? |
6 Step 1: tired of the default look? |
9 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
7 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
27 |
25 |
28 .. sourcecode:: python |
26 .. sourcecode:: python |
29 |
27 |
30 LOGO = data('logo.jpg') |
28 LOGO = data('logo.jpg') |
31 |
29 |
32 The uiprops machinery has been introduced in `CubicWeb 3.9`_. It is used to define |
30 The uiprops machinery is used to define some static file resources, |
33 some static file resources, such as the logo, default Javascript / CSS files, as |
31 such as the logo, default Javascript / CSS files, as well as CSS |
34 well as CSS properties (we'll see that later). |
32 properties (we'll see that later). |
35 |
33 |
36 .. Note:: |
34 .. Note:: |
37 This file is imported specifically by |cubicweb|, with a predefined name space, |
35 This file is imported specifically by |cubicweb|, with a predefined name space, |
38 containing for instance the `data` function, telling the file is somewhere |
36 containing for instance the `data` function, telling the file is somewhere |
39 in a cube or CubicWeb's data directory. |
37 in a cube or CubicWeb's data directory. |
371 friends... |
369 friends... |
372 |
370 |
373 |
371 |
374 |
372 |
375 .. _`CubicWeb 3.10`: http://www.cubicweb.org/blogentry/1330518 |
373 .. _`CubicWeb 3.10`: http://www.cubicweb.org/blogentry/1330518 |
376 .. _`CubicWeb 3.9`: http://www.cubicweb.org/blogentry/1179899 |
|
377 .. _`here`: http://webdesign.about.com/od/css3/f/blfaqbgsize.htm |
374 .. _`here`: http://webdesign.about.com/od/css3/f/blfaqbgsize.htm |