overriding templates

0 views
Skip to first unread message

jronallo

unread,
Jun 15, 2009, 12:05:56 PM6/15/09
to adva-cms
Even after reading the FAQ I don't get how overriding views should
work with adva_cms. If I want to override my-app/vendor/adva/engines/
adva_cms/app/views/layouts/default.html.erb where do I place
default.html.erb relative to my-app? I can place it in my-app/views/
layouts/default.html.erb but that doesn't seem like what the FAQ is
suggesting.

Jason

Marko Seppä

unread,
Jun 15, 2009, 2:32:42 PM6/15/09
to adva...@googlegroups.com
Hi Jason,

FAQ view overwriting is correct if you want to create a new theme. 

When you create a theme and want to create for example new default template you create a file with filename "templates/layouts/default.html.erb" and put your html to data field. Frontend should reflect the theme when you activate the theme. You need to install adva_themes engine for theme creation on a backend.

Other way to override adva-cms is to do it on your app folder like you mention.

Hope this helps.

-- Marko

Aaric Pittman

unread,
Jun 15, 2009, 12:36:05 PM6/15/09
to adva-cms
Jason,

It would go in my-app/public/themes/my-theme/templates/layouts/
default.html.erb.

Aaric
Reply all
Reply to author
Forward
0 new messages