Posted by wired_yout on July 27, 2010 at 2:02am
Good day,
I created a Drupal theme and I'm trying to figure out why my Flash banner won't show up on any page I set as the default page. Any suggestions please?
Good day,
I created a Drupal theme and I'm trying to figure out why my Flash banner won't show up on any page I set as the default page. Any suggestions please?
Comments
Do u have the proper URL
ensure its somn like this, if the URL is not correct it wont show - assuming this is like your page.tpl.php file in the root of your theme directory
<object width="973" height="138"><param "wmode="transparent" name="movie" value="/sites/default/themes/yourTheme/images/banner.swf">
<embed "wmode="transparent" src="/sites/default/themes/yourTheme/images/banner.swf" width="973" height="138">
</embed>
</object>
Thanks for your quick
Thanks for your quick response frazras, my banner is displaying on the other pages (about, contact etc) but whenever I set a page as the default page it wont display. For instance say I was to set the contact page as default, that would be the first page shown but without the banner. If I set a different page as default, contact will return to displaying the banner.
Do you have a
Do you have a page-front.tpl.php in your theme folder? If you do then ensure that it has the same regions as your page.tpl.php.
Also, are you using contexts? If you are then maybe there is a default context that is triggered on all other pages and specific homepage context.
--
Small Business, Big Ambition!
Web Design by Sumo Systems
1-876-622-3600
HMMM Strange
The only thing that changes upon making a page your homepage is that you are accessing it from a different URL.
eg example.com/contact now becomes example.com
The only thing I can think is that it may have somn to do with your banner having some issues with the URL.
Try this: if your contact page with URL "example.com/contact" becomes the homepage, try accessing it from the same URL "example.com/contact" and not "example.com" and see if there is a difference.
Thanks for your help guys, I
Thanks for your help guys, I think I figured it out though. There was a function using '$is_front' as a condition to decided whether or not to display certain content.
Yup you have to be careful
Yup you have to be careful with $is_front, better to use a front page template (page-front.tpl.php).
--
Small Business, Big Ambition!
Web Design by Sumo Systems
1-876-622-3600
Thanks for your help guys, I
Thanks for your help guys, I think I figured it out though. There was a function using '$is_front' as a condition that decided whether or not to display certain content.
Ill keep that in mind sumo.
Ill keep that in mind sumo.