Posted on: 2010/8/31 2:42
Re: How to hack about: one block with one template file,not share the same template file ??
You want not a cloned block, but a changed copy of the block.
Check out the module tutorial on kaotik.biz, there is a section that deals with blocks.
Then edit the xoops_version file of your module and add a new block by duplicating the target block entries and giving it new names. Then go to the file where the original block function is defined and duplicate there also the code and rename the function. Duplicate also the template file with the new name.
Update the module.
You now have two blocks with the same function, yet different setup and templates.