Morad Ahmad 11 Years Ago Thanks James for the gret info. I have the problem, that I want to create "Site Templates" first. Add to them Pages, and fill this pages with portlets and some content. Then I want to create some communities based on this template(s). The export/import doesn't help in this case. Can I do all that with Liferay API? It is a lot of work to do it every time in a new installation... Second Question: Is a hook the best way to implement that? Or could I better use the Services and write an external Java Tool? Thanks!Morad. Please sign in to reply. Reply as... Cancel James Falkner Morad Ahmad 11 Years Ago It should be possible to do this. After all, the UI in Liferay does it, right! Just a matter of digging around the source and extracting the relevant bits. I'll try and include this in a follow-up post. As for the hook: it doesn't really matter whether you do this in a hook or anywhere else. I actually did this in a portlet (and included an ajax ui on top, so I could individual pick what kinds of content to create and click a button and get a progress bar and so forth). That's for a follow-on post. Please sign in to reply. Reply as... Cancel
James Falkner Morad Ahmad 11 Years Ago It should be possible to do this. After all, the UI in Liferay does it, right! Just a matter of digging around the source and extracting the relevant bits. I'll try and include this in a follow-up post. As for the hook: it doesn't really matter whether you do this in a hook or anywhere else. I actually did this in a portlet (and included an ajax ui on top, so I could individual pick what kinds of content to create and click a button and get a progress bar and so forth). That's for a follow-on post. Please sign in to reply. Reply as... Cancel
Olaf Kock 11 Years Ago This looks like it will become my new target for developers that I typically point to old releases to be able to single-step through the 7cogs API calls. I'm really happy about these Frankenstein efforts - saves me from going that way sooner or later. Please sign in to reply. Reply as... Cancel James Falkner Olaf Kock 11 Years Ago Thanks Olaf, that's exactly what I hoped people would use it for! I haven't really covered any new ground here yet, but I hope people will find my running commentary more useful than just uncommented code. Please sign in to reply. Reply as... Cancel
James Falkner Olaf Kock 11 Years Ago Thanks Olaf, that's exactly what I hoped people would use it for! I haven't really covered any new ground here yet, but I hope people will find my running commentary more useful than just uncommented code. Please sign in to reply. Reply as... Cancel
David Morris 10 Years Ago What is the SocialDriverUtil.class referring to? Should that be an existing class or did you create it as part of this project? I can't find that one within liferay. Please sign in to reply. Reply as... Cancel James Falkner David Morris 10 Years Ago David, you can replace that class's mention with any other class in your plugin - it's just used as a reference with which to grab resources from the same JAR file in which the class resides.But no, it's not a class within Liferay - it's my own custom util class that contains some util methods which I'll expand upon once I finally do part 3 of this series of blog posts Please sign in to reply. Reply as... Cancel David Morris James Falkner 10 Years Ago thanks! Please sign in to reply. Reply as... Cancel David Morris David Morris 10 Years Ago Do you know what we should use instead of JournalStructureLocalServiceUtil? It's showing deprecated in 6.2 or should I just ignore those warnings ? Please sign in to reply. Reply as... Cancel David Morris David Morris 10 Years Ago I see the notes in the source now. Guess 6.2 changed this approach: * @deprecated As of 6.2.0, since Web Content Administration now uses the * Dynamic Data Mapping framework to handle structures */ Please sign in to reply. Reply as... Cancel
James Falkner David Morris 10 Years Ago David, you can replace that class's mention with any other class in your plugin - it's just used as a reference with which to grab resources from the same JAR file in which the class resides.But no, it's not a class within Liferay - it's my own custom util class that contains some util methods which I'll expand upon once I finally do part 3 of this series of blog posts Please sign in to reply. Reply as... Cancel David Morris James Falkner 10 Years Ago thanks! Please sign in to reply. Reply as... Cancel David Morris David Morris 10 Years Ago Do you know what we should use instead of JournalStructureLocalServiceUtil? It's showing deprecated in 6.2 or should I just ignore those warnings ? Please sign in to reply. Reply as... Cancel David Morris David Morris 10 Years Ago I see the notes in the source now. Guess 6.2 changed this approach: * @deprecated As of 6.2.0, since Web Content Administration now uses the * Dynamic Data Mapping framework to handle structures */ Please sign in to reply. Reply as... Cancel
David Morris James Falkner 10 Years Ago thanks! Please sign in to reply. Reply as... Cancel David Morris David Morris 10 Years Ago Do you know what we should use instead of JournalStructureLocalServiceUtil? It's showing deprecated in 6.2 or should I just ignore those warnings ? Please sign in to reply. Reply as... Cancel David Morris David Morris 10 Years Ago I see the notes in the source now. Guess 6.2 changed this approach: * @deprecated As of 6.2.0, since Web Content Administration now uses the * Dynamic Data Mapping framework to handle structures */ Please sign in to reply. Reply as... Cancel
David Morris David Morris 10 Years Ago Do you know what we should use instead of JournalStructureLocalServiceUtil? It's showing deprecated in 6.2 or should I just ignore those warnings ? Please sign in to reply. Reply as... Cancel David Morris David Morris 10 Years Ago I see the notes in the source now. Guess 6.2 changed this approach: * @deprecated As of 6.2.0, since Web Content Administration now uses the * Dynamic Data Mapping framework to handle structures */ Please sign in to reply. Reply as... Cancel
David Morris David Morris 10 Years Ago I see the notes in the source now. Guess 6.2 changed this approach: * @deprecated As of 6.2.0, since Web Content Administration now uses the * Dynamic Data Mapping framework to handle structures */ Please sign in to reply. Reply as... Cancel