Snippets archive

Author Message

Håvard Bergersen

Thursday 08 April 2010 2:17:26 pm

I think it would be a good idea to have a snippet archive where people can post their snippets..

Would be a good resource for developers, and especially for people who are new to ez!

Example.
I need to create a breadcrumb outside the pagelayout.tpl. Click in to the archive and check snippets tagged "breadcrumb" and see if anyone has had the same problem.
You don't have to search through the forum and/or documentation spending lots of time...

The idea is to keep it easy and accesible.

What do you think? Ideas? Is it necessary or...?

Robin Muilwijk

Saturday 10 April 2010 11:29:50 am

Hi Håvard,

This is a great idea, I've already pinged Nicolas about this. I'm sure he will answer here as well.

We are working on a design contest for share.ez.no and part of this also means we are likely changing the top menu / structure of the site a bit and we are reserving space for new content and ideas. Personally I can see a code snippet area being part of share.ez.no.

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Nicolas Pastorino

Monday 12 April 2010 12:18:56 am

Hallo Håvard,

This idea gets along well with the focus put on tutorials and beginners knowledge-content. In order for the usefulness of such a tool to be maximized, a proper way to find ( and not only search :) ) a relevant snippet needs to accompany it. I can see a quite good example of this there : http://phpsnips.com or here : http://snipplr.com/all/language/php. Do you have other examples/tools you are using regularly, which we could inspire ourselves from ? Should we create something from scratch or use and integrate an existing tool ?

I like this idea, we should make something out of it,
Cheers!

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Håvard Bergersen

Tuesday 13 April 2010 11:25:24 am

Hmmm.. Don't have any inspiration sources to provide.. Sorry... But while i think the hierarchy on the site you refer to, I don't like the layout/design of it.. To difficult to navigate through. http://snipplr.com/all/language/php Is not to bad though..

Gonna have to think about this one.. ;)

Heath

Sunday 06 June 2010 7:19:15 pm

Hello Håvard,

Any one can create an account freely and add snippets to our existing collection.

http://ezpedia.org/en/snippets

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 04:26:28
Script start
Timing: Jan 18 2025 04:26:28
Module start 'layout'
Timing: Jan 18 2025 04:26:28
Module start 'content'
Timing: Jan 18 2025 04:26:29
Module end 'content'
Timing: Jan 18 2025 04:26:29
Script end

Main resources:

Total runtime0.6294 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.0391152.6406
Module start 'layout' 0.00510.0046 740.679739.4766
Module start 'content' 0.00960.6183 780.1563663.6328
Module end 'content' 0.62800.0014 1,443.789116.1563
Script end 0.6294  1,459.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5978160.0002
Check MTime0.00160.2464160.0001
Mysql Total
Database connection0.00070.118810.0007
Mysqli_queries0.558388.7005690.0081
Looping result0.00100.1582670.0000
Template Total0.589393.620.2947
Template load0.00250.390020.0012
Template processing0.586893.232720.2934
Template load and register function0.00050.072310.0005
states
state_id_array0.00090.135410.0009
state_identifier_array0.00080.129720.0004
Override
Cache load0.00230.3594360.0001
Sytem overhead
Fetch class attribute can translate value0.00140.226140.0004
Fetch class attribute name0.00160.254490.0002
XML
Image XML parsing0.00320.502940.0008
class_abstraction
Instantiating content class attribute0.00000.0030100.0000
General
dbfile0.00180.2823370.0000
String conversion0.00000.001940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs