Some questions about "GetContentBlockFieldInput"
Posted: Thu Feb 11, 2016 2:03 pm
As I'm diving further into module development for CMSMS, I'm playing with the idea of a content module. I'm studying the code from CGContentUtils and came accross 'GetContentBlockFieldInput'.
I looked it up in the API doc and would like to explain it in a really simple way to see if I get the workings:
So the system is parsing a template and comes accross this content_module tag. Is says hey, let's look for a block parameter. When it finds it, this gets passed as the first argument to the 'GetContentBlockFieldInput' function.
Now how are the other parameters (like value and params) passed in from this smarty call?
What is the 'adding' parameter? I see it is a flag that basically tells if I'm adding new content or editing existing, but what's the difference?
How can I work with the content object? Is it automatically available?
I looked it up in the API doc and would like to explain it in a really simple way to see if I get the workings:
So the system is parsing a template and comes accross this content_module tag. Is says hey, let's look for a block parameter. When it finds it, this gets passed as the first argument to the 'GetContentBlockFieldInput' function.
Now how are the other parameters (like value and params) passed in from this smarty call?
What is the 'adding' parameter? I see it is a flag that basically tells if I'm adding new content or editing existing, but what's the difference?
How can I work with the content object? Is it automatically available?