251 Posts
Viktor Iwan
11 years ago
9
Topic

Hi Guys,

I'm uploading a Joomla Plugin DX Seblod Tools that you can download at http://joomla.doxadigital.com/dxseblodtools_100.zip

The function of this plugin is to help Seblod Developer and Integrator to load data for any content type anywhere..

Requirement:
Dev that already able to use work with Seblod Template, this plugin does not print/echo any output

The Usage:
$config=array(
                  view=>'content',
                   id=>'1',
                   fields=>array('art_title','art_introtext',....)
               );
$data=PlgSystemDxseblodtools::load($config);


Parameter:
view:
can be set to 'content' or 'intro' , it depend on which view's field you want to load
id: is the article/content id... technically, it is the id field on #__content
fields (optional):
set the field you want to retrieve...  no fields defined, it return all the fields by default  -updated 27/06/2013- Thanks to Simon


Result:
the associative array will be return, you can test it using var_dump();


Donation:
Appreciate for those who willing to donate to my paypalID victor@doxadigital.com

To Do List/Limitation:
- Not Render FieldX/GroupX yet (waiting for my test case)
- Not Render with Seblod Typo Plugin... all you got is the raw data (but you can make a lot of fun with it)


PS: This plugin is always on going development, i'll add more function than only load content type


So, i'm waiting for the feedback, improvement, suggestion, and critics...

CHANGELOG

27 June 2013 - Simon gives idea to select only few fields
....

Get a VIP membership
548 Posts
joomleb
11 years ago
1
Level 1

Hi Viktor,

"The function of this plugin is to help Seblod Developer and Integrator to load data for any content type anywhere.."

Please, can you post some pratical examples ?

251 Posts
Viktor Iwan
11 years ago
0
Level 2

Well if you're using template like minima...

you put do this script

<?php

$config=array(
  view=>'content',
  id=>'1',
  fields=>array('art_title','art_introtext')
  );
$data=PlgSystemDxseblodtools::load($config);

?>

Hi, this is the titile of id 1 in  #_content : <?php echo $data['art_title'];?>

--------------
try this on your joomla template (not seblod template)....or if you can code extensions.. provide a test with similiar method.. this is what i defined as anywhere

hope this help
43 Posts
trip
11 years ago
2
Level 1

Hi Vik, 

Thanks for sharing this plugin. Is this only limited to com_content tables ?

Matthew

251 Posts
Viktor Iwan
11 years ago
1
Level 2

Nope.. its so cool, powerfull and bloody awesome... that it can detect the related table in a content type....

PS: sorry for being too confident.. LOL.. nah i just joking... everybody who said i'm too arogant please.. i'm just impressed by Tony Stark-the IronMan

fix
11 years ago
0
Level 3

Hi Viktor,

I don't know which error level settings in php.ini you are using, but I think such error level does not exist :-D. How could it work for you? Here is debugged package (I know, it's still "pigwork", but I don't have time, I want functional application and for that purpose it's ok :)): http://dev.fixs.cz/dxseblodtools-1.1.tar

Anyway, you learned me some new things about Joomla! source code, so thank you ;). I'm Digging in Joomla source codes only since yesterday...

Bye, Fix.

43 Posts
Mime
11 years ago
0
Level 1

Looks great Viktor.
It will probably be useful to me somewhere down the line :)

Great work!

11 years ago
1
Level 1

Great work Viktor, 

I will test, thank you!

251 Posts
Viktor Iwan
11 years ago
0
Level 2

Actually there's an update for this... i'm requesting to put this plugin in seblod.com/products


fix
11 years ago
0
Level 1

I just debugged another bug in this plugin, so here is 100% functional version 1.1.1, which should by working.

Link to download/install: http://dev.fixs.cz/dxseblodtools-1.1.1.tar

Before in v1.1 (above) there was a bug with id/pk in #__cck_core table and in xml too. Now it can be installed in Joomla! admin without any problems.

So I hope I helped someone and again thanks to Viktor, who wrote the first version of this plugin.

Bye, Fix.

Get a VIP membership