Path

ez projects / bccarousel / forum / general / why css code is mixed in ez...


Why CSS code is mixed in ezpublish .tpl files

You need to be logged in to post messages in the forums. New users may register here.

Lazaro Ferreira

Member since:
30 November 1999

Posts: 18

Monday 03 August 2009 12:08:03 pm

Hi,

I'm wondering why this extension includes carousel CSS definition within ezpublish templates ?
Up

// Heath

Member since:
04 March 2007

Posts: 94

Monday 03 August 2009 1:47:57 pm

At the time of original creation the javascript / css was specific per page, after that per instance per page and so on. Keeping the css/js in one location provided simple all in one template without external dependencies or more complicated implementation(s) at the time.

I think agree that in general it is a good best practice to separate css and js out of templates.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
GitHub | https://github.com/brookinsconsulting
eZpedia community documentation project | http://ezpedia.org
eZecosystem - eZ Publish Planet | http://ezecosystem.org
eZPublishLegacy - eZ Publish Release Mirror | http://ezpublishlegacy.com

Up

Lazaro Ferreira

Member since:
30 November 1999

Posts: 18

Tuesday 04 August 2009 7:36:33 pm

Hi,

I agree with you on both cons and pros of this approach

I was thinking it will be nice to further develop the bcccarousel, we are interested in this

for instance, what about supporting different carousel implementations like yui carousel,
while keeping a unique ezp interface ?

Up

// Heath

Member since:
04 March 2007

Posts: 94

Saturday 15 August 2009 12:37:17 pm

Hello Lazaro,

I have not had a chance to use yui carousel individually yet in general I like the yui projects.

This extension really provides so little in terms of source code yet itself remains a simple example of combining a javascript library within a design extension with custom templates which use the library api with ezpublish templates custom code which provide data from ezpublish to the javascript library as used within the various templates.

In a way it's nice that the solution to implementing this kind of functionality within eZ Publish can be so simple indeed enjoyable to work with (rather than against). And this is really just the tipping point of what can be done with javascript (as seen through various other similar javascript enabled extension within projects.ez.no).

If you would like to request membership to the project at, http://projects.ez.no/bccarousel/team/members

Then you can submit modifications through subversions using your ez.no username and password.

Update: Apologies for the lateness of my reply.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
GitHub | https://github.com/brookinsconsulting
eZpedia community documentation project | http://ezpedia.org
eZecosystem - eZ Publish Planet | http://ezecosystem.org
eZPublishLegacy - eZ Publish Release Mirror | http://ezpublishlegacy.com

Up

You need to be logged in to post messages in the forums. New users may register here.