【问题标题】:How to theme the ctools modal window如何为 ctools 模式窗口设置主题
【发布时间】:2010-03-28 02:15:42
【问题描述】:

有人知道我如何为 ctools 模式窗口设置主题吗?我已经尝试将它附带的 css 放在我自己的主题中以覆盖它,但这对我不起作用。

【问题讨论】:

    标签: modal-dialog themes drupal-6 drupal-ctools


    【解决方案1】:

    ctools 文档 ctools\help\modal.html 的一些提示

    drupal_add_js(array(
        'CToolsModal' => array(
          'modalSize' => array(
            'type' => 'fixed',
            'width' => 450,
            'height' => 350,
            'contentBottom' => 800), 
        ),
      ), 'setting');
    

    【讨论】:

      【解决方案2】:

      事实证明,这是一个非常容易回答的问题。我将答案放在这里,以防其他人遇到与我相同的问题:

      我的错误是我不知道在我的主题文件夹中仅包含一个 modal.css 文件是不够的。

      要正确覆盖核心/贡献模块的 css 文件,编辑 theme.info 文件以引用该 css:

      stylesheets[all][] = modal.css
      

      更多信息请访问http://drupal.org/node/263967

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-09-20
        • 1970-01-01
        • 2010-12-11
        • 2014-02-15
        • 1970-01-01
        • 2023-03-10
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多