Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-12-24 19:11:48

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

[Solved] txp:css on txp v4.7.2

I was looking at the docs and found no new tags for calling the flat css. Testing <txp:css format="link" name="print" media="print" format="flat.css" /> did not work. Is there a way?

Got it… It should be <link rel="stylesheet" media="print" href="<txp:css format="url" name="print" />" />… I’ll add it to the docs.

Last edited by colak (2018-12-24 19:18:11)


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

Offline

#2 2018-12-25 11:21:01

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

Re: [Solved] txp:css on txp v4.7.2

Or just <txp:css name="print" media="print" format="flat.link" />?

Offline

#3 2018-12-25 11:27:33

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

Re: [Solved] txp:css on txp v4.7.2

etc wrote #315722:

Or just <txp:css name="print" media="print" format="flat.link" />?

That’s even nicer!!! I’ll use that in the docs!!


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

Offline

#4 2018-12-25 17:20:46

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

Re: [Solved] txp:css on txp v4.7.2

etc wrote #315722:

Or just <txp:css name="print" media="print" format="flat.link" />?

That only returns the url of the css but not the rest of the <link rel="stylesheet" ... code. In my install, there seems to be no difference in the parsing of

<txp:css name="print" media="print" format="flat.link" />

and

<txp:css name="print" media="print" format="url" />


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

Offline

#5 2018-12-25 18:39:44

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

Re: [Solved] txp:css on txp v4.7.2

That’s what I get:

<link rel="stylesheet" media="print" href="http://localhost/textpattern/themes/four-point-seven/styles/print.css" />

Offline

#6 2018-12-25 19:16:10

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

Re: [Solved] txp:css on txp v4.7.2

It’s Christmas day and I feel bad writing in the forum, especially for minor issues.

I have added

<!-- <txp:css name="print" media="print" format="flat.link" /> -->
<!-- <txp:css name="print" media="print" format="url" /> -->

and I get

<!-- http://www.neme.org/css/neme960/print.css -->
<!-- http://www.neme.org/css/neme960/print.css -->

both visible in the head of my site.


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

Offline

#7 2018-12-25 19:33:03

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

Re: [Solved] txp:css on txp v4.7.2

hmmm maybe it is rvm_css messing with it. I’ll check.

Got it!! with the plugin disabled I get

<!-- <link rel="stylesheet" media="print" href="http://www.neme.org/themes/neme960/styles/print.css" />
 -->
<!-- http://www.neme.org/css.php?n=print&amp;t=neme960 -->

All’s good.

Last edited by colak (2018-12-25 19:34:44)


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

Offline

#8 2018-12-25 20:12:00

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

Re: [Solved] txp:css on txp v4.7.2

I thought it wasn’t in use any more :-) Merry Christmas to all.

Offline

#9 2018-12-25 20:46:57

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

Re: [Solved] txp:css on txp v4.7.2

etc wrote #315733:

I thought it wasn’t in use any more :-) Merry Christmas to all.

I’m still in the process of phasing it out. i’ve been using the plugin since it came out. I’m now dealing with the foreseeable and imitable separation trauma:)


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

Offline

Board footer

Powered by FluxBB