Browse Source

make template includion optional

master
Dom SP 3 years ago
parent
commit
8df24c298f
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      app/modules/filesinfolders.php
  2. +1
    -0
      main.cfg.sample

+ 4
- 0
app/modules/filesinfolders.php View File

@@ -141,6 +141,10 @@ class FilesInFolders {
$str
);
}
$includeTemplates = array_key_exists('includeTemplates', $this->config)
? $this->config['includeTemplates']
: $f3->get('includeTemplates') ? : FALSE
;
foreach($this->structs[$domain_key]['tpl'] as $key=>$file) {
$str = \Template::instance()->render(substr($file,7));
$str = self::linkify($str);

+ 1
- 0
main.cfg.sample View File

@@ -24,6 +24,7 @@ title=Title of new Page
hideFromSearchEngines=true
bulkIncludePic=false
bulkIncludeAudio=false
includeTemplates=true

;; (multilingual) content configuration
;; ------------------------------------

Loading…
Cancel
Save