Edit or create a contact.
Go to Miscellaneous Information
Click Module button in the Editor.
Select a module. Save.
It adds something like : {loadmodule mod_articles_news,News Flash}
Front-end display of the module selected.
Front-end display of the code : {loadmodule mod_articles_news,News Flash}
Any joomla 3.5.1 distribution.
Our solution is -> in components/com_contact/views/contact/tmpl/default.php
<dd>
<span class="contact-misc">
<!--<?php //echo $this->contact->misc; ?>-->
<?php echo JHtml::_('content.prepare', $this->contact->misc, '', 'com_contact.contact'); ?>
</span>
</dd>
But it is only a workaround.
since, that i know of, the plugin that convert that shortcode is only for content, IMO the button "+Module" shouldn't be there (like it isn't in custom module editor area). Should only be in com_content (categories and articles).
Precisely.
That's why I just gave a workaround.
Nevertheless, since it's here, people want to use it.
Status | New | ⇒ | Confirmed |
Category | ⇒ | Plugins |
You need to look at how the custom html module deals with this
Please my suggested change above ...
A comment:
Now please look at the code of the PR (it is very small), in case of contact
it is $item->misc
if other views are such a case, then they should be fixed too in a similar way
No thats not correct @ggppdk I am preparinga PR now
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-05-17 20:35:15 |
Closed_By | ⇒ | brianteeman |
Please see #10539
it is a choice to disallow the module button
but i can agree that it is a different issue
confirmed.