If it’s not one thing it’s another. I’m getting so fed up with this code base.
I made a template override for all items of a particular class in a particular section. I also made a template override for a datatype in a particular class in a particular section. Everything worked fine. Then I made an override for another class in the same section. That template runs node_view_gui on its children. However, when this runs, the datatype template is not overridden. Why? I don’t know. It’s a bug, I imagine. I’d fix it, but I can’t wade through this jungle of code. I’d report it, but then I have to wait for someone else to fix it. I looked in the forums and in the bug reports on the ezPublish site. No one has mentioned it.
Recently, in my modified code, I removed an entire set of templates that seemed to no longer be in use anywhere. However, I now realize that I was wrong (no big deal, I’m using subversion so I can pull the templates back out). The problem is, the templates are in the "content/view/*.tpl" family. However, when a node is viewed it uses "node/view/*.tpl" to render it. The content templates seemed to not be used. However, I realized today that, along side "node_view_gui" there is "content_view_gui". And "content_view_gui" uses the templates. The difference? I have no clue. Why one would use one and not the other? I have no clue. The documentation mentioned them both but doesn’t give enough information to indicate why they both exist.
I am so annoyed.