Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Control latestnews on HomePage

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

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

Page: 1
Go to End
Author Topic: 5116 Views
  • DHN
    Avatar
    Community Member
    23 Posts

    Control latestnews on HomePage Link to this post

    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

  • Double-A-Ron
    Avatar
    Community Member
    599 Posts

    Re: Control latestnews on HomePage Link to this post

    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

  • DHN
    Avatar
    Community Member
    23 Posts

    Re: Control latestnews on HomePage Link to this post

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

  • Double-A-Ron
    Avatar
    Community Member
    599 Posts

    Re: Control latestnews on HomePage Link to this post

    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

  • DHN
    Avatar
    Community Member
    23 Posts

    Re: Control latestnews on HomePage Link to this post

    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

  • DHN
    Avatar
    Community Member
    23 Posts

    Re: Control latestnews on HomePage Link to this post

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

  • Double-A-Ron
    Avatar
    Community Member
    599 Posts

    Re: Control latestnews on HomePage Link to this post

    Good to hear.

    Aaron

    5116 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.