Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blog Plugins
#9
Hey Guys,

my new plugin 'theMatrix' should do everything your looking for here. I suppose you could describe it sort of like an XML database.

The basic functionality is:

o - create your tables
o - add your fields
o - add your data
o - query your data and output.

At the moment its supports the following fields:

o - text, normal text box
o - textlong, full width Text Box
o - slug, combines a title/slug box
o - Checkbox, Checkbox.
o - pages, a dropdown of the current Pages.
o - templates, a dropdown of the current templates
o - dropdown, a dropdown from another table.
o - datepicker, a date picker field.
o - datetimepicker, a date and time picker.
o - image, an image selector field
o - textarea, a plain textarea
o - codeeditor, a codemirror textarea
o - texteditor, a CKEditor enabled textarea.

Its still pretty much beta at the moment, but it works.
I've a demo site up here: http://matrix.digimute.com

I'll also be releasing my shortcodes plugin which when used with theMatrix allows you to easily add extra functionaily to your content easily. e.g video/code blocks/images etc.

Everything on the site is just plain old GS with the Matrix/shortcodes doing everything else.

So for example the simple News on the right hand side consists of a table "news"
with the following fields.

publishdate - datepicker
title - textlong
content - texteditor

the code to render the front page news items is :

Code:
function doNews(){
    global $returnArray;
    $newsitems=getSchemaTable('news',"SELECT id,publishdate,title,content FROM returnArray ORDER BY publishdate DESC LIMIT 2");
    
    echo '<h3 class="color-4 p2">Recent News</h3>';
    foreach ($newsitems as $news){
        $dateformat=date('d,M',$news['publishdate']);
        $dateparts=explode(',',$dateformat);
        echo '<div class="wrapper p2">';
        echo '    <time class="tdate-1 fleft" datetime="'.date('d-m-y',$news['publishdate']).'"><strong>'.$dateparts[0].'</strong>'.$dateparts[1].'</time>';
        echo '    <div class="extra-wrap">';
        echo '        <h5>'.$news['title'].'</h5>';
        echo $news['content'].' <a href="#">more</a>';
        echo '    </div>';
        echo '</div>';
    }
}

As you can see we can use SQL queries on the array to return data.

The system allows you to create hidden tables which you can then use in your own plugins.

Its up on Git if want to take a look: https://github.com/n00dles/DM_Matrix

If any one wants to contribute please let me know, would love to get a version out soon....

mike....
My Github Repos: Github
Website: DigiMute
Reply


Messages In This Thread
Blog Plugins - by shawn_a - 2012-04-28, 12:59:04
Blog Plugins - by alienee2 - 2012-04-28, 22:56:23
Blog Plugins - by mvlcek - 2012-04-28, 23:31:24
Blog Plugins - by Angryboy - 2012-04-29, 17:19:01
Blog Plugins - by mikeh - 2012-05-01, 07:29:21
Blog Plugins - by shawn_a - 2012-05-01, 08:13:04
Blog Plugins - by mikeh - 2012-05-01, 08:37:28
Blog Plugins - by shawn_a - 2012-05-01, 11:50:32
Blog Plugins - by n00dles101 - 2012-05-01, 18:31:35
Blog Plugins - by shawn_a - 2012-05-01, 21:32:39
Blog Plugins - by shawn_a - 2012-05-02, 04:09:47
Blog Plugins - by shawn_a - 2012-05-02, 04:21:43
Blog Plugins - by Angryboy - 2012-05-05, 23:46:34
Blog Plugins - by shawn_a - 2012-05-06, 00:54:13
Blog Plugins - by alienee2 - 2012-05-13, 05:26:56
Blog Plugins - by n00dles101 - 2012-05-13, 07:57:10
Blog Plugins - by alienee2 - 2012-05-13, 11:28:42
Blog Plugins - by n00dles101 - 2012-05-14, 07:43:08
Blog Plugins - by alienee2 - 2012-05-14, 09:13:41
Blog Plugins - by n00dles101 - 2012-05-14, 21:26:46
Blog Plugins - by alienee2 - 2012-05-14, 23:36:54
Blog Plugins - by shawn_a - 2012-05-15, 02:11:52
Blog Plugins - by n00dles101 - 2012-05-15, 07:03:16
Blog Plugins - by mikeh - 2012-05-15, 14:31:22
Blog Plugins - by shawn_a - 2012-05-15, 23:21:07
Blog Plugins - by mikeh - 2012-05-16, 00:22:24



Users browsing this thread: 1 Guest(s)