Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Shabana Popat
news slide show portlet
January 10, 2013 11:59 PM
Answer

Shabana Popat

Rank: Junior Member

Posts: 37

Join Date: December 13, 2012

Recent Posts

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.
Tejas Kanani
RE: news slide show portlet
January 11, 2013 1:46 AM
Answer

Tejas Kanani

Rank: Liferay Master

Posts: 653

Join Date: January 6, 2009

Recent Posts

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
Shabana Popat
RE: news slide show portlet
November 6, 2013 3:56 AM
Answer

Shabana Popat

Rank: Junior Member

Posts: 37

Join Date: December 13, 2012

Recent Posts

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
Tejas Kanani
RE: news slide show portlet
November 6, 2013 9:16 PM
Answer

Tejas Kanani

Rank: Liferay Master

Posts: 653

Join Date: January 6, 2009

Recent Posts

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
Shabana Popat
RE: news slide show portlet
November 7, 2013 1:20 AM
Answer

Shabana Popat

Rank: Junior Member

Posts: 37

Join Date: December 13, 2012

Recent Posts

I tried the two options, and It still doesn't work.
With the first option I got that on cmd:
 1
 2[INFO] Scanning for projects...
 3[INFO] Searching repository for plugin with prefix: 'archetype'.
 4[INFO] ------------------------------------------------------------------------
 5[ERROR] BUILD FAILURE
 6[INFO] ------------------------------------------------------------------------
 7[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
 8sion=1.0-SNAPSHOT in org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4
 9[INFO] ------------------------------------------------------------------------
10[INFO] For more information, run Maven with the -e switch
11[INFO] ------------------------------------------------------------------------
12[INFO] Total time: < 1 second
13[INFO] Finished at: Thu Nov 07 11:12:35 CAT 2013
14[INFO] Final Memory: 2M/4M
15[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.
Tejas Kanani
RE: news slide show portlet
November 7, 2013 9:27 AM
Answer

Tejas Kanani

Rank: Liferay Master

Posts: 653

Join Date: January 6, 2009

Recent Posts

Try this,

1mvn 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.
1.m2\repository\com\liferay\maven\archetypes\liferay-portlet-archetype
Shabana Popat
RE: news slide show portlet
November 8, 2013 1:58 AM
Answer

Shabana Popat

Rank: Junior Member

Posts: 37

Join Date: December 13, 2012

Recent Posts

Tejas Kanani:
Try this,

1mvn 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.
1.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:
1
2main is org.apache.maven.cli.compat.CompatibleMain from plexus.core
3
4set maven.home default ${user.home}/m2
5
6[plexus.core]
7load ${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?
Meera Prince
RE: news slide show portlet
November 8, 2013 2:24 AM
Answer

Meera Prince

Rank: Liferay Master

Posts: 862

Join Date: February 8, 2011

Recent Posts

Hi

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

http://als.musings.it/


Regards,

Meera Prince
http://www.liferaysavvy.com/
Shabana Popat
RE: news slide show portlet
November 8, 2013 4:30 AM
Answer

Shabana Popat

Rank: Junior Member

Posts: 37

Join Date: December 13, 2012

Recent Posts

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.
Vaibhav Mittal
RE: news slide show portlet
November 9, 2013 7:01 AM
Answer

Vaibhav Mittal

Rank: Junior Member

Posts: 54

Join Date: July 16, 2012

Recent Posts

You can make news portlet using Asset Publisher.

Regards,
Vaibhav Mittal
Shabana Popat
RE: news slide show portlet
November 9, 2013 12:55 PM
Answer

Shabana Popat

Rank: Junior Member

Posts: 37

Join Date: December 13, 2012

Recent Posts

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.
Shabana Popat
RE: news slide show portlet
November 11, 2013 10:30 AM
Answer

Shabana Popat

Rank: Junior Member

Posts: 37

Join Date: December 13, 2012

Recent Posts

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