Keyword

Extra Fields

More
13 years 9 months ago #91754 by BN
Extra Fields was created by BN
Does anyone know how I could call another table for my extra_fields other than jos_k2_extra_fields or jos_k2_items->value? I'm trying to output a specification table for different products in my extra fields area in my k2 content.

 

<?php foreach ($this->item->extra_fields as $key=>$extraField):?>

 

<div>

 

<fieldset><legend> </legend>

<dl><dt>Part#:</dt><dd> <?php echo $extraField->specification; ?></dd></dl>

</fieldset></div>

<?php endforeach; ?>

</div>

</div>

 

<?php endif; ?>

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #91755 by Jiliko.net
Replied by Jiliko.net on topic Extra Fields
Hi BN,

 

I'm working on a table field plugin for the K2 Sherpa extension.

The extension will be available for the beginning of january and the table field, a few days after.

 

Regards,

 

Olivier

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #91756 by Nick
Replied by Nick on topic Extra Fields
or you can just tell him how to do it faggot. Trying to rip people off with cheap plugins. This is a developers category, not "oh wait for my plugin which you can buy"

@BN, i suggest you head over to codingforums.com or something like that and ask that question there with some bg info. There is probably a way to query the DB to get what you want.

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #91757 by Jiliko.net
Replied by Jiliko.net on topic Extra Fields
Nick,

 

I'm not sure i did this in all of my 400 answers on this forum...

 

But what i'm sure is that you need some education lessons like beginning a post by some 'Hi' or other things.

 

Maybe i can develop an e-learning paying extension for you.

 

Wow, i like business posts, i like, i love.

 

Olivier

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #91758 by Jiliko.net
Replied by Jiliko.net on topic Extra Fields
Hi BN,

 

Some code to get a value from a joomla table :

 

$db = & JFactory::getDBO();

$query = "SELECT * FROM #__k2_items WHERE id=1";

$db->setQuery($query);

$item = db->loadObject();

 

1st line : instanciation of the Joomla db object

2nd : definition of the query

3rd : affect the query to the db

4th : the $item variable get the object returned by the execution of the query

 

You can access to the $item properties with $item->property

 

Modify the code to suit your needs or just ask to have details. I'm not just on the forum for commercial purposes. :-)

 

Olivier

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #91759 by BN
Replied by BN on topic Extra Fields
Thanks!

Olivier Nolbert said:
Hi BN,

 

Some code to get a value from a joomla table :

 

$db = & JFactory::getDBO();

$query = "SELECT * FROM #__k2_items WHERE id=1";

$db->setQuery($query);

$item = db->loadObject();

 

1st line : instanciation of the Joomla db object

2nd : definition of the query

3rd : affect the query to the db

4th : the $item variable get the object returned by the execution of the query

 

You can access to the $item properties with $item->property

 

Modify the code to suit your needs or just ask to have details. I'm not just on the forum for commercial purposes. :-)

 

Olivier

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum