Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Control latestnews on HomePage


Go to End


7 Posts   5965 Views

Avatar
DHN

Community Member, 23 Posts

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

Avatar
Double-A-Ron

Community Member, 607 Posts

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=53

Cheers
Aaron

Avatar
DHN

Community Member, 23 Posts

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 ??

Avatar
Double-A-Ron

Community Member, 607 Posts

24 June 2008 at 10:06pm

Edited: 24/06/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.jpg

Without Trailing Slash:
http://djd.dk/meetings/assets/Photo-images/Logos/_resampled/ResizedImage12398-Dublin-logo.jpg

This 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

Avatar
DHN

Community Member, 23 Posts

25 June 2008 at 12:24am

Edited: 25/06/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

Avatar
DHN

Community Member, 23 Posts

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...

Avatar
Double-A-Ron

Community Member, 607 Posts

25 June 2008 at 5:04pm

Good to hear.

Aaron