Note that there are some explanatory texts on larger screens.

plurals
  1. POThe page template is not loading, but the node template is loading
    primarykey
    data
    text
    <p>sys info: drupal 6 installation, with tons of modules... too many to list.</p> <p>the problem: only a certain content type will not load it's template file correctly. some nodes that would be displayed on these pages through views are making it to the markup. they are the only content that gets loaded. the template file that this content falls back on is node-event.tpl</p> <p>the objective: to load page-team.tpl.php</p> <p>template suggestions are loaded in two ways in template.php through preprocessing via</p> <pre><code>mytheme_preprocess_page(&amp;$vars, $hook) </code></pre> <p>converted from <code>_phptemplate_variables ()</code> in a drupal 5 installation.</p> <p>method 1:</p> <pre><code>if (module_exists('path')) { $alias = drupal_get_path_alias(str_replace('/edit','',$_GET['q'])); if ($alias != $_GET['q']) { $template_filename = 'page'; foreach (explode('/', $alias) as $path_part) { $template_filename = $template_filename . '-' . $path_part; $vars['template_files'][] = $template_filename; } } } </code></pre> <p>method 2:</p> <pre><code>if ($vars['node']-&gt;og_groups['0'] || preg_match('/fdl\//',$vars['node']-&gt;path) || (preg_match('/og\/manage/',$alias) || preg_match('/og\/invite/',$alias) || preg_match('/og\/users/',$alias)) || (preg_match('/node\/add/',$alias) &amp;&amp; $_GET['gids'] != '') || $vars['node']-&gt;og_description || (arg(0) == 'user' &amp;&amp; is_numeric(arg(1)))) { $vars['template_files'][] = 'page-team'; } </code></pre> <p>page-team is the tpl that is missing, and i suspect there may be an error with my code above (method 2).</p> <p>i'm attempting to load this template for all pages with the first path argument of "fdl" so site.com/fdl and all children of fdl.</p> <p>i know there are lots of possibilities. but i have a feeling the error is here. thanks for any help you can offer.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload