Commit fb946d0c authored by Mike Rockétt's avatar Mike Rockétt

don’t allow adding fields to the home template

parent ab9befbc
File added
......@@ -35,11 +35,14 @@ class MarkupSitemapConfig extends ModuleConfig
// Gather a list of templates
$allTemplates = $this->templates;
foreach ($allTemplates as $template) {
// exclude system fields
// Exclude system templates
if ($template->flags & Template::flagSystem) {
continue;
}
$templates[] = $template;
// Also exclude the home template
if ($template->id !== $this->pages->get(1)->template->id) {
$templates[] = $template;
}
}
if ($this->input->post->submit_save_module) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment