We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. Chris
  2. General Discussion
  3. Wednesday, 26 June 2013
  4.  Subscribe via email
Hello, I wrote my own mixin in custom-variables.less in my theme folder:

.moduleContentBorder(@radius: 5px, @color: fade(@T3borderColor, 20%)) {
.border-radius(@radius);
border: 1px solid @color;
}


on site it works but when I open Theme magic throws error:
Fatal error: Cannot access empty property in /public_html/dev/libraries/joomla/registry/registry.php on line 336


When I put this mixin into template.less it don't work in developer mode.
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Chris,

Sorry but it seems you can not add custom mixins in those file.
As it named, you can not use other less things except variable here.

You can add the mixins in templates.less or the global mixins.less in 'less' folder.

We will try to extend this features if possible.

Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Ok, now I know what was wrong. It was not working because I added mixin to theme variables.less file and used it in template.less in template folder(not theme folder). Now I got it in variables.less in template folder and it works fine. But there is another problem, with paths in Theme magic - instead normal link I got this
/templates/my_template/less/@%7BT3ImagePath%7D/@%7Bimage%7D.png


But I think it is because I use it in my mixin.

.moduleShadow(@image: "module-shadow") {
content: '';
width: 100%;
height: 15px;
background: transparent url(@{T3ImagePath}/@{image}.png) top center no-repeat;
background-size: 100%;
display: block;
}


Thanks for your reply.
  Krakow, Poland
Visit 
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.