#1 2010-07-30 01:59:42

toopixel
Ionize Core Team
From: Geneva
Registered: 2010-04-20
Posts: 272
Website

[DISCUSSION] adding a "Code Snippets" feature?

Hi everybody,

I would like to open a new topic related to a feature we've been discussing with Michel-Ange.
What we thought about was to have a way to use views, or small pieces of code containers that will be possible to reuse everywhere we need it. That feature would be called "Code Snippets".

It could be for example a menu <ul><li> list, some default articles layouts (1 column, 1 sidebar + 1 main area, etc) or whatever the designer want that snippets to be (it would be editable, addable etc.).

What do you think about such a feature ?
How do you think we should do it ?
Any example on existing CMS's you can think about ?


Too Pixel is a web agency located in Geneva, Switzerland

Offline

#2 2010-07-30 08:26:01

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: [DISCUSSION] adding a "Code Snippets" feature?

And what about the idea of having this 'code snippets' or Ionize news in live from admin panel ?


Webmaster / OUF!WEB

Offline

#3 2010-07-30 09:39:32

toopixel
Ionize Core Team
From: Geneva
Registered: 2010-04-20
Posts: 272
Website

Re: [DISCUSSION] adding a "Code Snippets" feature?

Don't misunderstood what we meant by Code Snippets: it's not something like a wiki where you'll download some pieces of code. it's designer related in the CMS, it's a feature which will permit the designer/coder to create a view or a piece of code which he will then call by a tag in his views, probably something like:

<ion:snippet name="menu" /> which will call the snippet of code to generate the full <ul><li> list for his menu.

Of course, in the future we are thinking about kind of community wiki where people will be able to contribute modules etc. But not yet, first we'd like to reach Ionize 1.0


Too Pixel is a web agency located in Geneva, Switzerland

Offline

#4 2010-07-30 10:24:52

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: [DISCUSSION] adding a "Code Snippets" feature?

Waooo, it's more powerfull than i was thinking.
But, if Ionize do all for us, what is our job wink


Webmaster / OUF!WEB

Offline

#5 2010-07-30 10:33:38

toopixel
Ionize Core Team
From: Geneva
Registered: 2010-04-20
Posts: 272
Website

Re: [DISCUSSION] adding a "Code Snippets" feature?

You'll just have to design in photoshop, export to html, and assemble your pages from Code Snippets smile


Too Pixel is a web agency located in Geneva, Switzerland

Offline

#6 2010-07-30 10:39:44

ukyo
Community Manager
From: Marmaris - Turkey
Registered: 2010-05-19
Posts: 734
Website

Re: [DISCUSSION] adding a "Code Snippets" feature?

You can write your own module smile and you can make ionize more powerful.


<ion:ukyo from="Turkey" />
Ionize CMS Türkçe Dil Çeviri Dosyaları | My Github Repositories
Please send your first message to a forum section, not forum users or administration.

Offline

#7 2010-07-30 10:49:02

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: [DISCUSSION] adding a "Code Snippets" feature?

I am reassured


Webmaster / OUF!WEB

Offline

#8 2013-02-05 11:12:25

five22
Member
Registered: 2013-02-05
Posts: 1
Website

Re: [DISCUSSION] adding a "Code Snippets" feature?

Feel good, creative is good, you can try.

Offline

#9 2015-08-19 08:18:02

adaliszk
Ionize Friend
From: Germany
Registered: 2010-09-20
Posts: 397
Website

Re: [DISCUSSION] adding a "Code Snippets" feature?

Also it will be nice If this snippets will be availabe in the content. So if somebody want a predefined gallery into the content, they can add some {snipet="gallery"} to the content and the gallery will apear where the admin wanted.


Webdeveloper, Programmer, Application developer, Ionize friend
@adaliszk

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations