Forum

Thread tagged as: Question

Hiding Blocks' Templates

Hello, is there a way to hide the templates/content/blocks folder from editors?

I've tried adding underscores and it does hide them, but then the blocks don't work inside the template.

James Curran

James Curran 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I've tried adding underscores and it does hide them

That's how to do it.

but then the blocks don't work inside the template.

Can you explain?

Hi, sorry for the late reply.

I have a template using blocks, the blocks templates are in templates/content/blocks. If I add an underscore to the filenames e.g., _links.html the title of the block is visible in the editor but won't expand to show the fields within the block.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you also updated the sub template include to match the new template name?

Oh dear yep that was it!