Download & Extend

acquia_marina_theme hook for creating a theme for a cck type doesn't take

Project:Acquia Marina
Version:6.x-1.5
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

This works for a different theme I tried, so I am guessing this fails in acquia_marina because of something to do with the theme. I created a new cck type called 'test' and attempted to override the input/edit screen for this node type by following an example. Here is the code I created:
in template.php:

<?php
function acquia_marina_theme () {
  return array (
'test_node_form' => array(
      
'arguments' => array('form' => NULL),
      
'template' => 'test-node-form',
      ),
   );
}

function
acquia_marina_preprocess_test_node_form(&$vars) {
 
$vars['whole_form'] = drupal_render($vars['form']);
}
?>

in test-node-form.tpl.php:

<div class="test-node-form">
        <?php
               
echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%";
                print (
$whole_form);
       
?>

</div>

I never see this version of the form in acquia_marina, I only see the original default form.
Could someone explain how to create a different theme for the input/edit screen for a cck type using this theme?
thank you!

Comments

#1

Status:active» closed (won't fix)

#2

I want to know too.

In my case , I try to override the login page.