在 Joomla 的管理员处将自定义样式添加到模块参数表单的最简单方法是什么



我的简单模块使用 3 个字段、2 个文本输入和一个 tinymce 文本区域,但文本区域看起来坏了。 http://img151.imageshack.us/img151/8648/joomla464.jpg

这是我的配置:

<config>
    <fields name="params">
        <fieldset name="basic">
            <field name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="PARAMMODULECLASSSUFFIX" />
            <field name="url" type="text" default="" label="Paste the url" description="" />
            <field style="clear:both;float:left;background-color:red;" name="description" type="editor" default="default" rows="20" cols="40" />            
        </fieldset>
    </fields>
</config>

您可以将 css 添加到

administrator/templates/bluestork/css/template.css(也就是说,如果您使用默认管理模板)

但是当Joomla更新时,您将丢失CSS的风险...您可以随时复制模板...给它一个不同的名称并在那里更新 CSS。因此,您的副本不会受到任何Joomla更新的影响。

因此,在那里添加您的 CSS,您只需要使用正确的 CSS 选择器。

否则我会使用文章选择器或类别选择器

            <field
                name="category_id"
                type="category"
                description="JGLOBAL_FIELD_CATEGORIES_CHOOSE_CATEGORY_DESC"
                extension="com_content"
                label="JGLOBAL_FIELD_CATEGORIES_CHOOSE_CATEGORY_LABEL"
                show_root="true"
                required="true" />

并将您需要的任何内容放在文章中......无论如何,您都没有太多空间将编辑器放在模块配置的右侧。

最新更新