Here there.
I'm writing my first module and I can say, there is progress.
Looked a lot at other modules available.
Now I was wandering. Is the some documentatie where I can find al the commands/functions I can use.
For example. I now want to transfer multiple variables to the template.
So I tryed $tpl->assign.
But how can I get these variable presented in the tpl.
So when I had some documentation with al the available commands/functions (sorry that I call it commans/functions but I'm not a programma (yet)) it would make it much easier.
T.I.A. for the help
IS Document available
Re: IS Document available
For the CMSMS core all the code is documented in here: https://apidoc.cmsmadesimple.org/
It's not really the easiest to navigate through, but if you use the search it works quite well. I tend to find an interesting method (function) and then see what else is interesting in the same class.
For smarty functionality all the docs are here: https://www.smarty.net/docs/en/
For assign: https://www.smarty.net/docs/en/api.assign.tpl
If you want to see what variables are available in the template just put {get_template_vars} in your actual template.
Keep asking questions - very happy to help
It's not really the easiest to navigate through, but if you use the search it works quite well. I tend to find an interesting method (function) and then see what else is interesting in the same class.
For smarty functionality all the docs are here: https://www.smarty.net/docs/en/
For assign: https://www.smarty.net/docs/en/api.assign.tpl
If you want to see what variables are available in the template just put {get_template_vars} in your actual template.
Keep asking questions - very happy to help

-
- Power Poster
- Posts: 481
- Joined: Wed Jan 25, 2006 11:53 am
Re: IS Document available
Thanks Chris
I found the smarty help page and did manage to transfer the variables.
My module is working so far now. The only (most difficult I think) thing to do is add the jquery script.
I'm (trying) to build a popup manager. The Popups can be added, deleted and modified in my module already.
Also the content of the popup ({popup id-4}) is show as the output on the frontend.
So far, so good.
Now the output should be presented by the jquery script.
I am fighting to code it but for now (thanks to your developer tips) I think I'm winning.
If I have any question, I will let you know.
Thanks again
I found the smarty help page and did manage to transfer the variables.
My module is working so far now. The only (most difficult I think) thing to do is add the jquery script.
I'm (trying) to build a popup manager. The Popups can be added, deleted and modified in my module already.
Also the content of the popup ({popup id-4}) is show as the output on the frontend.
So far, so good.
Now the output should be presented by the jquery script.
I am fighting to code it but for now (thanks to your developer tips) I think I'm winning.
If I have any question, I will let you know.
Thanks again