17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 5016 Views |
-
Control latestnews on HomePage

23 June 2008 at 2:29am
Hi Guys...
Not really sure where too ask but have an IE7 bug.... if you go to http://djd.dk in firefox , safari it looks fine, but if you go in IE7 it will look awful.. I can't seem to get the css for IE7 correct, and i know it's the <% control latestnews %> that bugs IE because if I remove it, everything looks fine.....
????????????
Please help
-
Re: Control latestnews on HomePage

23 June 2008 at 4:48pm
Do you mean how the site content is positioned to the left in IE7, and centered in FF? That's all I can see wrong with it.
Not really an issue with Silverstripe, you are better off seeking CSS help over here on Sitepoint:
http://www.sitepoint.com/forums/forumdisplay.php?f=53Cheers
Aaron -
Re: Control latestnews on HomePage

24 June 2008 at 9:49pm
thanks.. that was a css error.. but now i ran into a new problem....
I've created a subpage template for the system, but the images doesn't show in internet explorer 7 . . . for an example http://djd.dk/meetings/ contains images but they only get shown if i remove the trailing slash of the URL http://djd.dk/meetings . . Tried making changes to the .htaccess but that made it impossible to access the admin area, have i done anything wrong in the template... or do i need some hack to the .htaccess ??
-
Re: Control latestnews on HomePage

24 June 2008 at 10:06pm Last edited: 24 June 2008 10:07pm
That's pretty strange alright. I'm not too sure but take a look at the sources for that image:
With Trailing Slash:
http://djd.dk/assets/Photo-images/Logos/_resampled/ResizedImage12398-Dublin-logo.jpgWithout Trailing Slash:
http://djd.dk/meetings/assets/Photo-images/Logos/_resampled/ResizedImage12398-Dublin-logo.jpgThis could all point to another problem altogether. You should really only be allowed to have trailing slashes, or not. Never both. This is an SEO duplicate content thing.
This is easily fixed with Mod Rewrite, but what sort of problems did you get in the admin? And what did you try to do with .htaccess that caused that problem?
I'd be interested to hear ideas from one of the SS crew on this one.
Cheers
Aaron -
Re: Control latestnews on HomePage

25 June 2008 at 12:24am Last edited: 25 June 2008 12:29am
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) $1\.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=301,L]This is what i put in the .htaccess wich made the traling slash go away... but because it's used when redirecting to the admin area from the login i couldn't log in , apart from that it worked perfectly... i'm not that good at .htaccess but if someone can write the line for the redirecting log in, i think that would solve the problem...
the funny thing is that, this is only a problem in IE7 because it doesn't get the <%base_tag%> i think
-
Re: Control latestnews on HomePage

25 June 2008 at 4:59pm
just an update...
I started all over.... and now everything works like a charm... The problem was how I build the theme for the webpage, but now that is fixed and everything is working perfectly...
| 5016 Views | ||
|
Page:
1
|
Go to Top |


