Revision eeac2715
Von Sven Schöling vor etwa 2 Jahren hinzugefügt
SL/Layout/Base.pm | ||
---|---|---|
334 | 334 |
Setting directly with C<stylesheets> and C<javascripts> is eprecated. |
335 | 335 |
|
336 | 336 |
|
337 |
=head1 BEHAVIOUR SWITCHES FOR SUB LAYOUTS |
|
338 |
|
|
339 |
Certain methods have been added to adjust behaviour in sub layouts. Most of these are single case uses. |
|
340 |
|
|
341 |
=over 4 |
|
342 |
|
|
343 |
=item * sublayouts_by_name |
|
344 |
|
|
345 |
Contains a map that holds named sublayouts. If a sublayout needs to targeted |
|
346 |
directly, the compositing layout needs to add it here. Initially introduced for |
|
347 |
the ActionPlan. |
|
348 |
|
|
349 |
=item * webpages_path |
|
350 |
|
|
351 |
Overrides the default webpages path "templates/webpages". Used for mobile and design40 styles. |
|
352 |
|
|
353 |
Note that this does not have fallback behaviour by default. It is intended for |
|
354 |
stylesheets where the templates are so incompatible that a complete fork of the |
|
355 |
templates dir is sensible. |
|
356 |
|
|
357 |
=item * allow_stylesheet_fallback |
|
358 |
|
|
359 |
Defaults to true. The default behaviour is that stylesheets not found in the |
|
360 |
stylesheet path of the user will fallback to files found in css/. This is |
|
361 |
usually desirable for shared stuff like common.css, which contains behaviour |
|
362 |
styling. If a stylesheet comes from a separate generator, this can be used to |
|
363 |
turn falllback off. Files can still be included with the complete path though. |
|
364 |
A request for "common.css" would not find "css/common.css", but a request for |
|
365 |
"css/common.css" would be found. |
|
366 |
|
|
367 |
Also see the next section L</GORY DETAILS ABOUT JAVASCRIPT AND STYLESHEET OVERLOADING> |
|
368 |
|
|
369 |
=back |
|
370 |
|
|
371 |
|
|
372 |
|
|
337 | 373 |
=head1 GORY DETAILS ABOUT JAVASCRIPT AND STYLESHEET OVERLOADING |
338 | 374 |
|
339 | 375 |
The original code used to store one stylesheet in C<< $form->{stylesheet} >> and |
Auch abrufbar als: Unified diff
Layout: Dokumentation