Woodbench Media 9 Years Ago Can ADT be recreated using the resources importer? Please sign in to reply. Reply as... Cancel James Falkner Woodbench Media 9 Years Ago I did not find a way to do it with ResourceImporter, but you can do it with an application.startup.event as shown in this example: https://github.com/jamesfalkner/VisitorApp-portlet (look at the com.visitorapp.action.StartupAction class - it creates ADTs from both inline literal strings and resource files from the plugin) Please sign in to reply. Reply as... Cancel James Falkner James Falkner 9 Years Ago BTW, @eduardo - it would be awesome if Liferay would automatically do this when a handler declares a template path through getTemplatesConfigPath() and the plugin is deployed! Right now this code is never called except at Portal startup time... Please sign in to reply. Reply as... Cancel Eduardo P. Garcia James Falkner 9 Years Ago @Woodbench You could do it using the resources importer and a lar file containing the ADTs. The sample coverflow-theme (see https://github.com/epgarcia/liferay-plugins/tree/DEVCON2013/themes/coverflow-theme) install an ADT for a custom plugin that way.@james It'd be a nice feature indeed so I'll propose it. Thanks! Please sign in to reply. Reply as... Cancel Woodbench Media Eduardo P. Garcia 9 Years Ago Are .LAR files still locked down to a specific version of Liferay? That would be the downside to including the .lar's inside of resources importer. It's nice to create one plugin that works for both 6.2 CE and EE Please sign in to reply. Reply as... Cancel Eduardo P. Garcia Woodbench Media 9 Years Ago At least for 6.2 you still have to generate one LAR for CE and other for EE. Please sign in to reply. Reply as... Cancel
James Falkner Woodbench Media 9 Years Ago I did not find a way to do it with ResourceImporter, but you can do it with an application.startup.event as shown in this example: https://github.com/jamesfalkner/VisitorApp-portlet (look at the com.visitorapp.action.StartupAction class - it creates ADTs from both inline literal strings and resource files from the plugin) Please sign in to reply. Reply as... Cancel James Falkner James Falkner 9 Years Ago BTW, @eduardo - it would be awesome if Liferay would automatically do this when a handler declares a template path through getTemplatesConfigPath() and the plugin is deployed! Right now this code is never called except at Portal startup time... Please sign in to reply. Reply as... Cancel Eduardo P. Garcia James Falkner 9 Years Ago @Woodbench You could do it using the resources importer and a lar file containing the ADTs. The sample coverflow-theme (see https://github.com/epgarcia/liferay-plugins/tree/DEVCON2013/themes/coverflow-theme) install an ADT for a custom plugin that way.@james It'd be a nice feature indeed so I'll propose it. Thanks! Please sign in to reply. Reply as... Cancel Woodbench Media Eduardo P. Garcia 9 Years Ago Are .LAR files still locked down to a specific version of Liferay? That would be the downside to including the .lar's inside of resources importer. It's nice to create one plugin that works for both 6.2 CE and EE Please sign in to reply. Reply as... Cancel Eduardo P. Garcia Woodbench Media 9 Years Ago At least for 6.2 you still have to generate one LAR for CE and other for EE. Please sign in to reply. Reply as... Cancel
James Falkner James Falkner 9 Years Ago BTW, @eduardo - it would be awesome if Liferay would automatically do this when a handler declares a template path through getTemplatesConfigPath() and the plugin is deployed! Right now this code is never called except at Portal startup time... Please sign in to reply. Reply as... Cancel Eduardo P. Garcia James Falkner 9 Years Ago @Woodbench You could do it using the resources importer and a lar file containing the ADTs. The sample coverflow-theme (see https://github.com/epgarcia/liferay-plugins/tree/DEVCON2013/themes/coverflow-theme) install an ADT for a custom plugin that way.@james It'd be a nice feature indeed so I'll propose it. Thanks! Please sign in to reply. Reply as... Cancel Woodbench Media Eduardo P. Garcia 9 Years Ago Are .LAR files still locked down to a specific version of Liferay? That would be the downside to including the .lar's inside of resources importer. It's nice to create one plugin that works for both 6.2 CE and EE Please sign in to reply. Reply as... Cancel Eduardo P. Garcia Woodbench Media 9 Years Ago At least for 6.2 you still have to generate one LAR for CE and other for EE. Please sign in to reply. Reply as... Cancel
Eduardo P. Garcia James Falkner 9 Years Ago @Woodbench You could do it using the resources importer and a lar file containing the ADTs. The sample coverflow-theme (see https://github.com/epgarcia/liferay-plugins/tree/DEVCON2013/themes/coverflow-theme) install an ADT for a custom plugin that way.@james It'd be a nice feature indeed so I'll propose it. Thanks! Please sign in to reply. Reply as... Cancel Woodbench Media Eduardo P. Garcia 9 Years Ago Are .LAR files still locked down to a specific version of Liferay? That would be the downside to including the .lar's inside of resources importer. It's nice to create one plugin that works for both 6.2 CE and EE Please sign in to reply. Reply as... Cancel Eduardo P. Garcia Woodbench Media 9 Years Ago At least for 6.2 you still have to generate one LAR for CE and other for EE. Please sign in to reply. Reply as... Cancel
Woodbench Media Eduardo P. Garcia 9 Years Ago Are .LAR files still locked down to a specific version of Liferay? That would be the downside to including the .lar's inside of resources importer. It's nice to create one plugin that works for both 6.2 CE and EE Please sign in to reply. Reply as... Cancel Eduardo P. Garcia Woodbench Media 9 Years Ago At least for 6.2 you still have to generate one LAR for CE and other for EE. Please sign in to reply. Reply as... Cancel
Eduardo P. Garcia Woodbench Media 9 Years Ago At least for 6.2 you still have to generate one LAR for CE and other for EE. Please sign in to reply. Reply as... Cancel