Changeset 1360 in products for quintagroup.themetemplate/trunk/quintagroup/themetemplate/README.txt
- Timestamp:
- Nov 3, 2009 6:44:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.themetemplate/trunk/quintagroup/themetemplate/README.txt
r1024 r1360 234 234 paster addcontent -a 235 235 ... 236 css_dtml_skin: A DTML file in skin layer with CSS registration 236 237 css_resource: A Plone 3 CSS resource template 237 238 ... … … 416 417 417 418 419 Adding CSS resource as dtml-file into skins layer 420 ================================================= 421 422 This template actually absolutely same to the previouse one, but layer_name 423 variable added to point in which skin layer css dtml-file should be added to. 424 And, of course, css resource added into pointing *skins/<layer_name>/<css_reseource_name>.dtml* file. 425 426 This subtemplate has several benefits before registering css as resource layer: 427 - in dtml file you can use power of dtml language 428 - this resource can be overriden by customer if he needs that 429 430 IMPORTANT: 431 For add css resource in registered skin layer - you should use this subtemplate 432 in conjunction with *skin_layer* one. 433 434 435 Use *css_dtml_skin* subtemplate. 436 437 >>> paster("addcontent --no-interactive css_dtml_skin") 438 paster addcontent --no-interactive css_dtml_skin 439 Recursing into profiles 440 ... 441 Recursing into skins 442 ... 443 444 This template adds main.css.dtml file into skins/skin_layer folder 445 446 >>> 'main.css.dtml' in os.listdir('skins/skin_layer') 447 True 448 449 The main.css.dtml file already prepared to use as dtml-document 450 >>> cat('skins/skin_layer/main.css.dtml') 451 /* 452 ... 453 /* <dtml-with base_properties> (do not remove this :) */ 454 ... 455 /* </dtml-with> */ 456 <BLANKLINE> 457 458 459 And cssregistry.xml profile was added into profiles/default directory with 460 registered main.css stylesheet 461 462 >>> 'cssregistry.xml' in os.listdir('profiles/default') 463 True 464 >>> cat('profiles/default/cssregistry.xml') 465 <?xml version="1.0"?> 466 <object name="portal_css"> 467 <BLANKLINE> 468 <stylesheet title="" 469 id="++resource++quintagroup.theme.ploneexample.stylesheets/main.css" 470 media="screen" rel="stylesheet" rendering="inline" 471 cacheable="True" compression="safe" cookable="True" 472 enabled="1" expression=""/> 473 ... 474 475 418 476 Adding JAVASCRIPT resource 419 477 --------------------------
Note: See TracChangeset
for help on using the changeset viewer.