Alireza Zare Vor 11 Jahren Greate Article James :-) Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Morad Ahmad Vor 11 Jahren 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. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen James Falkner Morad Ahmad Vor 11 Jahren 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. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
James Falkner Morad Ahmad Vor 11 Jahren 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. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Olaf Kock Vor 11 Jahren 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. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen James Falkner Olaf Kock Vor 11 Jahren 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. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
James Falkner Olaf Kock Vor 11 Jahren 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. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
James Min Vor 11 Jahren Great work, James! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Tejas Kanani Vor 11 Jahren Nice Blog James !!! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
David Morris Vor 10 Jahren 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. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen James Falkner David Morris Vor 10 Jahren 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 Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David Morris James Falkner Vor 10 Jahren thanks! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David Morris David Morris Vor 10 Jahren Do you know what we should use instead of JournalStructureLocalServiceUtil? It's showing deprecated in 6.2 or should I just ignore those warnings ? Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David Morris David Morris Vor 10 Jahren 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 */ Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
James Falkner David Morris Vor 10 Jahren 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 Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David Morris James Falkner Vor 10 Jahren thanks! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David Morris David Morris Vor 10 Jahren Do you know what we should use instead of JournalStructureLocalServiceUtil? It's showing deprecated in 6.2 or should I just ignore those warnings ? Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David Morris David Morris Vor 10 Jahren 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 */ Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
David Morris James Falkner Vor 10 Jahren thanks! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David Morris David Morris Vor 10 Jahren Do you know what we should use instead of JournalStructureLocalServiceUtil? It's showing deprecated in 6.2 or should I just ignore those warnings ? Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David Morris David Morris Vor 10 Jahren 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 */ Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
David Morris David Morris Vor 10 Jahren Do you know what we should use instead of JournalStructureLocalServiceUtil? It's showing deprecated in 6.2 or should I just ignore those warnings ? Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David Morris David Morris Vor 10 Jahren 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 */ Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
David Morris David Morris Vor 10 Jahren 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 */ Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen