Sep 22, 2021 2:46 PM - edited Sep 22, 2021 2:49 PM
I'm building a new custom blog post template via Hubl.
Everything seems to be going well except for an issue with a specific module. When I apply the new template to the blog post, this module behaves as if no content was added to it.
The blog keeps the images and copy that was there with the prior template change but erases the content that was in this module. The module is also custom.
If I switch back to the old template, the module shows that it has the content within it again.
Happy to provide any extra information if needed!
Sep 22, 2021 3:14 PM
Sep 22, 2021 3:37 PM - edited Sep 22, 2021 3:37 PM
Thanks for the reply.
I'm using the same module that was in the old template. I just added the module's snippet to the Hbul/HTML template.
All the other content stays and shows in the new template.
It's just this one module where the content from posts that are already published does not transfer to the new template.
The strange part is if I switch back to the old template, the content within that module is still there and shows on the post.
Sep 23, 2021 3:05 AM
Hi @ckingg ,
Switching templates and keeping the content is a tricky thing. But if the module is on the same position as the old template and has the same field names, it could work. Sadly, this is never certain. Not sure there is a trick available to keep the content.
Sep 23, 2021 9:35 AM
When I convert the old template to HTML, it shows (% module_block %) and (% module_attribute %} tags whereas in the new template I copied the code snippet and pasted it into that template. Would those tags affect this at all?