Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorMartin
     
    Hello,

    I have problem with css paths.
    I have two akelos projects - booklink and blog.
    Booklink is linked to mydomain/booklink and blog is linked to mydomain/myblog.
    Booklink works fine. Path for css is correct:

    <title>Book: listing</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <link href="/booklink/stylesheets/scaffold.css" media="screen" rel="Stylesheet" type="text/css" />
    </head>
    <body>
    <div id="sidebar">

    <h1>Tasks:</h1>
    <ul>
    <li><a href="/booklink/book/add/">Create new Book</a></li>
    </ul>
    </div>

    Paths in blog are incorect for styles and correct for links:

    <title>Blog: listing</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <link href="/blog/stylesheets/scaffold.css" media="screen" rel="Stylesheet" type="text/css" />
    </head>
    <body>
    <div id="sidebar">

    <h1>Tasks:</h1>
    <ul>
    <li><a href="/myblog/blog/add/">Create new Post</a></li>
    </ul>
    </div>

    Path for css is /blog/stylesheets/scaffold.css and should be /myblog/blog/stylesheets/scaffold.css

    Why path is correct in booklink and incorrect in blog? How to change it?
    •  
      CommentAuthorkonus
     

    There are different methods to set correctly your css. You need to search in 'app/views/layouts' for the correct layout and find some of the next lines :

    <%= stylesheet_link_tag "scaffold.css", :media=>'print,screen' %>
    <%= stylesheet_link_tag "#{module_name}/scaffold.css" %>
    <%= stylesheet_for_current_controller %>
    

    Why you're using the path 'myblog'? I think that's why you are getting the wrong path to the css file.