Morad Ahmad 11 年之前 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. 请登录以投票。 以……回复 取消 James Falkner Morad Ahmad 11 年之前 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. 请登录以投票。 以……回复 取消
James Falkner Morad Ahmad 11 年之前 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. 请登录以投票。 以……回复 取消
Olaf Kock 11 年之前 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. 请登录以投票。 以……回复 取消 James Falkner Olaf Kock 11 年之前 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. 请登录以投票。 以……回复 取消
James Falkner Olaf Kock 11 年之前 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. 请登录以投票。 以……回复 取消
David Morris 10 年之前 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. 请登录以投票。 以……回复 取消 James Falkner David Morris 10 年之前 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 请登录以投票。 以……回复 取消 David Morris James Falkner 10 年之前 thanks! 请登录以投票。 以……回复 取消 David Morris David Morris 10 年之前 Do you know what we should use instead of JournalStructureLocalServiceUtil? It's showing deprecated in 6.2 or should I just ignore those warnings ? 请登录以投票。 以……回复 取消 David Morris David Morris 10 年之前 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 */ 请登录以投票。 以……回复 取消
James Falkner David Morris 10 年之前 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 请登录以投票。 以……回复 取消 David Morris James Falkner 10 年之前 thanks! 请登录以投票。 以……回复 取消 David Morris David Morris 10 年之前 Do you know what we should use instead of JournalStructureLocalServiceUtil? It's showing deprecated in 6.2 or should I just ignore those warnings ? 请登录以投票。 以……回复 取消 David Morris David Morris 10 年之前 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 */ 请登录以投票。 以……回复 取消
David Morris James Falkner 10 年之前 thanks! 请登录以投票。 以……回复 取消 David Morris David Morris 10 年之前 Do you know what we should use instead of JournalStructureLocalServiceUtil? It's showing deprecated in 6.2 or should I just ignore those warnings ? 请登录以投票。 以……回复 取消 David Morris David Morris 10 年之前 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 */ 请登录以投票。 以……回复 取消
David Morris David Morris 10 年之前 Do you know what we should use instead of JournalStructureLocalServiceUtil? It's showing deprecated in 6.2 or should I just ignore those warnings ? 请登录以投票。 以……回复 取消 David Morris David Morris 10 年之前 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 */ 请登录以投票。 以……回复 取消
David Morris David Morris 10 年之前 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 */ 请登录以投票。 以……回复 取消