Page 1 of 1

UDT size limit

Posted: Tue Oct 09, 2012 6:42 pm
by atz6975
Hi,
I'm getting some strange errors and it makes me wonder if there is any limit (decent or enforced) for the size of an UDT.
Thank you.

Re: UDT size limit

Posted: Tue Oct 09, 2012 8:55 pm
by Jo Morg
You may have to elaborate a bit more on this... I have fairly big UDT's and no errors (unless I make one myself). What kind of errors do you get, on what conditions, on what system...

http://forum.cmsmadesimple.org/viewtopi ... =40&t=2661

Re: UDT size limit

Posted: Thu Dec 13, 2012 7:37 am
by atz6975
Hi,
I clearly hit the 65K characters limit in my udt.
I realise I should move to righting my own module but I can't find any documentation.
Can someone point me to module writing 101?
My module (simply) needs to load a bid bunch of smarty variables and accessing some remote db.
Right now I use 6-8 udts to do this.

Thanks.

Re: UDT size limit

Posted: Thu Dec 13, 2012 8:00 am
by Jos
atz6975 wrote:load a bid bunch of smarty variables
Maybe the Custom Global Settings Module can be of help to do this. http://dev.cmsmadesimple.org/projects/customgs
The db work could be left for the UDT.

Re: UDT size limit

Posted: Thu Dec 13, 2012 8:14 am
by atz6975
Hi Jos and thank you for your answer.
But what my udt does is "load" smarty variables with data from a backend db. It has a lot of logic.

No idea as to where I can find module development documentation?
Thanks.

Re: UDT size limit

Posted: Thu Dec 13, 2012 8:17 am
by atz6975
I remember reading about a Module "boilerplate", but i guess it sunk with the wiki...
My module would be very simple :
1) 10-20 internal functions for processing
2) 2 DB calls
3) Logic
4) Smarty assignment

Re: UDT size limit

Posted: Thu Dec 13, 2012 8:24 am
by Jos
You can check the Skeleton module. It has lots of comment in its code, so you can learn what each part does. http://dev.cmsmadesimple.org/projects/skeleton

Unfortunately it is a tiny bit behind in releases, so you also need to check the api documentation http://apidoc.cmsmadesimple.org/ check CMSModule

Also the News module is a good example. http://viewsvn.cmsmadesimple.org/listin ... h=%2F&sc=0