I accidently added a ramdom Image URL in the image url Text Area. The unwanted image shows up but now I wanted to change it to my real image and but the URL in the Text Area is gone. In fact its completely empty and I can't edit.

Now the theme is stock that image. See screenshots to clarification.

Thank you.

Ceci

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mheinke’s picture

did you try saving with your new url in the box?

ceci123’s picture

I have no problem saving new URLs. The problem is if I want to remove it all together or if I mistyped something and can't edit b/c the textArea is empty as showing on the this link.

Based on its behavior I believe this is a bug. There is no reason the textarea should be empty when it actually has content on it.

mheinke’s picture

yes but one thing to note is that unless you remove the code for the slide from the template and theme-settings you are always going to have 3, you cant remove slides from the UI (yet)

im going to look into why the get-setting isnt working

jurgenhaas’s picture

FileSize
689 bytes

I'm having the same issue and attached is a patch that would solve the problem for the first image URL. That should be replicated for slide 2 and 3 as well.

mheinke’s picture

rerolled the patch to include all settings

jurgenhaas’s picture

+++ b/theme-settings.php
@@ -81,6 +81,7 @@ function professional_theme_form_system_theme_settings_alter(&$form, &$form_stat
+	'#default_value' => theme_get_setting('slide1_image_url'),

There is a leading tab instead of spaces and I wonder why the second parameter got removed from theme_get_settings()? It is not always the case, that the settings get edited where this theme is also the default theme at the same time. So, it should be made explicit.

mheinke’s picture

Status: Active » Patch (to be ported)
mheinke’s picture

Status: Patch (to be ported) » Closed (fixed)