When changing lightbox2.insert-image.tpl.php in copy it to own theme directory, this file is ignored.
Changing lightbox2.insert-image.tpl.php in lightbox2 module directory works fine.

How can this problem be solved?
Thanks.

Comments

origo’s picture

Did you clear the theme registry? http://drupal.org/node/173880#theme-registry

drupalfan2’s picture

Of course, I cleared it like this many times:
On the "Administer > Site configuration > Performance" page, click on the "Clear cached data" button.

Have you tested this issue? Do you have the same problem?

origo’s picture

Sorry, just checking.

Yes, I can reproduce it, but I'm at a loss to explain it. I would have thought that standard theme template overrides would work, but maybe Insert behaves differently.

Update:
I found the problem: the theme template file must use dashes instead of dots in the file name. Then it works. I created a new patch in the original issue #34.

origo’s picture

Status: Active » Closed (fixed)

Handled in the original issue.