I've placed the 2.x version of Acquia Marina in my sites/all/themes folder. I've created a sub-theme MYAM in that same folder.

When I enable MYAM, I am not able to see any Theme Settings on the theme (MYAM) configuration page.

I noticed that on the 2.x version, the theme-setting.php uses the acquia_marina_default_theme_settings() function whereas the 1.9 version used phptemplate_settings($saved_settings). The Drupal Theme Handbook says:

The themeEngineName_settings() form is preferred since it allows others to more easily create derivative themes based on your theme.

Could this change in function have anything to do with the disappearing theme settings?

This issue was originally bundled with another issues here: #695132: Upgrade problems

Thanks for any help on this.

Comments

mradcliffe’s picture

Confirming this issue as well.

markabur’s picture

Title: Theme settings not displaying in sub-theme » Theme settings and "read more" not displaying in sub-theme
Version: 6.x-2.x-dev » 6.x-2.0

same here... i don't actually need the settings to be available in my subtheme, i just want the "read more" links to show up in my subtheme. they show fine in acquia marina, but do not show up at all in my subtheme. $links is getting created but the title is empty.

[links] => Array
    (
        [node_read_more] => Array
            (
                [title] => 
                [attributes] => Array
                    (
                        [class] => readmore-item
                    )

                [html] => 1
            )

    )

i know there is a core patch somewhere that may address this, but i'm hoping to fix it inside my subtheme somehow (the whole reason for creating the subtheme in the first place was to avoid hacking core or contrib!).

markabur’s picture

ok, following the theme-settings.php example in zen, i now have a working acquia_marina sub-theme settings page, and "read more" reappears as well. this goes in theme-settings.php in my subtheme:

<?php
// $Id$

include_once './' . drupal_get_path('theme', 'acquia_marina') . '/theme-settings.php';

/**
 * Implementation of THEMEHOOK_settings() function.
 *
 * @param $saved_settings
 *   An array of saved settings for this theme.
 * @return
 *   A form array.
 */
function example_settings($saved_settings) {

  // Get the default values from the .info file.
  $defaults = acquia_marina_default_theme_settings();

  // Merge the saved variables and their default values.
  $settings = array_merge($defaults, $saved_settings);

  /*
   * Create the form using Forms API: http://api.drupal.org/api/6
   */
  $form = array();

  // Add the base theme's settings.
  $form += acquia_marina_settings($saved_settings, $defaults);

  // Return the form
  return $form;
}

theeber1’s picture

I copy the theme-settings.php file to the sub-them directory and changed all the lines with reference to: function acquia_marina_default_theme_settings() and replaced the words acquia_marina with my sub-theme name.
example:

my sub theme name is "sub_acquia_theme"

the lines you are looking for start with function

function acquia_marina_default_theme_settings()

I replaced them to:

function sub_acquia_marina_default_theme_settings()
where sub_acquia_marina is your sub theme name.

Then I when to administer-themes-configure and I was able to see all the advance settings... where you can turn on the breadcrumbs, and the read more links....

note: there are several lines to change...

carlitus’s picture

subs

stephthegeek’s picture

Category: bug » support
Status: Active » Fixed

I think this is then a support/documentation issue when subtheming, rather than a theme bug?

markabur’s picture

Status: Fixed » Closed (fixed)

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

atmospherix’s picture

Version: 6.x-2.0 » 6.x-3.1
Status: Closed (fixed) » Active

I'm having this same problem in 3.1 - have tried the theme-settings.php fix above but that doesn't seem to do anything.

goody815’s picture

Status: Active » Closed (won't fix)