ZenphotoCMS Forum
codeblock in articles - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: codeblock in articles (/thread-12301.html)



codeblock in articles - ventesites - 2015-09-08

hello

Is there a way to insert a codeblock exactly where i want into my articles text?

Thanks




codeblock in articles - acrylian - 2015-09-08

Codeblocks can either be called by their related theme functions pages or via their content macro within supported content fields:
http://www.zenphoto.org/news/content-macros




codeblock in articles - ventesites - 2015-09-08

thanks, i entered this
[CODEBLOCK 1] and instead of outputting the code I want it shows [CODEBLOCK 1]....




codeblock in articles - acrylian - 2015-09-08

Where did you put it exactly? Note that macros are only processed on the front end.




codeblock in articles - ventesites - 2015-09-08

in the text, between 2 sentences, where i want my pictures to show up




codeblock in articles - acrylian - 2015-09-08

What theme? Example link? It is generally working as I just tried to be sure.




codeblock in articles - ventesites - 2015-09-08

theme is zpbase, example link:
http://www.crystal-energy.com/proprietes-des-mineraux/news/particularites-de-la-tourmaline-noire




codeblock in articles - ventesites - 2015-09-08

i tried with space and without before 1...




codeblock in articles - acrylian - 2015-09-08

The space is required. Sorry, I just see that the macro article does not really mention that you need to enable the exampleMacro plugin.




codeblock in articles - ventesites - 2015-09-08

it's working now, thanks !