10 years ago
0
Topic

So I am creating a new fields for an article with Seblod. I want those new fields to display in that article via php (I am using the NoNumbers Sourcer for that). 

So if I had a "All about BLUE Widgets" article with Seblod fields called "size" and "weight".

I want "size" and "weight" to be displayed in the body of the "All about BLUE Widgets" article. 

And I would want the "size" and "weight" of the RED Widget to display in the article on  "All about RED Widgets"

Does that make sense? 

Is it something like this???:

<?php

$db = JFactory::getDbo();

$query = $db->getQuery(true);

$query 

->select('size')

->from('#__cck_store_widgets_specs')

$db->setQuery($query);

$widgetSize = $db->loadObjectList();

echo $widgetSize->get("size"); 

?>

Any help would be great.

Thanks

Get a Book for SEBLOD