Forums de discussion

news slide show portlet

thumbnail
Shabana Popat, modifié il y a 11 années.

news slide show portlet

Junior Member Publications: 39 Date d'inscription: 13/12/12 Publications récentes
Hi,

I want to insert in my portal a portlet wich show news with image, description and links to articles with full notice.
So, I dont know how I start to do it...
Can somebody give me any example? please...
the slide wich I want is the same wich the main page of liferay.com.
thumbnail
Tejas Kanani, modifié il y a 11 années.

RE: news slide show portlet

Liferay Master Publications: 654 Date d'inscription: 06/01/09 Publications récentes
Hi Shabana,

From the code it looks like Carousal on Liferay home page is being made from AUI Carousal itself.

Reference
- http://liferay.github.com/alloyui.com/examples/carousel/basic.html
- http://deploy.alloyui.com/demos/carousel/

Tutorial
- http://liferay.github.com/alloyui.com/tutorials/carousel/index.html

Hope this helps somwhat.

Thanks,
Tejas
thumbnail
Shabana Popat, modifié il y a 10 années.

RE: news slide show portlet

Junior Member Publications: 39 Date d'inscription: 13/12/12 Publications récentes
Hi Tejas,
Can you help me to solve this issue https://www.liferay.com/pt/community/forums/-/message_boards/message/31176994, please.
I followed your tutorial on this link http://www.opensourceforlife.com/2011/10/setup-use-maven-with-liferay-6.html, but I didn't get it.
It is abou setup maven with liferay.

Thanks in advance
thumbnail
Tejas Kanani, modifié il y a 10 années.

RE: news slide show portlet

Liferay Master Publications: 654 Date d'inscription: 06/01/09 Publications récentes
Try command with list of parameter provided.

mvn archetype:generate \
-DarchetypeArtifactId=liferay-portlet-archetype \
-DarchetypeGroupId=com.test.abc \
-DarchetypeVersion=6.1.2 \
-DartifactId=abc-portlet \
-DgroupId=com.test.abc \
-Dversion=1.0-SNAPSHOT

OR

Try this as well.
mvn archetype:generate -Dfilter=liferay
thumbnail
Shabana Popat, modifié il y a 10 années.

RE: news slide show portlet

Junior Member Publications: 39 Date d'inscription: 13/12/12 Publications récentes
I tried the two options, and It still doesn't work.
With the first option I got that on cmd:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Required goal not found: archetype:generate\-DarchetypeArtifactId=liferay-portlet-archetype\-DarchetypeGroupId=com.test.abc\-DarchetypeVersion=6.1.2\-DartifactId=abc-portlet\-DgroupId=com.test.abc\-Dver
sion=1.0-SNAPSHOT in org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Nov 07 11:12:35 CAT 2013
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------

The option to generate liferay portlet is installed on local archetype when I install Liferay-maven.portal, isn't it?
I don't know why I don't have that option.
thumbnail
Tejas Kanani, modifié il y a 10 années.

RE: news slide show portlet

Liferay Master Publications: 654 Date d'inscription: 06/01/09 Publications récentes
Try this,

mvn archetype:generate -DarchetypeArtifactId=liferay-portlet-archetype -DarchetypeGroupId=com.liferay.maven.archetypes -DarchetypeVersion=6.1.2 -DartifactId=abc-portlet -DgroupId=com.test.abc -Dversion=1.0-SNAPSHOT


The option to generate liferay portlet is installed on local archetype when I install Liferay-maven.portal, isn't it?

Check whether you've below folder exist in your local .m2 repository.
.m2\repository\com\liferay\maven\archetypes\liferay-portlet-archetype
thumbnail
Shabana Popat, modifié il y a 10 années.

RE: news slide show portlet

Junior Member Publications: 39 Date d'inscription: 13/12/12 Publications récentes
Tejas Kanani:
Try this,

mvn archetype:generate -DarchetypeArtifactId=liferay-portlet-archetype -DarchetypeGroupId=com.liferay.maven.archetypes -DarchetypeVersion=6.1.2 -DartifactId=abc-portlet -DgroupId=com.test.abc -Dversion=1.0-SNAPSHOT


The option to generate liferay portlet is installed on local archetype when I install Liferay-maven.portal, isn't it?

Check whether you've below folder exist in your local .m2 repository.
.m2\repository\com\liferay\maven\archetypes\liferay-portlet-archetype



I don't have the folder on my local repository. That's why it doesn't give me the option to generate the archetype.
I chenged the default local repository on settings.xml to <localRepository>D:/local/local_repo</localRepository> , and my m2.com on ...\maven\bin, look like this:

main is org.apache.maven.cli.compat.CompatibleMain from plexus.core

set maven.home default ${user.home}/m2

[plexus.core]
load ${maven.home}/lib/*.jar


I also configured the m2_home and m2 as enviroment variables.
On my local repository I only have that folder D:\local\local_repo\com\liferay\portal with the respective subfolders
why the folder maven sn't created on the repository when I execute ant install?
thumbnail
meera prince, modifié il y a 10 années.

RE: news slide show portlet

Liferay Legend Publications: 1111 Date d'inscription: 08/02/11 Publications récentes
Hi

See this JQuery slide which may help you.....

http://als.musings.it/


Regards,

Meera Prince
http://www.liferaysavvy.com/
thumbnail
Shabana Popat, modifié il y a 10 années.

RE: news slide show portlet

Junior Member Publications: 39 Date d'inscription: 13/12/12 Publications récentes
Hi Meera,
thanks, but I already solved the problem related with the slide show.
I comented here because I followe Teja's tutorial about how to setup and use maven with liferay.
We are talking about this post :
Setup Maven with Liferay.
thumbnail
Shabana Popat, modifié il y a 10 années.

RE: news slide show portlet

Junior Member Publications: 39 Date d'inscription: 13/12/12 Publications récentes
Shabana Popat:
Hi Meera,
thanks, but I already solved the problem related with the slide show.
I comented here because I followe Teja's tutorial about how to setup and use maven with liferay.
We are talking about this post :
Setup Maven with Liferay.



as I said I'm already solved the problem ralated with slide show. I posted here bacause I folowed Tejas tutorial, about how to setup maven with liferay and I didn' t get it. Can you please helpe me go solve the problem related with maven and forget about slide show.
thumbnail
Shabana Popat, modifié il y a 10 années.

RE: news slide show portlet

Junior Member Publications: 39 Date d'inscription: 13/12/12 Publications récentes
Thanks Tejas, I got it. actually, the problem was that I thought that the folder maven under com/liferay on local repository should be installed when I ran ant install.
But the truth is that the folder is downloaded when generate the portlet at the first time.

thanks

Shabana Popat
Vaibhav Mittal, modifié il y a 10 années.

RE: news slide show portlet

Junior Member Publications: 54 Date d'inscription: 16/07/12 Publications récentes
You can make news portlet using Asset Publisher.

Regards,
Vaibhav Mittal