I've created a text field in user profile via profile module, but I was not able to see a field, if I switch in garland theme that tab and field appears regullarly.

Thanks

Marcello

CommentFileSizeAuthor
#3 lost foot.jpg222.99 KBAnonymous (not verified)
#3 foot ok.jpg228.38 KBAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gtsopour’s picture

Assigned: Unassigned » gtsopour
Issue tags: +journal crunch

Hello Marcello

you are absolutely right with your issue report. This problem caused from non-printing of $tabs2. Follow the instructions below to fix your issue,

1. Add to your template.php file the code

/**
 * Override or insert PHPTemplate variables into the templates.
 */
function phptemplate_preprocess_page(&$vars) {
  $vars['tabs2'] = menu_secondary_local_tasks();
}

2. then, print $tabs2 at your page.tpl.php file (replace #content div with following code)

.
.
.
	<!-- Content. -->
    <div id="content">
    
		<?php if ($is_front) {
            print $messages;
            print $tabs;
			if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif;
            print $content;
         } else { ?>
            <div id="colLeft">
            
                <?php print $messages;?>
                <?php print $tabs;?>
                <?php if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?>
                <?php print $content;?> 
                
            </div><!-- EOF: #main -->
            
            <div id="colRight">
                 
                <?php print $sidebar;?>
    
            </div><!-- EOF: #sidebar -->
         <?php }  ?>

    </div><!-- EOF: #content -->
.
.
.

Finally, in order to see tabs2 you should clear your cache through admin/settings/performance.

Marcello, i committed those changes, so will be included in next Journal Crunch release.

Thanks

Anonymous’s picture

Status: Active » Fixed

Thank you for your replay, the code works fine! ops sorry look next post!

Regards

Marcello

Anonymous’s picture

Status: Fixed » Active
FileSize
228.38 KB
222.99 KB

With previous code there is a problem with footer I think, look attached .jpg.

Regards

Marcello

Ragmop’s picture

Replaced the #content section with your code and it worked perfectly. Thank you!