By Bman on
Hello,
I was able to get the banner image to show up simply by following the handbook and adding a mission statement. However, I was wondering if you could get this banner image to show on every page or at least on more than the homepage. Furthermore, I was hoping to change the image depending on what page you are on.
Ex)
Hompage - seascape image
Contact Us - contact image
etc.
Any suggestions?
Comments
I'm assuming since no one
I'm assuming since no one replied people are just being nice and are refraining from saying, "Learn to modify the theme files you idiot!"
I was just hoping someone had tried this before or knows the theme inside out and was willing to share their thoughts.
I was about to post a similar thread
I'm thinking you didn't catch any "fish" with your forum post for 2 main reasons:
1) You post title is oddly worded. My post title was going to be "Overriding Acquia Slate's Banner region with the Rotor module" but whatever. The difference is that my proposed title is specific and worded in such a way as to let others know that my request for help is specific and that I know enough about what I'm talking about to accept any help that might be offered.
2) You didn't offer up any of the theming work you might have already tried. This makes it much easier for other to jump right in without have to ask a handful of "did you try this ...?" or "did you try that ...?" or worse "what modules are you using?" Let others know that you've done your homework and have at least attempted to RTM.
Also, giving people more info about your case and the details of your install might help get responses too. For instance, and at least in my case:
I'm running Drupal 6.14 via MySQL 5.0 in a shared hosting environment at DreamHost. I know this is not the best set-up for Drupal however, the site I'm working on is forecasted to see 100's of users/day (not 100's of users/hour) so for an unpublished site-dev only site, at least at this time, it should be fine for now.
Now, on to my actual post ...
BTW, I'm working on a copy of my site, a "dummy" install. Hacking and troubleshooting themes and modules in your main site is asking for trouble.
I can get the large banner image (960x520) to display on my site, under my implementation of Slate and I can get it to do 1 or 2 things
1) Without using the Rotor module, I can add images directly to Slate's "banners" folder (/sites/mysite.com/themes/acquia_slate/theme_settings/banners/) and allow the site owner to choose the photo he wants displayed.
2) When using the Rotor module, the theme will rotate through all banner images placed in a folder under /sites/all/files/ (as specified within Rotor)
For some reason, I am unable to link directly to the "banners" folder with Rotor. Regardless, even if I could my users would still need to use FTP to get them there. Ideally, an authorized user could use ImageUpload or ImageAttach to upload or select a new set of images to use within Slate's banner.
The difference here, which is the basis of my original question, is how do I utilize the Slate's banner image selector functionality which is built into the TNT/Acquia Slate theme? I'd really not like to reinvent the wheel here, but override instead however, I would need to add additional functionality to the theme setting page to do so (build in a way to select multiple images OR build in a way to select a certain ImageGallery) to source the banner images I wanted to rotate with the Rotor module.
I'm now at making a decision between choosing the lesser of 2 evils; hacking the Slate theme, or hacking/overriding the page-front.tpl.php file.
Actually, I'm thinking about the following a hybrid and more of a "best practices" approach:
1) Leave the original Slate theme alone
2) Build a sub-theme based upon & nested within Slate
3) Make copies of the bare-essential Slate files to make a sub-theme
4) Create a new version of page-front.tpl.php to test my hacked in Rotor code
5) Reload my Drupal themes page (to rebuilt theme registry-pulling in my new sub-theme) and select it and save.
6) Hope I didn't break a bunch of stuff and continue troubleshooting
Thoughts?
Hope this helps and I hope someone else out there might have a little more insight into Slate and how to implement a rotating banner image (homepage or otherwise).
Thanks,
_rs
PS: You might also want to join the TNT Themes Group: http://groups.drupal.org/tnt-themes ... that's a great way to target Slate-specific resources.
I don't know if this is the best solution
One way to tackle this is creating a custom div id tag to display the different banner as per page, and use template php to change the id tag of the div for each different page.
or use different page template such as page-service.tpl.php and specify the different div id there
--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com