1
rtskoo
Re: How to hack about: one block with one template file,not share the same template file ??
  • 2010/8/30 23:45

  • rtskoo

  • Just popping in

  • Posts: 5

  • Since: 2010/8/30


We know that when a new block is cloned ,its template file is empty ,even saved after some code written in this empty template file . Because this new block shares the same template file with the old block.So how can we do to make this new block's template file usefull ? That means this new block's template file will be not empty after modify it,and it will take effect for the new block.



2
rtskoo
Re: How to hack about: one block with one template file,not share the same template file ??
  • 2010/8/30 23:07

  • rtskoo

  • Just popping in

  • Posts: 5

  • Since: 2010/8/30


good idea!thank u
but I need PHP code hacking the core so that I can use the template file in menu "System Configuration"->"Templates" which is empty berfore hack.Or other better way?
And I have try the module "Defacer".However it is for page,not for a block in the page.



3
rtskoo
Re: How to hack about: one block with one template file,not share the same template file ??
  • 2010/8/30 22:29

  • rtskoo

  • Just popping in

  • Posts: 5

  • Since: 2010/8/30


Thanks. But I have set the $block.title null, so I cannot use it in "IF". $block.id can be used.
Is there any better way without "IF" in template file?



4
rtskoo
How to hack about: one block with one template file,not share the same template file ??
  • 2010/8/30 14:30

  • rtskoo

  • Just popping in

  • Posts: 5

  • Since: 2010/8/30


Is there anyone knows:
How to make one block have one template file ,not share the same template file ??




TopTop



Login

Who's Online

191 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 191


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits