Hi DonGawgon
you are talking about 2 different things. I added the ticket to PC for calling postcalendar from the Content module. Within Content you can call a module directly via its
API and then you need the module to use the function call arguments. With a
URL you can already select a category directly like what you did above.
So using the category property from the registry and the category ID:
index.php?module=PostCalendar&func=view&postcalendar_events[__CATEGORIES__][RegistryPropertyName]=10009
You can also use:
index.php?module=PostCalendar&func=view&prop=RegistryPropertyName&cat=10009
this is the same way it is being used in News for a single category selection, somewhat cleaner then the __categories__ call and less prone to string issues in getting the parameters from the
URL. But this is only for 1 category under a certain property.
BTW, see also this ticket:
http://code.zikula.org/soundwebdevelopment/ticket/173 where I added code for the Date and viewtype as well. I needed to filter via the Content module on the year as well, so that is why I needed the Date as
API function argument as well.
--
campertoday.nl, Module development, Dutch Zikula Community