No Code Attached Yet
Referenced as Pull Request for: # 10539
avatar ghazal
ghazal
17 May 2016

Steps to reproduce the issue

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}

Expected result

Front-end display of the module selected.

Actual result

Front-end display of the code : {loadmodule mod_articles_news,News Flash}

System information (as much as possible)

Any joomla 3.5.1 distribution.

Additional comments

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.

avatar ghazal ghazal - open - 17 May 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 17 May 2016

confirmed.

avatar andrepereiradasilva
andrepereiradasilva - comment - 17 May 2016

Also happens on tags description, and probably in a lot of editor fields across the components.

image

avatar andrepereiradasilva
andrepereiradasilva - comment - 17 May 2016

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).

avatar ghazal
ghazal - comment - 17 May 2016

Precisely.
That's why I just gave a workaround.
Nevertheless, since it's here, people want to use it.

avatar brianteeman brianteeman - change - 17 May 2016
Status New Confirmed
avatar brianteeman brianteeman - change - 17 May 2016
Category Plugins
avatar brianteeman
brianteeman - comment - 17 May 2016

You need to look at how the custom html module deals with this


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10525.

avatar ggppdk ggppdk - reference | 3efa763 - 17 May 16
avatar ggppdk
ggppdk - comment - 17 May 2016

Please my suggested change above ...

A comment:

  • J3.5.x added onContentPrepare event triggering in a fews views

Now please look at the code of the PR (it is very small), in case of contact

  • the text is neither: $item->text nor: $item->description

it is $item->misc

if other views are such a case, then they should be fixed too in a similar way

avatar brianteeman
brianteeman - comment - 17 May 2016

No thats not correct @ggppdk I am preparinga PR now


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10525.

avatar brianteeman brianteeman - change - 17 May 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-05-17 20:35:15
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 17 May 2016

Please see #10539


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10525.

avatar brianteeman brianteeman - close - 17 May 2016
avatar brianteeman brianteeman - close - 17 May 2016
avatar ggppdk
ggppdk - comment - 18 May 2016

@brianteeman

it is a choice to disallow the module button

but i can agree that it is a different issue

  • my PR fixes an onContentPrepare bug of the view, i will open a new issue then, thanks
avatar brianteeman
brianteeman - comment - 3 Aug 2016

New PR is #11419

Add a Comment

Login with GitHub to post a comment