Closed (fixed)
Project:
Professional Theme
Version:
7.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Reporter:
Created:
18 Apr 2013 at 14:57 UTC
Updated:
20 Jun 2013 at 20:00 UTC
I can't find a way to add additional slides or just removing existing slides
Comments
Comment #1
mheinke commentedhi!
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
Comment #2
Szerszen commentedIt'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.
Comment #3
mheinke commentedthank you @Szerszen for the how to.
thats exactly how you need to do it.