joomla 3 custom module class name - module

Running Joomla 3.1.5
I created a very simple module and I can't find anywhere in the module options where to add a class name. This was easy in earlier versions of Joomla; there was a "Menu Class Suffix" field under "ADVANCED OPTIONS."
How do I add a class name to my custom module? Thanks for the answers.

In your manifest (mod_yourmodule.xml) add the following field inside the respective fieldset
<field name="moduleclass_sfx"
type="text"
label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC"/>
Hope it helps.

Related

Yii2 call action from another module

i have a module called 'elite' which render articles and another module called 'inet'.
Inet->controllerX need to get the HTML only from an article(elite->article->actionView).
so my question is:
should i call elite->article->actionView from another module or use components and inheritance and how?
Thank you!
You can easily render a view in any module, just need view path.
return $this->render('#app/modules/elite/views/name_controller/name_view');
You must replace the name of the controller and the name of the view.

Odoo - Hide a group or page in inherited view without name

I am trying inherit base.user_groups_view and base.view_users_form to hide some information which is not useful in my case.
base.view_users_form
I want to hide Preferences tab completely but this page have a string and doesn't have a name attribute that's why when i try to find out this page it says cannot locate in parent view and if i try to search using string attribute it says View inheritance may not use attribute 'string' as a selector.
base.view_users_form
Same a above when i try to hide Application spearator it says View inheritance may not use attribute 'string' as a selector.
How to hide these when we are in inherited view
Edit
I am using Odoo 10 Enterprise
In odoo 9 it is impossible to use 'string' in xpath expressions. In your case you should use an index. For example:
<xpath expr="//page[3]">
<!-- your code -->
</xpath>
This will search the third element that is a page in your view.
You could visit: xpath_string for more information.
I hope this help you!

Piranha- Custom Manager Area

I created a custom page in the manager area and would like to add the text area for editing HTML content. I can't seem to figure out how to reference the existing control. Thanks
To create an HTML-editor, follow these steps:
1: Include the partial view that sets up the html-editor
#Html.Partial("~/Areas/Manager/Views/Shared/Partial/TinyMCE.cshtml")
2: Add the class editor to your textarea
<textarea class="editor"></textarea>
That should do the trick.
Regards
/ HÃ¥kan

How can I see the final version of a Qweb template in Odoo/Openerp

Example:
I have a template which two custom modules modify. Because module 1 removes an element that module 2 depends on (it's in its Xpath) the module 2 cannot be installed.
How can I see the architecture of the template after modification by other modules?
You can check the template under Settings->Technical->Reports->reports then search for your report

django-cms TemplateDoesNotExist INHERIT

I installed django-cms and configured it according to the documentation.
The site comes up, but when I try to add a page I get an error:
TemplateDoesNotExist: INHERIT
I don't specify INHERIT as a template anywhere. It's finding my template directory ok, but I have no template named INHERIT and I don't know where that request is coming from.
Any help is greatly appreciated.
Can you check your TEMPLATES settings.
Looking through the source code:
By default template for a page set here:
TEMPLATE_DEFAULT = ... get_cms_setting('TEMPLATES')[0][0]
Source:
https://github.com/divio/django-cms/blob/develop/cms/models/pagemodel.py#L41
https://github.com/divio/django-cms/blob/develop/cms/models/pagemodel.py#L77
And looking through source code in utils/conf.py. A template named 'INHERIT' is added to list of available templates. And it looks like you own templates are not registered correctly and therefore the 'INHERIT' template is first item in the list.
https://github.com/divio/django-cms/blob/develop/cms/utils/conf.py#L99
https://github.com/divio/django-cms/blob/develop/cms/utils/conf.py#L136
I had failed to set the CMS_TEMPLATES as directed in the tutorial. (Actually, I had - but gremlins removed it).