[TYPO3] Erase Pencils in Printversion
    Christopher 
    bedlamhotel at gmail.com
       
    Thu Jun  8 16:42:26 CEST 2006
    
    
  
Hi,
On 6/8/06, Thomas Menzel <menzel at ds5120.fb12.tu-berlin.de> wrote:
> Hello,
>
> I am using the extensions "simulatebe" and "feuser_admin". When a user
> is logged he/she can edit in FE by clicking the edit-pencils. My Problem
> is: The edit-pencils do not disappear in the print version of the page.
> What I tried is this (in my main template):
>
> [globalVar = TSFE:type=1]               #type=1: printversion
> printversion.config.admPanel {
> enable.edit = 0
> module.edit.forceDisplayFieldIcons = 0
> hide = 1
> }
> [global]
>
> The TSConfig of the user is:
>
> admPanel {
> enable.edit = 1
> module.edit.forceDisplayFieldIcons = 1
> hide = 1
> }
>
> but the edit-pencils still appear in the print version.
>
> Any ideas apreciated.
If the html surrounding the pencil icons is specific enough, you can
use css to hide them only when they're printed. For example, if you
had this markup:
<div class="edit"><img src="..." /></div>
...then you could use this css to hide it in printed pages:
@media print {
  .edit { display:none; }
}
-Christopher
    
    
More information about the TYPO3-english
mailing list