When you select a default template in the content type settings the it will be stored correctly but the gui does not show the selected value.

I changed the following line in the function 'custom_node_template_form_node_type_form_alter':

$nodetemplate = $form['#node']->nodetemplate;
$nodetemplate = variable_get('nodetemplate_' . $form['#node_type']->type, 'default');

I don’t know if it’s correct, but it works in my case.

Comments

WebNewCastle’s picture

Thanks for posting this. I'm sorry I haven't had time with the holidays and other things to look at this yet - I will try to find time to do so soon.

WebNewCastle’s picture

Status: Active » Fixed

Hi Tekl,

Sorry for the delay. I tested this out and find the issue you indicated. And your suggestion above seems to rectify the issue. I committed the change and it should show in the next update of the dev version.

Thanks again,

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.