Forums / Suggestions / Area for posting of nice template code

Area for posting of nice template code

Author Message

Tore Skobba

Friday 19 March 2004 6:16:14 am

I find the template language quite large and complex, and as such it is easy to make poor and unflexible code vs. nice and flexible code. Therefore it might be a good idea to add template code pieces to the Community area? Or maybee try to set up an library where we can post out code? Just my thought after working on various if then branches for showing news...

cheers
Tore

Alex Jones

Friday 19 March 2004 6:28:42 am

That's a great idea! I know my coding style has changed as I've learned the system, and much of my early code could have been much more flexible had I seen examples from the community. I think this area would prove helpful to new and experienced developers alike.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Karsten Jennissen

Friday 19 March 2004 7:17:57 am

There is an area to do this. If you go to the documentation -> customization -> tips & tricks. Create a new sub page and post your code.

Regards,
Karsten

Tore Skobba

Friday 19 March 2004 8:27:12 am

Thanks.

I tried to post there, but after inserting my code, and adjusting it, the ezdbhtml emptied my content and I got "Body did not validate" when posting:(. I think that an area for posting template code should not be an part of the docs. This as the docs should be consistent and "secure" (no bad code). I was thinking more of a "free" area.. Almost like an new forum category I guess.

Cheers
Tore

Karsten Jennissen

Friday 19 March 2004 8:31:59 am

Hi Tore,

don't know what happened there, but this is a tag problem, i.e. you used the tags in a way that does not work.

The idea of the documentation is that it is a Wiki. Everyone can write it, everyone can correct, everyone can comment. eZ systems does not have the resources to fully generate the documentation by themselves.

Karsten

Alexandre Cunha

Friday 19 March 2004 8:47:20 am

Great idea Tore

A "template code library" is something very usefull to the community.

axel

http://AlexandreCunha.com

Fraser Hore

Saturday 20 March 2004 7:25:30 am

I think this is a great idea! Particularly if there is some sort of categorization and naming convention so it's easy to find the kind of template you need. For example:

Menus
- simple child
- tree one level

Info boxes
- latest news
- related articles

Main Area
- Folders
- Articles

Why not just add a new folder for this in the Contributions area?

Riju Jacob

Monday 23 August 2004 11:20:16 pm

it is nice to put template into new area.I am a beginner to this frame work.I have some template coding idea now,but i don't know where should i put this template to access through my web server and ezpublish frame work.Please help me out for this.I know this is a silly problem...but what to do..this is basic.Thanks in advance