Bonjour j'aimerai savoir s'il y a des personnes qui ont deja utilise Twig et les themes de Pico CMS ? j'essaie de changer le theme par defaut par le theme magazine https://github.com/BesrourMS/magazine mais rien n'y fais;
J'ai pourtant suivi correctement la demarche. Changer le config.php en ajoutant magazine a config/theme ajouter les fichiers index.md et page.md dans un dossier content que j'ai créée a la place du content-sample mais rien ne s'affiche et également mes fichiers que je modifie et le dossier que je créais n'apparait pas dans Atom est ce normal ?
Please j'ai besoin d'aide svp
une image de l'arbo de mon site
et mon fichier config.php
<?php
/**
* Pico configuration
*
* This is the configuration file for {@link Pico}. It comes loaded with the
* default values, which can be found in {@link Pico::getConfig()} (see
* {@path "lib/Pico.php"}).
*
* To override any of the default settings below, copy this file to
* {@path "config/config.php"}, uncomment the line, then make and
* save your changes.
*
* @author Gilbert Pellegrom
* @link http://picocms.org
* @license http://opensource.org/licenses/MIT The MIT License
* @version 1.0
*/
/*
* BASIC
*/
// $config['site_title'] = 'Pico'; // Site title
// $config['base_url'] = ''; // Override base URL (e.g. http://example.com)
// $config['rewrite_url'] = null; // A boolean indicating forced URL rewriting
/*
* THEME
*/
$config['theme'] = 'magazine'; // Set the theme (defaults to "default")
$config['twig_config'] = array( // Twig settings
'cache' => false, // To enable Twig caching change this to a path to a writable directory
'autoescape' => false, // Auto-escape Twig vars
'debug' => false // Enable Twig debug
);
/*
* CONTENT
*/
$config['date_format'] = '%D %T'; // Set the PHP date format as described here: http://php.net/manual/en/function.strftime.php
$config['pages_order_by'] = 'date'; // Order pages by "alpha" or "date"
$config['pages_order'] = 'asc'; // Order pages "asc" or "desc"
$config['content_dir'] = 'content/'; // Content directory
$config['content_ext'] = '.md'; // File extension of content files to serve
/*
* TIMEZONE
*/
$config['timezone'] = 'UTC'; // Timezone may be required by your php install
/*
* PLUGINS
*/
$config['DummyPlugin.enabled'] = false; // Force DummyPlugin to be disabled
/*
* CUSTOM
*/
$config['custom_setting'] = 'Hello'; // Can be accessed by {{ config.custom_setting }} in a theme
$config['author'] = 'Your Name';
$config['authordescription'] = 'Web Developer';
$config['authortwitter'] = 'https://twitter.com/YourUsername';
$config['authorfacebook'] = 'https://facebook.com/YourPage';
$config['authorinstagram'] = 'https://www.instagram.com/YourUsername';
$config['authorimage'] = 'http://yoursite.com/images/yourphoto.jpg';
$config['numPerPage'] = 16; // Number of posts on front page
- Edité par Heysabbinah 29 juillet 2016 à 16:14:56
#Peace and #LoveCode
integrer un theme Twig et Pico CMS
× Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
× Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.