Ticket #1061 (new defect)

Opened 4 years ago

Last modified 3 years ago

Unable to change the StyleSheetPrint from a Theme

Reported by: psd Owned by: JeremyRuston
Priority: undefined Milestone: 2.7.1
Component: core Version:
Severity: low Keywords:
Cc:

Description (last modified by EricShulman) (diff)

Providing a StyleSheetPrint?? section in a theme isn't picked when printing. A work-round is to include an !media print section in the StyleSheet??, would be neater to support a separate StyleSheetPrint? section.

Change History

in reply to: ↑ description   Changed 4 years ago by EricShulman

  • description modified (diff)

Replying to psd:

Providing a StyleSheetPrint? section in a theme isn't picked when printing. A work-round is to include an !media print section in the StyleSheet?, would be neater to support a separate StyleSheetPrint section.

  Changed 4 years ago by EricShulman

  • description modified (diff)

This is true for *all* of the shadow stylesheets (StyleSheetLayout?, StyleSheetColors?, StyleSheetPrint?, and StyleSheetLocale?).

However, special handling for these names is not needed: it is a very simple matter to define several separate StyleSheetSomething sections in a theme definition and then join them together in the StyleSheet section of that theme, like this:

!StyleSheet
... general css goes here
[[SomeTheme##StyleSheetLayout]]
[[SomeTheme##StyleSheetColors]]
[[SomeTheme##StyleSheetPrint]]
[[SomeTheme##StyleSheetLocale]]
!StyleSheetLayout
... layout css goes here ...
!StyleSheetColors
... color css goes here ...
!StyleSheetPrint
... print css goes here ...
!StyleSheetLocale
... locale css goes here ...
!end

  Changed 4 years ago by FND

  • milestone set to 2.5.4

  Changed 4 years ago by FND

  • milestone changed from 2.6 to 2.6.1

  Changed 3 years ago by MartinBudden

  • milestone changed from 2.6.2 to 2.7.1

Milestone 2.6.2 deleted

Note: See TracTickets for help on using tickets.