Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorenser
     
    Hi all!

    Does anybody know how I can use same partial for multiple layouts.
    For example layout user, page.. and where the partial should be placed, in which folder.

    Thanks!
    • CommentAuthorasejua
     

    Hello,

    you can use paths with renderPartial so, you could store those partial templates inside (for example a _header.tpl) inside views/page/ folder and call 'em in all your layouts using:

    <%= render :partial => 'page/header' %>

    Hope it helps, regards.

    • CommentAuthorenser
     
    Thanks asejua for replaying so fast.
    It works!
    Small thing to do and it changes a lot of things. :).

    Thanks again, best regards!