English > Extensions and jDiction
jDiction for SP Page Builder
Harald Leithner:
jdiction doesn't have a api atm todo this nicely.
What you can do is to load it as Iframe. this could be done by simple this code to you template:
--- Code: --- <?php if (class_exists('jDiction')): ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'jdiction', JText::_('LIB_JDICTION_TRANSLATION', true)); ?>
<?php //jDiction Integration
jimport('jdiction.helpers.admin');
echo jDictionAdminHelper::getInterface();
?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endif; ?>
--- End code ---
you can finde the code what it does in libraries/jdiction/helpers/admin.php
it will load a iframe for you with the translations, it has some options if id doesn't detect the correct values (which will be the case in your setup).
The basic thing will be your textbox needs a database entry (I think SB Build will create one) then you need the table and the id of this table and add it as parameter to getInterface();
MarijnJ:
Thank you, I will look into this.
Navigation
[0] Message Index
[*] Previous page
Go to full version