Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Great theme, but how to edit slideshow?
Comment | File | Size | Author |
---|---|---|---|
#12 | screenshot.png | 669.96 KB | Aptalops |
Comments
Comment #1
gtsopour CreditAttribution: gtsopour commentedHello hubbi.fillah
Corporate Clean Slideshow is fully documented at http://wiki.morethanthemes.com. Just follow this url,
http://wiki.morethanthemes.com/index.php?title=Corporate_Clean:Demonstra...
/George
Comment #2
gtsopour CreditAttribution: gtsopour commentedHello hubbi.fillah
did you get the necessary help from the documentation?
Comment #3
damiandab CreditAttribution: damiandab commentedThe slideshow is hardcoded and you can edit page.tpl.php to change the content. If you want to make possible editing of slideshow for user directly in backend you can always install "views slideshow" module. Just create new content type "slideshow", add image field and with views set the display to "slideshow".
Remember to put plugins into libraries directory (sites/all/libraries/):
- jquery.cycle
- json2
The slideshow in the theme use the same plugin (jqeury.cicle).
After that you will be able to set the same slide effects like in corporateclean theme.
Of course you will need a little css to make slideshow look like in the template.
I hope it will help.
Comment #4
pandorasbox2gb CreditAttribution: pandorasbox2gb commentedHi,
I've been trying to change the slider effect to 'turnDown'. Could someone please show me how to?
Sorry I'm very new to Jquery and Drupal. Your help will be very appreciated.
and here is the part of the code i got from the template.php
drupal_add_js(drupal_get_path('theme', 'corporateclean') . '/js/jquery.cycle.all.min.js');
$effect=theme_get_setting('slideshow_effect','corporateclean');
$effect_time=theme_get_setting('slideshow_effect_time','corporateclean')*1000;
drupal_add_js('jQuery(document).ready(function($) {
$("#slideshow").cycle({
fx: "'.$effect.'",
speed: "slow",
timeout: "'.$effect_time.'",
pager: "#slider-navigation",
pagerAnchorBuilder: function(idx, slide) {
return "#slider-navigation li:eq(" + (idx) + ") a";
},
after: onAfter
});
function onAfter(curr, next, opts, fwd){
var $ht = $(this).height();
$(this).parent().animate({height: $ht});
}
});',
array('type' => 'inline', 'scope' => 'header', 'weight' => 5)
);
Comment #5
gtsopour CreditAttribution: gtsopour commentedHello pandorasbox2gb
you can configure slideshow effect and slideshow effect time through the Corporate Clean theme settings at Home » Administration » Appearance » Corporate Clean Settings » Front Page Slideshow
So make this change from the user interface and not from the template.php file.
Thanks
/George
Comment #6
pandorasbox2gb CreditAttribution: pandorasbox2gb commentedGreat! Thank you!
Comment #7
thisissergio CreditAttribution: thisissergio commentedHello,
I'm new to Drupal. How exactly do I get to page.tpl.php to edit the bit of HTML for the slideshow?
Thanks
Comment #8
damiandab CreditAttribution: damiandab commented/sites/all/themes/corporateclean/page.tpl.php
Comment #9
gtsopour CreditAttribution: gtsopour commentedCorporate Clean theme for Drupal is fully documented here http://wiki.morethanthemes.com/index.php?title=Corporate_Clean
I changed the status of this issue to "fixed". In addition, you can find how to edit slideshow here http://wiki.morethanthemes.com/index.php?title=Corporate_Clean:Demonstra...
Comment #10
remixed CreditAttribution: remixed commentedWith the views module i can edit the display output, but how can i let views do the following:
Is there a sort of how-to for creating a view slideshow, in the same design of the standard version?
Comment #11
remixed CreditAttribution: remixed commentedI changed the status, because of my question.
Comment #12
Aptalops CreditAttribution: Aptalops commentedsorry, problem solved.
I'm new to the Drupal community - couldn't figure out how to delete my comment, so just editing.
Also, didn't mean to set priority to MAJOR.
Thanks,
A
Comment #13
gtsopour CreditAttribution: gtsopour commentedHello Aptalops,
I have encountered this issue several times before. Usually caused by the fact that a div tag is not properly closed. So, look a little more careful your implementation in your slideshow and check if all of your divs are closed.
Futhermore, i would like to ask you if your Drupal installation is online in order to help you directly through my firebug.
Thanks
George
Comment #14
gtsopour CreditAttribution: gtsopour commentedHello remixed,
you should override the view output through a view template and create inside this template the appropriate slideshow structure.
Thanks
George
Comment #15
remixed CreditAttribution: remixed commentedHello George,
Thanks for your response, I'm still new with drupal and understand how I can change the view output. I will try to change the output, but doesn't some already accomplished that? or does everyone change the slideshow manually?
Comment #16
Aptalops CreditAttribution: Aptalops commentedThat was exactly the problem George. I examined my code and found that I had commented out one of the closing div tags.
thank you,
Aptalops
Comment #17
welljuvenate CreditAttribution: welljuvenate commentedso i've tried changing the photos in this slide show every way i know how. i changed the code, i left the code the same and changed the names of my photos to match the mock up photos and then replaced them, and yes, i cleared my cache. no matter what in every browser i still see the original sample slide show. thoughts?
nevermind, apparently my ftp client wasn't overwriting the files.
Comment #18
landmpre CreditAttribution: landmpre commentedIn general this has been my problem with Slideshow, getting pictures to be updated when I change the page.tpl.php file to select different pictures (even those previously working).
While logged in as Administrator I see the new pictures displayed. As soon as I log out they revert to the previous pictures.
I have been able to get it working by dumping my browser cache and deleting all cookies from my web site. This does not always work, at least the first few times.
Sometime that in conjunction with closing ALL browser windows fixes it.
The other issue is that many updates wipe out my page.tpl.php and thus I have to be sure to back it up.
There just has to be a better way?
Comment #19
remarK CreditAttribution: remarK commentedHello,
I am new in drupal 7 and also in the community. I really need help to make this corporate clean slideshow multilingual. Can anybody help me? I use i18n modul to internationalize my website. It would be greatful if anybody knows how to make an offset for english and hungarian languages to this coool slideshow.
thx
remarK
Comment #20
gtsopour CreditAttribution: gtsopour commentedHello remarK,
Corporate Clean theme comes with a Slideshow implementation hard coded into the page.tpl.php. This choice allows you have a slideshow up and run just after the theme installation. Then you could dig into the source code and modify it according to your needs. Corporate Clean is also documented here http://wiki.morethanthemes.com/index.php?title=Corporate_Clean:Demonstra...
Corporate Clean gives the option to disable the build in hardcoded Slideshow implementation without dealing with PHP at all. Simple goto Corporate Clean theme settings and disable it. So, if you disable the Slideshow from page.tpl.php, then you can copy/paste the Slideshow code inside a Drupal System block. Finally, you should place this new block to Banner region and traslate this block as you translate all your other blocks.
I think that this is a simple solution.
But generally you should know that the best practice is to contruct the Slideshow with nodes (Views with view template/Views Slideshow) and translate your nodes.
Thanks
/George
Comment #21
Anteres CreditAttribution: Anteres commentedHi gtsopour,
It's obvious you know a lot about this topic,
I'm also pretty new to drupal and I'm struggling with the Corporate clean slideshow.
I found the pages.tpl.php file but when I edit/save this and overwrite the existing file, it changes nothing.
The link you're always pasting doesn't work for me so I'm still stuck :(
Please help me
Thanks of advance!
Comment #22
greenwork CreditAttribution: greenwork commentedThat's his advice and it is spot on. Changing hard coded slideshows will be erased upon theme updates (like the one I just installed) unless you make a custom version of your themes and push through updates.
It would be great to eventually have corporate clean have an edit section similar to other themes but for now it looks amazing. Keep up the good work developers!
Comment #23
francis004 CreditAttribution: francis004 commentedhi, i'm new to drupal. please how do i create a slideshow for other menu options? the slideshow that comes with the theme works for only the home menu and so i want to create another slideshow for one of my menu options besides 'home' thanks.
Comment #24
bmw1lgetu CreditAttribution: bmw1lgetu commentedHi,
I'm new to drupal as well, can I anybody help me how to add a 'pause button' on the slide show?
Thank you!
Comment #25
gtsopour CreditAttribution: gtsopour commentedHello michelle,
could you please check out my comment on this issue "Adding Pause/Resume action buttons to slideshow implementation" http://drupal.org/node/1279208#comment-4989676
Thanks
/George
Comment #26
Samueli CreditAttribution: Samueli commentedHello Aptalops,
I have encountered this issue several times before. Usually caused by the fact that a div tag is not properly closed. So, look a little more careful your implementation in your slideshow and check if all of your divs are closed.
Futhermore, i would like to ask you if your Drupal installation is online in order to help you directly through my hgh firebug.
Comment #27
jeevaan CreditAttribution: jeevaan commentedHi, what I did was completely remove the hard coded tags and include the slideshow from view. Its amazing. Have a look. But its not complete yet.
http://www.jkdzine.com/
Comment #28
devarpi CreditAttribution: devarpi commentedPlease explain what all settings you did to achieve this?
Comment #29
oscarmerced CreditAttribution: oscarmerced commentedYour homepage slideshow with the video option chosen, does not show the description I've added. I was very thorough with reading through your documentation and I've already tried it myself before I posted the previous message.
Comment #30
omigosh CreditAttribution: omigosh commentedMany of the comments on this thread are from users who need help because the documentation is so poor. If you had written complete instructions in the first place, people would have been able to implement the theme right away. You're creating a lot of frustrated people who are less likely to look at your products in the future. I don't understand why you'd go to such trouble to program a very good-looking theme and not bother to write more than the most cursory documentation. The fact that you have to install the Views and another module to make the slideshow work is not stated anywhere in your documentation. It took me an hour before I finally stumbled across the post above. Personally I think your theme is too much trouble to be useful. There is lots of free JQuery code from sites like Dynamic Drive that will do exactly what you do with only a few lines of code and much better documentation. Or Adobe Edge Animate is cheap and can do a much more elaborate slideshow with much less effort.
Your theme is lovely but you're sabotaging your business with such poor documentation.
Comment #31
greenwork CreditAttribution: greenwork commentedI think he is just relying on income for custom support.
Better business plan
Have the basics well documented and fundamental ease of use (obviously so you get a massive amount of people using your theme)
Add an advanced optional enhancements in a custom section for people to see what an paid support would entail.
Comment #35
VM CreditAttribution: VM commentedthe OP's issue seems to be fixed.
Comment #37
Aptalops CreditAttribution: Aptalops commentedHi Damiandab, hi George,
Great theme!
On the slideshow: I agree that Views Slideshow is the best solution to allow clients to update a slideshow themselves. I've been trying to do this for months, and though my Drupal and CSS skills have improved, I cannot get my own Views Slideshow to centre in the banner area on the homepage. I've downloaded the latest version of the theme (7.x-2.1), and made a copy of the site I'm working on, and a views copy of the homepage here to illustrate my problem (please ignore the layout of each slide, I will fix this with CSS later to mimic George's slideshow):
http://moreeurope.aptalops.com/?q=frontpage
Would you have any suggestions as to how and where (I presume I need to add container divs somewhere) I can tackle this problem?
Thanks for any suggestions,
A~