Diem plugins syndication

dmBoilerplatePlugin

Html5Boilerplate recommandation for Diem

The plugin use the recommandation from Html5Boilerplate by modifying the .htaccess file, adding the assets (CSS & JS), and changing the layout.
Compatible with [Diem 5.1] (not tested for other versions).

Installation

  • In a console, from your project root dir, run:
git clone git://github.com/sv1l/dmBoilerplatePlugin.git plugins/dmBoilerplatePlugin  
  • In config/ProjectConfiguration.class.php, add dmBoilerplatePlugin to the list of enabled plugins:
class ProjectConfiguration extends dmProjectConfiguration
{  
  public function setup()  
  {  
    parent::setup();  
 
    $this->enablePlugins(array(  
      // your enabled plugins  
      'dmBoilerplatePlugin'  
    ));  
  • In a console, from your project root dir, run:
php symfony dm:setup  

The plugin use the recommandation from Html5Boilerplate by modifying the .htaccess file, adding the assets (CSS & JS), and changing the layout.
Compatible with [Diem 5.1] (not tested for other versions).

Change the front layout

Set the front layout helper class service to dmBoilerplatePluginFrontLayoutHelper



This can be done in the front/config/dm/services.yml

# front/config/dm/services.yml  
parameters:  

  layout_helper.class:    dmBoilerplatePluginFrontLayoutHelper  



Or in the front layout template front/modules/dmFront/templates/layout.php

// @var dmBoilerplatePluginFrontLayoutHelper  
$helper = $sf_context->get('layout_helper',  
  'dmBoilerplatePluginFrontLayoutHelper');  

// ... default template code  

Confiure the plugin

The plugin configuration can be set in the ProjectConfiguration class via a configureBoilerplate user method.
It can also be configured in the front/config/app.yml configuration file, or via a connection to the dm_boilerplate.configuration event.
The description on how to achieve that is described below with the plugin default configuration.



The plugin configuration instance is passed in as its argument, or can be retrieved through the getPluginConfiguration method

public function configureBoilerplate(  
  dmBoilerplatePluginConfiguration $config)  
  {  
    // The plugin instance can also be retrieved as follow  
    //$config = $this->getPluginConfiguration('dmBoilerplatePlugin');  

    // Configure dmBoilerplatePlugin, default values  
    $config->setHtaccessModify(true);  
    $config->setHtaccessBackup('-boilerplate-backup');  
  }  



Configure via the front/config/app.yml file

# front/config/app.yml, default values  
dmBoilerplatePlugin:  
  htaccess.modify: true  
    htaccess.backup: "-boilerplate-backup"  



Configuration via dm_boilerplate.configuration event, for example in the ProjectConfiguration.
Event parameters: array('configuration' => dmBoilerplatePluginConfiguration instance)

// config/ProjectConfiguration.class.php, default values  
public function setup()  
{  
  // Connect to `dm_boilerplate.configuration`  
  // to configure the plugin later  
  $this->dispatcher->connect('dm_boilerplate.configuration',  
    array($this, 'listenToBoilerplateConfiguration'));  

  // ... previous code  

  $this->enablePlugins(array('dmBoilerplatePlugin'));  
}  

/**  
 *  Configure `dmBoilerplatePlugin` via a event listenner  
 *  @param  sfEvent $event  The event `configuration` holds the plugin  
 */  
public function listenToBoilerplateConfiguration(sfEvent $event)  
{  
  $config = $event['configuration'];  

  $config->setHtaccessModify(true); // default  
  $config->setHtaccessBackup('-boilerplate-backup'); // default  
}  
  • AerofecurceNovember 7, 2012 4:43 AM

    Veteran shoe lift users will probably be fine with 1 piece lifts but I seriously advise that the newbie makes a start with adjustable shoe or [url=http://tuibao.0551com.cn/viewthread.php?tid=316794&extra= ]My Site [/url]
    <a href=http://newslettertest.soverse.com/node/1632>CLick To View</a>
    http://www.zindapak.com/index.php?do=/blog/21624/make-christmas-a-taller-one/

  • AerofecurceNovember 16, 2012 11:13 PM

    heel Lifts and heel Lifts are the same factor, also called shoe inserts, it depends on exactly where you live within the globe or who you are talking to, I consider heel Lifts as being height increase options and heel Lifts as leg length discrepancy solutions, each obviously being shoe inserts as they are inserted into the shoe
    <a href=http://schueler.me/blogs/entry/It-Really-Is-Easy-To-Start-Looking-Tall>Click Here</a>
    http://it.six168.com/viewthread.php?tid=517310&extra=

  • PfcHtHyDGWFebruary 2, 2013 1:31 PM

    <a href=http://www.cmpa.com/man/genericviagra/#7869>generic viagra</a> generic viagra at cvs - how to buy cheap viagra online

  • XRumerTestFebruary 4, 2013 6:08 AM

    Hello. And Bye.

  • AerofecurceFebruary 21, 2013 2:41 AM

    These tips will help you choose the perfect set of shoe lifts insoles for your needs, and nonetheless permit you to be comfy all day long

    http://jackketch.com/groups/make-christmas-a-taller-1/

  • AerofecurceFebruary 24, 2013 5:36 PM

    You don’t need to suffer with leg discrepancies or pay hundreds of dollars for special shoes when you select shoe lifts

    http://hawthornsalon.com/index.php/member/27435/

  • AerofecurceFebruary 25, 2013 4:12 AM

    The use of heel Lifts can gently and gradually take the pain out of one's every day life and make walking and standing that a lot more comfortable and pain-free

    http://grayorganschi.com/index.php/member/10392/

  • IrrermBroasiaMarch 3, 2013 1:22 AM

    buy renova no prescription
    - [url=http://buycheaprenova.webs.com/]get renova no prescription
    [/url] - renova research


    <a href="http://buycheaprenova.webs.com/">order renova no prescription
    </a>

    Aid renova retinvaniqa
    renova pvt ottawa real estate
    benefits or dangers renova 0.02
    albi renova
    carl stadelhofer renova


    http://buycheaprenova.webs.com/

  • ewshtvtjMarch 30, 2013 12:36 PM

    [url=http://www.win7license.com]windows 7 professional product key[/url] You must advise all the policies to the agent or broker so to advise the insurer. [url=http://www.win8activationkey.com]windows 7 professional key[/url] Twzudxnpz [url=http://www.windows7pro.co.uk]windows 7 key[/url]
    sopihy 115896 [url=http://www.robesenligne.com/]robe de soirée[/url] 353319 [url=http://www.vestidostienda.com/]vestidos de novia 2013[/url]

  • SamiulenalMay 22, 2013 10:59 AM

    [url=http://my.moverapid.com/brahmi][img]http://my.moverapid.com/promo.gif[/img][/url]





    [size=4][url=http://my.moverapid.com/brahmi][b][color=blue]Buy [/color][color=red]Brahmi[/color][color=blue] ONLINE - click here![/color][/b][/url][/size]

Add a comment

Impossible to fetch issues for this plugin.
Impossible to get this plugin changelog.

dmBoilerplatePlugin, created on September 14, 2010 by sv1l, used by 88 projects

Fork Diem on GitHub