Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 870959ce

Von Sven Schöling vor mehr als 2 Jahren hinzugefügt

  • ID 870959ceba9d2d666920b83e760deb665ff2c0f5
  • Vorgänger 1f2c09df
  • Nachfolger d6a94d22

Layout: Dokumentation

Unterschiede anzeigen:

SL/Layout/Base.pm
330 330
Setting directly with C<stylesheets> and C<javascripts> is eprecated.
331 331

  
332 332

  
333
=head1 BEHAVIOUR SWITCHES FOR SUB LAYOUTS
334

  
335
Certain methods have been added to adjust behaviour in sub layouts. Most of these are single case uses.
336

  
337
=over 4
338

  
339
=item * sublayouts_by_name
340

  
341
Contains a map that holds named sublayouts. If a sublayout needs to targeted
342
directly, the compositing layout needs to add it here. Initially introduced for
343
the ActionPlan.
344

  
345
=item * webpages_path
346

  
347
Overrides the default webpages path "templates/webpages". Used for mobile and design40 styles.
348

  
349
Note that this does not have fallback behaviour by default. It is intended for
350
stylesheets where the templates are so incompatible that a complete fork of the
351
templates dir is sensible.
352

  
353
=item * allow_stylesheet_fallback
354

  
355
Defaults to true. The default behaviour is that stylesheets not found in the
356
stylesheet path of the user will fallback to files found in css/. This is
357
usually desirable for shared stuff like common.css, which contains behaviour
358
styling. If a stylesheet comes from a separate generator, this can be used to
359
turn falllback off. Files can still be included with the complete path though.
360
A request for "common.css" would not find "css/common.css", but a request for
361
"css/common.css" would be found.
362

  
363
Also see the next section L</GORY DETAILS ABOUT JAVASCRIPT AND STYLESHEET OVERLOADING>
364

  
365
=back
366

  
367

  
368

  
333 369
=head1 GORY DETAILS ABOUT JAVASCRIPT AND STYLESHEET OVERLOADING
334 370

  
335 371
The original code used to store one stylesheet in C<< $form->{stylesheet} >> and

Auch abrufbar als: Unified diff