Skip to content

Ignored templates and TemplateFile class #6

Description

@mminglis

Hi, I've had an issue with Seo Maestro module which uses the TemplateFile class to render output from a template stored in the module folder. This line:

if (in_array($templateFile->page->template->name, $ignoredTemplates)) {
checks against current page template which doesn't work in this situation. It could be changed to the below, although I am not sure if this is the best way to get the file name:

if (in_array(basename($templateFile->filename,".php"), $ignoredTemplates)) {
  return;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions