Discussion:
[Erp5-dev] css and javascript registries - how to use business templates
bartek
2008-04-10 11:13:17 UTC
Permalink
Hello

I'm working on registries for css and javascript - the code is here:

http://svn.erp5.org/experimental/Experimental/Tool/HTMLIncludeTool.py?view=markup

and the documentation is here:

http://www.erp5.org/HowToUseExperimentalHTMLIncludeTool

The question now is, how to make css and javascript installable through
business templates, so that (a) the core includes are not hardcoded into
global_definitions but defined in erp5_xhtml_style bt5 instead, and (b)
every bt5 can add its own required includes upon installation.

The first idea is to add to a bt5 two properties: "template_css_id_list"
and "template_javascript_id_list", and manage them in a similar way to
that of skins. Is it an acceptable solution, or should it be handled in
some other way?

Bartek
--
"feelings affect productivity. (...) unhappy people write worse
software, and less of it."
Karl Fogel, "Producing Open Source Software"
bartek
2008-04-11 11:50:32 UTC
Permalink
Post by bartek
Hello
http://svn.erp5.org/experimental/Experimental/Tool/HTMLIncludeTool.py?view=markup
http://www.erp5.org/HowToUseExperimentalHTMLIncludeTool
The question now is, how to make css and javascript installable through
business templates, so that (a) the core includes are not hardcoded into
global_definitions but defined in erp5_xhtml_style bt5 instead, and (b)
every bt5 can add its own required includes upon installation.
The first idea is to add to a bt5 two properties: "template_css_id_list"
and "template_javascript_id_list", and manage them in a similar way to
that of skins. Is it an acceptable solution, or should it be handled in
Going once...
Post by bartek
some other way?
Bartek
--
"feelings affect productivity. (...) unhappy people write worse
software, and less of it."
Karl Fogel, "Producing Open Source Software"
bartek
2008-04-14 19:32:59 UTC
Permalink
Post by bartek
Post by bartek
Hello
http://svn.erp5.org/experimental/Experimental/Tool/HTMLIncludeTool.py?view=markup
http://www.erp5.org/HowToUseExperimentalHTMLIncludeTool
The question now is, how to make css and javascript installable through
business templates, so that (a) the core includes are not hardcoded into
global_definitions but defined in erp5_xhtml_style bt5 instead, and (b)
every bt5 can add its own required includes upon installation.
The first idea is to add to a bt5 two properties: "template_css_id_list"
and "template_javascript_id_list", and manage them in a similar way to
that of skins. Is it an acceptable solution, or should it be handled in
Going once...
Going twice...
Post by bartek
Post by bartek
some other way?
Bartek
bartek
2008-04-16 11:41:10 UTC
Permalink
Post by bartek
Post by bartek
Post by bartek
Hello
http://svn.erp5.org/experimental/Experimental/Tool/HTMLIncludeTool.py?view=markup
http://www.erp5.org/HowToUseExperimentalHTMLIncludeTool
The question now is, how to make css and javascript installable through
business templates, so that (a) the core includes are not hardcoded into
global_definitions but defined in erp5_xhtml_style bt5 instead, and (b)
every bt5 can add its own required includes upon installation.
The first idea is to add to a bt5 two properties: "template_css_id_list"
and "template_javascript_id_list", and manage them in a similar way to
that of skins. Is it an acceptable solution, or should it be handled in
Going once...
Going twice...
Ok, so I'll implement it like that.

Bartk
Post by bartek
Post by bartek
Post by bartek
some other way?
Bartek
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
--
"feelings affect productivity. (...) unhappy people write worse
software, and less of it."
Karl Fogel, "Producing Open Source Software"
Loading...