For a site builder/coder like me, editing the slideshow is fairly trivial, but for a client/user this would be impossible. This is a great looking theme and I see you are doing work on it. Thanks for releasing it. I am trying it out for an e-commerce store.
What would be the chances of implementing a slideshow interface to the theme itself, similar to http://drupal.org/project/marinelli
This would enable clients to change the images and text on their slideshow very easily.
I made this a new issue instead of adding to this one: http://drupal.org/node/1219684 because this is a feature request and I suspect others may want it as well.
Comment | File | Size | Author |
---|---|---|---|
#17 | denisvs_corporateclean_v1_0.patch | 7.09 KB | DenisVS |
#16 | content_type_slider.png | 35.59 KB | DenisVS |
#16 | page.tpl_.php_.tgz | 2.26 KB | DenisVS |
#7 | Untitled-1.jpg | 188.15 KB | program3r |
Comments
Comment #1
KirstenLangholz CreditAttribution: KirstenLangholz commentedI would love this feature, too. Since my customers also would like to change the slideshow settings by themselves frequently.
Comment #2
damiandab CreditAttribution: damiandab commentedLook my post about views slideshow: http://drupal.org/node/1219684
I hope it will help.
Comment #3
bhosmer CreditAttribution: bhosmer commentedRight, but to allow a simple site user to do this would be disastrous. I understand and can update the slideshow, but it would be a great feature and addition to the theme if site managers were able to upload their own images and add them to the theme easily, which was the idea behind my original feature request.
Comment #4
damiandab CreditAttribution: damiandab commentedYou can always create content type slideshow and give site manager permission to edit it. "Views slideshow" is set by you and site manager doesn't have to see it. With content type the system is more flexible, you can add to image field effects like imagecache actions or image cropping, so the images will be processed directly on the server and site manager doesn't have to carry about preparation of images (size, dimension, underlay, watermark).
Giving permission the site manager to theme settings isn't good idea, in theme settings you have logo upload, favicon upload and another presets that site manager or editor shouldn't see.
Comment #5
bhosmer CreditAttribution: bhosmer commentedHave you seen how Marinelli does this? It works in a similar fashion where a simple user can change the slide show.
It would be a nice addition to this great looking theme.
Comment #6
TonyAngelo CreditAttribution: TonyAngelo commentedI have used damiandab's method and it works great. As he said, in Marinelli the end user would need access to the theme to be able to change the slideshow content. Using his method they only need to be able to create right content type.
Comment #7
program3r CreditAttribution: program3r commentedI wrote a replacement for the slideshow.php if anyone is interested. It allows people to change the slides based on having a specific role. It also makes sure the user cant delete the last slide. I wrote it for a customer of mine and would be willing to hand it out since people need it. I just threw this image together real quick. It's not the best but its all I had time for, just be glad for free code.
Comment #8
masala-1 CreditAttribution: masala-1 commentedHi program3r. This looks very promising and useful indeed. Thanks for sharing your hard work.
However, I am not too sure where to implement it? I had a quick search through for a slideshow.php in the corporate clean theme folders but couldn't find anything. Sorry if I am missing something obvious. As you can probably tell I am a complete PHP novice!
Comment #9
otcassetmgmt CreditAttribution: otcassetmgmt commentedI am in the same boat not sure how to implement this code do I need to create a module and hook into the menu system? I am very weak on theme coding.
Comment #10
alexandreracine CreditAttribution: alexandreracine commentedIs this corrected in the latest version? Let us know if not. Closing for now.
Comment #11
bhosmer CreditAttribution: bhosmer commented@alexandreracine I think you are a little quick here closing issues out.
No, this hasn't been fixed, at least with 7.x-2.2.
Comment #12
stewarta CreditAttribution: stewarta commentedI don't think this issue is actually closed alexandreracine.
Comment #13
FreeXenon CreditAttribution: FreeXenon commentedYea, I would like a way to change the slideshow. Having it show sample content is not so useful.
Like the others said, a theme based interface would be good, or just giving a theme option to remove it altogether, and have that area set up as a region so we can add a views slideshow. Perhaps have an option to disable the slideshow CSS too incase that region will not be used that way.
Comment #14
shulmda CreditAttribution: shulmda commentedI spent some time on this and the post from program3r was EXTREMELY helpful it getting started. There are a few things that you need to allow for if you want to do this. 1st, you need to create a gallery table in your database. program3r didn't mention this, but considering how helpful the code is, it is easily forgiven. It is bit clearer if you look at the code. Here is a sample database creation DDL that I created. Please note that I added some columns for language and and weight support so that you can control the language and the order of the slider items. There isn't a provision for the "Style" of the slider items (I don't need it, sorry). Also, you should note that the code that program3r was written for an earlier version of Drupal. The database connection mode in Drupal 7 is different. 3rd, people are wondering where the slideshow file goes. Well, I figured that out, it goes INSIDE of page.tpl.php between
PLEASE do not simply copy and paste the code and expect it to work. I had to do some major surgery to get it working in Drupal 7. However, thanks to program3r I had a HUGE head start.
CREATE TABLE `gallery` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`link_location` varchar(255) NOT NULL DEFAULT '',
`description` varchar(2000) NOT NULL DEFAULT '',
`main_title` varchar(255) NOT NULL DEFAULT '',
`sub_title` varchar(255) NOT NULL DEFAULT '',
`title3` varchar(255) NOT NULL DEFAULT '',
`image_loc` varchar(255) NOT NULL DEFAULT '',
`language` varchar(255) NOT NULL DEFAULT '',
`weight` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
Comment #15
shulmda CreditAttribution: shulmda commentedSorry, it seems that in my comment, the between is getting cut off. The code should be between (hash)slideshow and EOF: (hash) slider-controls-wrapper
Comment #16
DenisVSThis is a my variant of the edited by user slider.
You should create the new content type with name "slider".
Next, add new fields inside it:
slider_alignment field settings are:
On value = Right
Off value = Left
Now you should download archive page.tpl_.php_.tgz and extract content to theme directory, over file page.tpl.php.
Using of the mod is very simple.
Just add new node with "slider" content type.
Field "field_slider_link" should consist the link to the target url, e.g.: "node/2".
"field_slider_link_text" is a text for slider button.
"field_slider_alignment" determines position of image in slider.
Comment #17
DenisVSThis is a patch.
Comment #18
tropicalman59 CreditAttribution: tropicalman59 as a volunteer and commentedI used Dennis approach, but also added a field to determine if the link should open in a new page.
"slider link action" field_slider_link_action List (text) Check boxes/radio buttons
Allowed Values list
_blank|New Page
_self|Current Page
Then I modified the page.tpl.php to add target to the anchor:
Comment #19
apaderno