ZenphotoCMS Forum
What are "Extra Content" and "Code Block" used for? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: What are "Extra Content" and "Code Block" used for? (/thread-7873.html)



What are "Extra Content" and "Code Block" used for? - redkobold - 2010-11-18

This is probably a silly question but on the back end for Pages, what is "Extra Content" and "Code Block" used for?




RE: What are "Extra Content" and "Code Block" used for? - zenzational - 2026-08-24

Sixteen years later, is it still a silly question to ask the same question? On the back end for Pages, what is "Extra Content" and "Code Block" used for?

I can't find anything about it in the user guide.




RE: What are "Extra Content" and "Code Block" used for? - sbillard - 2026-08-25

They are means of providing "extra" stuff for your website.

Extra Content is simple HTML, Code Blocks can have PHP code within them.

Exactly what happens depends on the theme you are using. Search your themes and plugins for printCodeblock and print*ExtraContent. (The asterisk is news or page.)




RE: What are "Extra Content" and "Code Block" used for? - zenzational - 2026-08-26

I'm using the ZenPage theme.

If I enter a line of text in the ExtraContent section and click 'Apply' that text does not appear when I click 'View Page'. Presumably that means the ZenPage theme doesn't support ExtraContent?

Please be patient with me, I'm only a poor Windows user.




RE: What are "Extra Content" and "Code Block" used for? - acrylian - 2026-08-26

Yes, the Zenpage theme does not support the extracontent field for pages or news. Even if by it structure it would just display where the content display anyway.. So just enter everything in the main content field. But it supports Codeblock 1 for news articles and pages.

Same applies for extra fields on images like location and such as well. Some fields are meant to be used for custom things like own themes.




RE: What are "Extra Content" and "Code Block" used for? - ctdlg - 2026-09-02

"Extra Content" and "Code Block" are a must have !
I do use both.
I would also add macros : very useful, too !