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

eZ debug

Timing: Jan 30 2025 21:36:01
Script start
Timing: Jan 30 2025 21:36:01
Module start 'content'
Timing: Jan 30 2025 21:36:01
Module end 'content'
Timing: Jan 30 2025 21:36:01
Script end

Main resources:

Total runtime0.3092 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 588.0469370.2891
Module start 'content' 0.00910.0146 958.33591,009.5469
Module end 'content' 0.02360.2855 1,967.88283,899.6719
Script end 0.3091  5,867.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00521.6747200.0003
Check MTime0.00140.4629200.0001
Mysql Total
Database connection0.00130.417010.0013
Mysqli_queries0.199064.37211410.0014
Looping result0.00170.55751390.0000
Template Total0.285092.210.2850
Template load0.00090.284910.0009
Template processing0.284191.900210.2841
Override
Cache load0.00060.200210.0006
Sytem overhead
Fetch class attribute can translate value0.00190.630110.0019
XML
Image XML parsing0.00030.085410.0003
General
dbfile0.00812.6210200.0004
String conversion0.00000.002330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs