cron_printlink打印页面的功能,简单事例.
page = PAGE
 
page {
 
  typeNum = 0
 
  10 = TEXT
 
  10.data = field : title
 
  10.wrap = <h1> | </h1>
 
  20 < plugin.tx_cronprintlink_pi1
 
  50 < styles.content.get
 
}
print_page = PAGE
 
print_page {
 
  typeNum = 98
  10 = TEXT
 
  10.data = field : title
  10.wrap = <h1> | </h1>
  20 < styles.content.get
  30 = <hr/>
  40 < plugin.tx_cronprintlink_pi2
  60 = HTML
  60.value = <script>window.print();</script>
}


若转载请注明出处: TYPO3中文网
本文地址: http://www.51typo3.cn/typo3/72.html