James Falkner Il y a 13 années Ya know, I bet this would be highly useful during WCM template development. A nice prototyping feature. Now, to make this available via the OS command line Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
James Min Il y a 13 années excellent! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Michael C. Han Il y a 13 années Actually, the scripting service was implemented prior to Kaleo. It was for the EU research project, Romulous. The service's primary responsibility was to make it easier for developers to write portlets in non-Java languages (e.g. Ruby, Groovy, Python, PHP). As a side benefit, workflow was able to use it for easier action coding and of course we added it as an admin interface.@JF scripting in WCM template was already possible with the velocity and freemarker support. There's no need for scripting service for that. In the WCM template, you can call any LR service. e.g.:$serviceLocator.findService("com.liferay.portal.service.UserService").getUserByEmailAddress(...) Veuillez vous identifier pour voter. Répondre en tant que ... Annuler James Falkner Michael C. Han Il y a 13 années Yeah, I know it's been there, but during template development you have 1. have a structure defined, 2. define your template, 3. create an article, 4. deploy to a WCM display portlet, to see if it works. It would be awesome if during template development I could have a separate window open to run small snippets of test script in VM or FM or whatever, to make sure it works, before committing it to the template. Even cooler would be a "test script" button which just runs what you have written with some sample data or something. Really would speed up template dev! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Michael C. Han James Falkner Il y a 13 années Got it. Yeah, the scripting ide is something we need. something we are looking @ for the workflow designer as well. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Jonas X. Yuan James Falkner Il y a 13 années Thank you, @Michael, @JF and @James. Both scripting and WCM templates are cool features. Comparing scripting and WCM templates (VM or FM), which is better for developers? Maybe, detailed documentation would be helpful to show these cool features. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Jeffrey Handa Michael C. Han Il y a 13 années Thanks for the clarification Mike! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
James Falkner Michael C. Han Il y a 13 années Yeah, I know it's been there, but during template development you have 1. have a structure defined, 2. define your template, 3. create an article, 4. deploy to a WCM display portlet, to see if it works. It would be awesome if during template development I could have a separate window open to run small snippets of test script in VM or FM or whatever, to make sure it works, before committing it to the template. Even cooler would be a "test script" button which just runs what you have written with some sample data or something. Really would speed up template dev! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Michael C. Han James Falkner Il y a 13 années Got it. Yeah, the scripting ide is something we need. something we are looking @ for the workflow designer as well. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Jonas X. Yuan James Falkner Il y a 13 années Thank you, @Michael, @JF and @James. Both scripting and WCM templates are cool features. Comparing scripting and WCM templates (VM or FM), which is better for developers? Maybe, detailed documentation would be helpful to show these cool features. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Michael C. Han James Falkner Il y a 13 années Got it. Yeah, the scripting ide is something we need. something we are looking @ for the workflow designer as well. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Jonas X. Yuan James Falkner Il y a 13 années Thank you, @Michael, @JF and @James. Both scripting and WCM templates are cool features. Comparing scripting and WCM templates (VM or FM), which is better for developers? Maybe, detailed documentation would be helpful to show these cool features. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Jeffrey Handa Michael C. Han Il y a 13 années Thanks for the clarification Mike! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Kevin Britton Il y a 13 années I've been able to use the script console to add a user to a community, but it seems to fail whenever I try to do an addUser. Is this a designed-in limitation, or am I doing something wrong? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Joseph Toman Il y a 12 années This is a great tool, but here are two things I can think of that would make this even more useful:a) Run scripts from the Document Library, or some other persistence mechanism. If you have to cut & paste every time you want to run a script, that gets old real fast.b) Redirect output to a popup window. The admin does not necessarily have access to the logs or console when they are running a script. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Rick Dangerous Il y a 12 années Is there any way to "cron" that scripts? I need to execute one script periodically, with the easy API access that provide this scripting method.... it's possible? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Sébastien Le Marchand Il y a 10 années You can get some extra tips about Admin Script Console here :- http://www.liferay.com/web/sebastien.lemarchand/blog/-/blogs/5-tips-to-improve-usage-of-the-liferay-script-console- http://www.liferay.com/web/kzhang/blog/-/blogs/re-5-tips-to-improve-usage-of-the-liferay-script-console Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Wendell Payne Il y a 6 années Looking all over to find the answer and I see all combinations but not a direct explanation Is there a capability to use an API or CLI to communicate and execute commands to the LifeRay console? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Jeffrey Handa Wendell Payne Il y a 6 années Hi Wendell, I'm not aware of any way to interact with the Script Console from a CLI, however you could interact with Liferay's web services. You might try posting your question to the Forums (be sure to specify the Liferay version you're using and any specific commands you're trying to execute). If you're new to the Liferay community, Jamie's recent blog post (https://web.liferay.com/web/jamie.sammons/blog/-/blogs/a-new-way-to-connect-with-the-liferay-community) does a good job outlining other resources for getting help including our Community Slack Channel. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Jeffrey Handa Wendell Payne Il y a 6 années Hi Wendell, I'm not aware of any way to interact with the Script Console from a CLI, however you could interact with Liferay's web services. You might try posting your question to the Forums (be sure to specify the Liferay version you're using and any specific commands you're trying to execute). If you're new to the Liferay community, Jamie's recent blog post (https://web.liferay.com/web/jamie.sammons/blog/-/blogs/a-new-way-to-connect-with-the-liferay-community) does a good job outlining other resources for getting help including our Community Slack Channel. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler