Hi, Thanks for the amazing base theme!

I'm stumped with a seemingly simple task... I need to create a custom tpl.php file specific to a custom content type's edit page.

Is this possible? Am I just missing something on the naming convention? I tried page--foo--edit.tpl.php without success. I'm guessing I either need to reference this in the template.php file or I'm naming it incorrectly.

Any assistance would be greatly appreciated. I'm not too strong in PHP yet, but I can get around when need be. Thanks so much.

Comments

kvoltz’s picture

Hey Everyone, I'm still a bit lost on this. Any ideas? Could anyone point me in the right direction?

Thanks for your help.

andregriffin’s picture

Perhaps try page--node--add--foo.tpl.php

kvoltz’s picture

Hi Andre, thanks for the quick response.

I just gave that a shot without success.

This is what I have in the template file:


function crsarch_preprocess_page(&$variables) {
 if (!empty($variables['node'])) {
   $variables['theme_hook_suggestions'][] = 'page__' .
$variables['node']->type;
 }
}

I'm not sure if that was in there with the original site, or if I added that. Again, my PHP skills are limited at best - mostly copy pasting with some very low-level understanding.

Thanks again for all your help.