how to register a public module?

Hi Everyone,
I want to register a module that should be accessible for customers
not logged-in yet. This module should return a JSON data. I want to
improve the login by making some validations while the user is typing,
before he click the submit button.
So, I create a simple OTRS package for install this module.
It's configuration file is like this:
<?xml version="1.0" encoding="iso-8859-1" ?>

Hi Juan, could it be because you gave the config entry has key the name ###PublicMyPackage? Maybe you need to use this as Action parameter in your URL. Regards, mg Am 27.07.10 18:16, schrieb Juan Manuel Rodríguez:
Hi Everyone, I want to register a module that should be accessible for customers not logged-in yet. This module should return a JSON data. I want to improve the login by making some validations while the user is typing, before he click the submit button.
So, I create a simple OTRS package for install this module. It's configuration file is like this:
<?xml version="1.0" encoding="iso-8859-1" ?>
<ConfigItem Name="PublicFrontend::Module###PublicMyPackage" Required="1" Valid="1"> <Description Lang="en">Frontend module registration for MyPackage.</Description> <Group>MyPackage</Group> <SubGroup>Frontend::Public::ModuleRegistration</SubGroup> <Setting> <FrontendModuleReg> <Description>MyPackage</Description> <NavBarName>MyPackage</NavBarName> <Title>MyPackage</Title> </FrontendModuleReg> </Setting> </ConfigItem> But the module is inaccesible in the public.pl. This URL: http://<HOST>/otrs/public.pl?Action=MyPackage doesn't work. And shows the following error: "Error: Got no ModuleReg!"
All files are copied correctly:
Kernel/Config/Files/MyPackage.xml Kernel/System/MyPackage.pm Kernel/Modules/PublicMyPackage.pm Kernel/Language/en_PublicMyPackage.pm Kernel/Output/HTML/Standard/PublicMyPackage.dtl
What i am doing wrong? Can someone helpme?
Thanks! Juan Manuel
--------------------------------------------------------------------- OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/
-- Martin Gruner Developer R&D OTRS AG Europaring 4 94315 Straubing T: +49 (0)6172 681988 0 F: +49 (0)9421 56818 18 I: www.otrs.com/ Geschäftssitz: Bad Homburg, Amtsgericht: Bad Homburg, HRB 10751, USt-Nr.: DE256610065 Aufsichtsratsvorsitzender: Burchard Steinbild, Vorstand: André Mindermann NEU: OTRS::ITSM 2.0 - jetzt mit dem brandneuen Change Management Modul. -Die erste ITIL® V3 kompatible und nach PinkVERIFY zertifizierte Open Source IT Service Management (ITSM) Lösung weltweit!
participants (2)
-
Juan Manuel Rodríguez
-
Martin Gruner