hi
I am not sure to understand well how works Content macros http://www.zenphoto.org/news/content-macros.
in a page, I added some content in Codeblocks 3.
in my page content, I added [CODEBLOCK 3] somewhere.
but in my FE, I have the following message :
[CODEBLOCK 3] should have 1 parameter.
so, is it a bug or how to use this macro ?
I checked html code of my content.
in fact, there was a introduce by a copy/paste from the zenphoto news.
After purge of html code, it works fine.
macro will certainly be useful, but we will have to be careful with the html code generated by TinyMCE, and it may be a point to be specified in the user guide...
Hm, I did not notice the non breaking white spaces in my tests. But copy&paste can lead to some issues in TinyMCE. For example if you copy text from a website Safari somehow carries some safari specific inline styles with it sometimes that leads to unexpected layout changes.
in the same way, what should be the album name for [SLIDESHOW %1 %2] macro ?
I set [CODEBLOCK 'images/photos-du-mois' true], as explain in admin/macro, in a content block, and I obtain this error in my page :
[CODEBLOCK 'images/photos-du-mois' true] should have 1 parameter.
[CODEBLOCK 'images/photos-du-mois' true] of course does not work as the codeblock macro has only one parameter, that for the the codeblock to get.
[SLIDESHOW images/photos-du-mois true] is the usage for the slideshow. No quotes and no spaces for the parameters itself (other wise it would be noted as "%1" "%2").
ooops! of course, I would use slideshow macro...
however, [SLIDESHOW images/photos-du-mois true] doesn't work, and break html flow.
I will create a ticket.
see the ticket, to avoid multiple conversations on same subject
https://github.com/zenphoto/zenphoto/issues/406