1
dreamgear
adding a block template to a module
  • 2004/3/2 21:41

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


I added a new custom block to the piCal module. Basically it's a clone of the "coming events" block but filtered down to events only in one category.

For starters I had the template for this block set to the existing pical_coming_schedule.html template in xoops_version.php. This all worked great. My block was up and running quickly and doing what I wanted it to. I used the admin/modules/update to get XOOPS to re-initialize the pical module.

Then, as a 2nd phase of my mod, I wanted to provide a new template for this new block. I cloned the pical_coming_schedule.html, changing its name and making a few other minor modifications. I then updated xoops_version.php to reference the new template.

At this point I got bogged down a little. Doing the admin/modules/update thing to the piCal module did not work. In fact my new block stopped working.

Finally I gave up and deactivated, deleted and reinstalled my modified piCal module. It all works fine now without any modifications to the code or templates whatsoever.

My question is this: Is this expected ? Should I be able to add a template from one version of a module to the next ? If so, how can I accomplish this ?

Thanks...

2
dreamgear
Re: adding a block template to a module
  • 2004/3/3 16:25

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


bump.

Do you module hackers understand what I mean ? Should updating the module have correctly incorporated the new block template?

I think the problems I had should be easily reproducable...

Login

Who's Online

102 user(s) are online (58 user(s) are browsing Support Forums)


Members: 0


Guests: 102


more...

Donat-O-Meter

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

Latest GitHub Commits