Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#169 2014-01-21 18:40:56

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: rvm_css (v1.2)

OK, Finally getting into LESS in a LESS halfhearted way…

I don’t seem to be able to import a less file with mixins, etc. and use those within the master file.

EXAMPLE.
I have two less files “gradients.less” and “master.less”

gradients.less looks like.

.lesserific{
color:blue;
text-decoration:underline;
}

master.less looks like

@import "/css/gradients.less";

.lester{.lesserific}

I would expect *master.css” to include:

.lester{
color:blue;
text-decoration:underline;
} 

But for some reason .lester doesn’t turn up for the party in “master”

Any ideas fellers?

Offline

#170 2014-01-21 19:54:54

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: rvm_css (v1.2)

@mrdale, try:

@import "gradients.less";

Offline

#171 2014-01-21 23:41:35

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: rvm_css (v1.2)

I think I tried that. No more explicit path than that?

[edit] Works as described. I was missing an error message that was semi hiding.

Might be nice to pipe LESS errors through txp alert dialogs?

Offline

#172 2014-05-02 13:44:38

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: rvm_css (v1.2)

Can I suggest a easy mod to the plugin?
In all website where the plugin is used I mod it near line 78

// ' href="'.hu.$file.'" />';
' href="/'.$file.'" />';

So, I can view the css in all subdomine. like www.domine.com

Offline

#173 2014-05-03 04:02:25

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rvm_css (v1.2)

MarcoK wrote #280551:

So, I can view the css in all subdomine. like www.domine.com

Adding the site URL to the CSS location is a correct practice. It for one, let’s you to install Textpattern to a sub-directory and the link will still be pointing to the correct location.

If you want to change the linked location, you can do it by changing your site_url in your site’s preferences, or by using your own HTML link tag.

What your change practically does, is that it makes so that requests originating from different sub-domains use that different origin domain to access the file, basically leading to different file location. This then allows serving different file based on the domain, and makes so that web browsers do not consider the file as same and will cache requests originating from different sub-domains separately.

mrdale wrote #278367:

Might be nice to pipe LESS errors through txp alert dialogs?

Inline alert boxes would be possibility, dialogs not so much. You can only have one per page and they do not host larger amount of content that well (the height is limited).

Last edited by Gocom (2014-05-03 04:07:38)

Offline

#174 2018-03-23 17:53:49

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: rvm_css (v1.2)

Hi ruud,
Just a heads up that in txp 4.7.0 beta 2, the title in Preferences>Admin appears as rvm_css_dir instead of Style directory.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#175 2018-03-23 18:41:35

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: rvm_css (v1.2)

Further testing revealed that the css static file is not updated on txp 4.7.0 beta 2.

>Edited to add that spf_js saves the file just fine.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#176 2018-03-23 20:10:45

etc
Developer
Registered: 2010-11-11
Posts: 5,187
Website GitHub

Re: rvm_css (v1.2)

colak wrote #310297:

Further testing revealed that the css static file is not updated on txp 4.7.0 beta 2.

Yiannis, if you have only one theme installed, that’s weird. Otherwise, this could be an explanation.

Offline

#177 2018-03-24 05:56:42

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: rvm_css (v1.2)

etc wrote #310300:

Yiannis, if you have only one theme installed, that’s weird. Otherwise, this could be an explanation.

Hi Oleg,
I am testing the beta on a cloned site so technically I have no themes installed.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#178 2018-03-24 10:15:31

etc
Developer
Registered: 2010-11-11
Posts: 5,187
Website GitHub

Re: rvm_css (v1.2)

Hi Yiannis,

check if the plugin type is “Public+Admin (+AJAX)”. This will not fix everything, but should work for one theme.

Offline

#179 2018-03-24 17:04:38

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: rvm_css (v1.2)

etc wrote #310306:

Hi Yiannis,

check if the plugin type is “Public+Admin (+AJAX)”. This will not fix everything, but should work for one theme.

That was it! The plugin type was just “Public+Admin.” Changing it to include Ajax did the trick.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#180 2018-03-25 13:22:54

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: rvm_css (v1.2)

I’ve just release a new version of this plugin that fixes the aforementioned problems and is also compatible with multi-theme support in TXP 4.7.

Offline

Board footer

Powered by FluxBB