小编Tom*_*fin的帖子

无法在Magento CE 1.9中编译rwd皮肤SCSS

我试图根据rwdCE 1.9/EE 1.14中提供的皮肤创建Magento皮肤.但是,当我尝试编译SCSS时(在干净安装,删除文件后/skin/frontend/rwd/default/css),我收到以下错误:

$ compass compile scss
    write css/madisonisland-ie8.css
    write css/madisonisland.css
    write css/scaffold-forms.css
    error scss/styles-ie8.scss (Line 541 of scss/core/_common.scss: Invalid CSS after "a:not(": expected ")", was "".button")")
Sass::SyntaxError on line ["541"] of /var/www/development/magento-mirror/skin/frontend/rwd/default/scss/core/_common.scss: Invalid CSS after "a:not(": expected ")", was "".button")"
Run with --trace to see the full backtrace
Run Code Online (Sandbox Code Playgroud)

第541行scss/core/_common.scss是:

a:not(".button") {
Run Code Online (Sandbox Code Playgroud)

如果我删除周围的引号.button- 它会成功编译.但是,由于这是Magento的全新安装,我是否真的需要编辑文件才能让它们编译?我可能错过了指南针中的配置设置吗?

谢谢

sass magento magento-1.9 compass

10
推荐指数
2
解决办法
3836
查看次数

在JFormField中访问自定义字段的自定义属性

我在Joomla中创建了一个自定义字段类型,需要将参数传递给它.例如,我的JForm XML文件如下所示:

<?xml version="1.0" encoding="utf-8"?>
<form>
    <fieldset addfieldpath="/administrator/components/com_gallery/models/fields">

        <field name="images" 
            type="MultiImage"                         
                    label="Images"
            description="" 

            imagetable="#__gallery_images" 
            imagedir="../images/gallery/originals/"                        

                /> 

    </fieldset>

</form>
Run Code Online (Sandbox Code Playgroud)

我想访问自定义字段中的imagetableimagedir属性:

<?php
// No direct access to this file
defined('_JEXEC') or die;

jimport('joomla.form.formfield');

class JFormFieldMultiImage extends JFormField
{
    protected $type = 'MultiImage';

    public function getInput() {

        //this is where i want to access it
        $input = $this->imagetable;     

        return $input;
    }
}
Run Code Online (Sandbox Code Playgroud)

我假设你刚刚使用过$this->attributename,当我var_dump($this)看到属性被定义但它们是:protected.

我会很感激这方面的一些帮助:)

谢谢,汤姆

php joomla joomla2.5

4
推荐指数
1
解决办法
2671
查看次数

标签 统计

compass ×1

joomla ×1

joomla2.5 ×1

magento ×1

magento-1.9 ×1

php ×1

sass ×1