- Posts: 663
COMMUNITY FORUM
Use Joomla Plugins in extra fields?
- BBC
-
- Offline
- Platinum Member
Less
More
13 years 10 months ago #95656
by BBC
Replied by BBC on topic Use Joomla Plugins in extra fields?
I've been searching all over, can't seem to find the solution ... ill have another look, perhaps you would too?
It is here:
community.getk2.org/forum/topics/use-joomla-plugins-in-extra?id=3536014%3ATopic%3A217993&page=2#comments
Did you tried it ? I don´t know if it works, didn´t tested.
It is here:
community.getk2.org/forum/topics/use-joomla-plugins-in-extra?id=3536014%3ATopic%3A217993&page=2#comments
Did you tried it ? I don´t know if it works, didn´t tested.
Please Log in or Create an account to join the conversation.
- Jock
-
- Offline
- Premium Member
Less
More
- Posts: 90
13 years 10 months ago #95657
by Jock
Replied by Jock on topic Use Joomla Plugins in extra fields?
I ended up changing the code where it outputs the extrafields in item.phpto this
<?php echo JHTML::_('content.prepare', $extraField->value); ?>
Worked a treat ^
<?php echo JHTML::_('content.prepare', $extraField->value); ?>
Worked a treat ^
Please Log in or Create an account to join the conversation.
- BBC
-
- Offline
- Platinum Member
Less
More
- Posts: 663
13 years 10 months ago #95658
by BBC
Replied by BBC on topic Use Joomla Plugins in extra fields?
So instead of gallery editor button you use extra field to copy/paste code ? :)
Please Log in or Create an account to join the conversation.
- BBC
-
- Offline
- Platinum Member
Less
More
- Posts: 663
13 years 10 months ago #95659
by BBC
Replied by BBC on topic Use Joomla Plugins in extra fields?
Ah, sorry, i see now. Plugin code and brackets are prepared in K2 template. So it is just to write folder name in extra field ?
So with this code is absolutely possible to have Magic Tabs, and have an extra field (even with editor) for each tab, to populate. And users cannot destroy anything.
www.greatjoomla.com/news/plugins/update-core-design-magic-ta...
jqueryui.com/themeroller/
So with this code is absolutely possible to have Magic Tabs, and have an extra field (even with editor) for each tab, to populate. And users cannot destroy anything.
www.greatjoomla.com/news/plugins/update-core-design-magic-ta...
jqueryui.com/themeroller/
Please Log in or Create an account to join the conversation.
- dompl
-
- Offline
- New Member
Less
More
- Posts: 6
13 years 9 months ago #95660
by dompl
Replied by dompl on topic Use Joomla Plugins in extra fields?
Hi all,
was looking for solution to this for about a day now, and thans to some poeople here Ive got this :
find in your k2 template files
<?php echo $extraField->value; ?>
and replace it with this :
<?php echo JHTML::_('content.prepare', $extraField->value); ?>
Now you can add your {plugin}some stuff{/plugin}to your extar fields in K2
Very simple solutio and works like a charm.
hope this was helpfull.
was looking for solution to this for about a day now, and thans to some poeople here Ive got this :
find in your k2 template files
<?php echo $extraField->value; ?>
and replace it with this :
<?php echo JHTML::_('content.prepare', $extraField->value); ?>
Now you can add your {plugin}some stuff{/plugin}to your extar fields in K2
Very simple solutio and works like a charm.
hope this was helpfull.
Please Log in or Create an account to join the conversation.