Themed cells

0 views
Skip to first unread message

akzhan

unread,
Oct 21, 2009, 5:41:17 AM10/21/09
to adva-cms
Take a note that Adva Themes Engine do not cover all theming issues
while Adva Cells plugin doesn't provide theming for BaseCell class.

Now it's major issue that blocks us to move all theming issues to
designers team.

Torsten Becker

unread,
Oct 21, 2009, 2:17:42 PM10/21/09
to adva...@googlegroups.com
Hi,

can provide an example or more info, which theming issues you require
to be covered?

What is your request regarding an empty Baseclass- which theming do
you need there?

Torsten
Dr. Torsten Becker
BESTgroup Consulting & Software GmbH
Kurfürstendamm 42 10719 Berlin Germany
Tel +49 30 2000 390-0
Fax +49 30 2000 390-12
Mobile +49 171 443 1973
www.best-group.eu





Akzhan Abdulin

unread,
Oct 22, 2009, 5:57:19 AM10/22/09
to adva...@googlegroups.com
Hello Dr. Torsten,

We use AdvaCMS themes to provide custom look'n'feel. A lot of templates are overriden or added in any theme.

But there is a problem: We cannot override templates of cells, because they do not include active theme template path into set of its templates. 

We need acts_as_themed_cell macro like controller one.

By the way, there is minor another issue with themes - theme templates by default accessible from Web directly (source code of template.html.erb can be downloaded if path known).

With best wishes,
  Akzhan.


2009/10/21 Torsten Becker <tbe...@best-group.eu>

Sven Fuchs

unread,
Oct 27, 2009, 5:11:12 AM10/27/09
to adva...@googlegroups.com
Hi Akzhan,

> But there is a problem: We cannot override templates of cells,
> because they do not include active theme template path into set of
> its templates.
>
> We need acts_as_themed_cell macro like controller one.

you're right.

The Cells plugin and the adva-themes engine don't know of each other.
If you want to provide a patch (or maybe a small additional plugin) to
solve this we'll happily apply it.

> By the way, there is minor another issue with themes - theme
> templates by default accessible from Web directly (source code of
> template.html.erb can be downloaded if path known).

tbh I don't see it as an issue. adva-cms is opensource and the source
code is visible on the web anyway. Storing the templates alongside to
the theme assets (javascript/stylesheets) under public/ makes the
whole code much simpler.

If you want to restrict access to these files though you could easily
do that in your frontend server configuration. E.g. just add a
directive for Apache that looks something like that:

<Files ~ "\.erb$">
Order allow,deny
Deny from all
</Files>

Reply all
Reply to author
Forward
0 new messages