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: 7,345
Website

[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.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

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

etc
Developer
Registered: 2010-11-11
Posts: 3,369
Website

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

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

Online

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

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,345
Website

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.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

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

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,345
Website

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.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

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

etc
Developer
Registered: 2010-11-11
Posts: 3,369
Website

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" />

Online

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

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,345
Website

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.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

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

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,345
Website

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.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

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

etc
Developer
Registered: 2010-11-11
Posts: 3,369
Website

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

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

Online

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

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,345
Website

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.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

Board footer

Powered by FluxBB