문제

The look of a page printed by plone is ok and neutral thanks print.css. It would be rather handy to have a diazo rule which switchs off theming in the case that the page is printed (that the demanding device is a printer).

<notheme if="$print" />

But how to define $print in manifest.cfg?

도움이 되었습니까?

해결책

Unless you want to have a specific print URL, that won't work. print.css works at the browser/css level. The server doesn't even know, and the page isn't even reloaded.

I think the general consensus is that CSS is the right way to do this. So, stick with that strategy unless you have very unusual requirements.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top