I can't find a way to add additional slides or just removing existing slides

Comments

mheinke’s picture

Assigned: Unassigned » mheinke

hi!

currently this is a hassle unfortunately. i am working to make a better admin section.

you will need to go in and modify the page.tpl.php.

the next release will have better slider controls

Szerszen’s picture

It's enough for now to add strip_tags() in page.tpl.php:
as example:
original line:
$slide1_img = check_markup(theme_get_setting('slide1_image_url','professional_theme'));

modified line:
$slide1_img = strip_tags(check_markup(theme_get_setting('slide1_image_url','professional_theme')));

lines to modify: 103,109,115

If you modify image url in page.tpl.php too, you can use just relative path in image url field, as example:
sites/default/files/your_slide_image.png

lines to modify:
original:
<img src="<?php print $slide1_img; ?>" class="slide-image" alt="<?php print $slide_alt; ?>" /> </a>

modified:
<img src="<?php print base_path() . $slide1_img; ?>" class="slide-image" alt="<?php print $slide_alt; ?>" /> </a>

Lines to modify:
139, 160, 181

but it will be just easier for the future if in administration theme panel, the textarea field for image url will be changed to just simple text field. Than default <p></p> tags, won't be added.
There is of course stil problem with "resave" theme setting with banners different than default, but I think that the main problem is in using this textarea because urls for slides and alt tag field are saving information properly.

mheinke’s picture

Status: Active » Fixed

thank you @Szerszen for the how to.

thats exactly how you need to do it.

Status: Fixed » Closed (fixed)

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