I have been using postnuke for quite some time now, and have contributed to many mods etc. to existing modules and now i am trying my hand at creating a module.
i have just finished an upgraded version of pnamazon that use REST/ECS 4.0 and would now like to "modularize it".
Essentially, I would like to create 4 arrays in the initialization process:
1. for locale
2. for modes (categories)
3. for searchtype
4. xmlserver to use
plus i have a couple variables for:
1. associateid
2. subid
3. default mode
4. default browsenode
5. showxml request
etc.
now i have been playing with the Example module as suggested and i am running into a couple roadblocks on the way.
first off:
1. how do i create the multiple tables?
2. whenever i assign a variable via PNmodSetVar for a string that includes alphanumeric characthers or dasshes (-) the initialization fails. it appears enclosing these variables with ' ' allows initialization. however if i then go to the admin page and attempt to change a setting, i get Sorry! Item failed to load and then some of the variables lose their settings.
i have trolled near and far in search of a step by step definitive guide to:
1. Modules creation howto
2. Using pnRender
one additional question: Can i use PNrender for caching eventhough i do not have a API-compliant module?
thanks
supa
--

Caribbean News
Online Shopping from USA, Canada, UK, France, Germany
On Facebook
