Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#181 2018-03-25 13:52:44

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

Re: rvm_css (v1.2)

Thanks ruud… downloaded and checking it now.


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

Online

#182 2018-03-25 15:32:53

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

Re: rvm_css (v1.2)

I’m not sure why but it might be because of themes. I am testing txp beta2 with the latest rvm css. The site I am testing it on is basically an online (old) clone of the neme.org installation, so themes are yet to be used.

This is what I have in the page template:

<txp:rvm_css n="default" format="link" media="all" />
<txp:if_article_list><txp:rvm_css n="articlelists" format="link" media="all" /></txp:if_article_list>
<!--[if IE]><txp:rvm_css n="ie-fluid" format="link" /><![endif]-->
<!--[if IE 7]><txp:rvm_css n="ie7" format="link" /><![endif]-->
<!--[if gte IE 9]<style type="text/css">nav li {filter: none;}</style><![endif]-->
<txp:rvm_css n="print" format="link" media="print" />

and this is what is parsed

<link rel="stylesheet" media="all" href="http://dev.tld/css/default/default.css" />
<link rel="stylesheet" media="all" href="http://dev.tld/css/default/default.css" />
<!--[if IE]><link rel="stylesheet" media="screen" href="http://dev.tld/css/default/default.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" media="screen" href="http://dev.tld/css/default/default.css" /><![endif]-->
<!--[if gte IE 9]<style type="text/css">nav li {filter: none;}</style><![endif]-->
<link rel="stylesheet" media="print" href="http://dev.tld/css/default/default.css" />

For some reason which I cannot understand the default.css is loading everywhere but the rest, such as articlelists.css, are ignored.

Edited to add that it might be a problem with the txp tag which is enclosing the articlelists.css

>Edit 2: Just figured out that n has been deprecated. Replacing it with name works as intended.

Last edited by colak (2018-03-26 11:46:34)


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

Online

#183 2018-03-29 14:47:57

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Re: rvm_css (v1.2)

Hi Ruud.

Sorry, IMHO or maybe I missed something, but I thing your plugin’s help lacks an important information:

Note: because of the new “theme” feature support, all CSS files are stored into a your-css-directory/your-theme-name/ directory depending of your themes name.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#184 2018-03-31 09:24:08

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

Re: rvm_css (v1.2)

Patrick, why is that important info? Saving the stylesheets and adding the link to the HTML is handled automatically.

Offline

#185 2018-03-31 14:14:52

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Re: rvm_css (v1.2)

You’re right Ruud. Not really important.

Someone could explain me how to use LESS syntax with rvm_css? I tried and i can’t achieve such (simple) things. You can reply me by email in order to not surcharge this thread. Thank you.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#186 2018-03-31 20:53:20

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

Re: rvm_css (v1.2)

No, please do it here. I don’t use LESS myself; I just added it upon request, so there must be other people more knowledgeable than me. All I know about it is in the plugin help ;)

Offline

#187 2018-04-02 13:49:24

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Re: rvm_css (v1.2)

Ok. Sorry Ruud I’m late for my answer but I needed do lot of tests before get a result.

Method:

Create a CSS file with the LESS syntax. At this point, it is very important to have a valid LESS file (best practice: make a test from the inline compiler whitin the dedicated website of the PHP class http://leafo.net/lessphp/) otherwise you have lot of chance to obtain nothing. Then put it into the Textpattern CSS panel.

For our example, I choosed to name this LESS content defaultless (Important: do not add a .less suffix due to file mane incompatibilities).

When you save this file, a new one is created named default.css into the “default” directory not the “rvm Stylesheet directory” set into your TXP preferences.

I can call this file as this:
<txp:rvm_css format="link" n="defaultless" />
(Note: the theme attribute seems to do nothing.)
…Or, I can invoque it as a static file with a <link /> tag.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

Board footer

Powered by FluxBB