Fórumok
a basic tutorial for using aui in liferay 6
Xiaotian Lu, módosítva 13 év-val korábban
a basic tutorial for using aui in liferay 6
New Member Bejegyzések: 2 Csatlakozás dátuma: 2010.11.04. Legújabb bejegyzések
Hi every,
I have been trying to implement tree view using alloy in my portlet in liferay 6.0.5. So far I have succeeded making a demo run. Hope my experience can help you.
1. import aui lib
aui lib is included by default. You need to modified your liferay-portlet.xml
add the following two line
<header-portlet-css>/html/js/aui/aui-skin-classic/css/aui-skin-classic-all-min.css</header-portlet-css>
<header-portlet-javascript>/html/js/aui/aui/aui.min.js</header-portlet-javascript>
2. use aui in a jsp page
<h1>A.TreeView from HTML markup</h1>
<div id="<portlet:namespace />markupBoundingBox">
<ul id="<portlet:namespace />markupContentBox">
<li>
<span>folder</span>
<ul>
<li>
<a href="#">child child 1</a>
</li>
<li>
<a href="#">folder folder 2</a>
<ul>
<li>
<a href="#">child child child 1</a>
</li>
<li>
<a href="#">folder folder folder 2</a>
<ul>
<li>
<a href="#">child child child child 1</a>
</li>
<li>
<a href="#">child child child child 2</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#">child 1</a>
</li>
<li>
<a href="#">child 2</a>
</li>
<li>
<a href="#">child 3</a>
</li>
</ul>
</div>
<script type="text/javascript" charset="utf-8">
AUI().ready('aui-tree-view', function(A) {
var treeView = new A.TreeView({
boundingBox: '#<portlet:namespace />markupBoundingBox',
contentBox: '#<portlet:namespace />markupContentBox'
})
.render();
});
</script>
3.deploy and run
I have been trying to implement tree view using alloy in my portlet in liferay 6.0.5. So far I have succeeded making a demo run. Hope my experience can help you.
1. import aui lib
aui lib is included by default. You need to modified your liferay-portlet.xml
add the following two line
<header-portlet-css>/html/js/aui/aui-skin-classic/css/aui-skin-classic-all-min.css</header-portlet-css>
<header-portlet-javascript>/html/js/aui/aui/aui.min.js</header-portlet-javascript>
2. use aui in a jsp page
<h1>A.TreeView from HTML markup</h1>
<div id="<portlet:namespace />markupBoundingBox">
<ul id="<portlet:namespace />markupContentBox">
<li>
<span>folder</span>
<ul>
<li>
<a href="#">child child 1</a>
</li>
<li>
<a href="#">folder folder 2</a>
<ul>
<li>
<a href="#">child child child 1</a>
</li>
<li>
<a href="#">folder folder folder 2</a>
<ul>
<li>
<a href="#">child child child child 1</a>
</li>
<li>
<a href="#">child child child child 2</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#">child 1</a>
</li>
<li>
<a href="#">child 2</a>
</li>
<li>
<a href="#">child 3</a>
</li>
</ul>
</div>
<script type="text/javascript" charset="utf-8">
AUI().ready('aui-tree-view', function(A) {
var treeView = new A.TreeView({
boundingBox: '#<portlet:namespace />markupBoundingBox',
contentBox: '#<portlet:namespace />markupContentBox'
})
.render();
});
</script>
3.deploy and run
Nagendra Kumar Busam, módosítva 13 év-val korábban
RE: a basic tutorial for using aui in liferay 6
Liferay Master Bejegyzések: 678 Csatlakozás dátuma: 2009.07.07. Legújabb bejegyzések
Thank you very much for sharing , it will be helpful for many (beginners of AUI)
chandru palaniyappan, módosítva 13 év-val korábban
RE: a basic tutorial for using aui in liferay 6
Junior Member Bejegyzések: 85 Csatlakozás dátuma: 2010.07.29. Legújabb bejegyzések
Hi Xiaotian Lu ,
Can you please tell me where can i find a tutorial or samples for using alloyui
Thanks,
Chandru P
Can you please tell me where can i find a tutorial or samples for using alloyui
Thanks,
Chandru P
Manish Kumar Gupta, módosítva 13 év-val korábban
RE: a basic tutorial for using aui in liferay 6
Liferay Master Bejegyzések: 535 Csatlakozás dátuma: 2008.05.16. Legújabb bejegyzések
You can get API and demo at http://alloy.liferay.com
Also, one webinar is available at http://www.liferay.com/video?v=w5095333
Another webinar is scheduled for Dec 8. Register here.
Also, one webinar is available at http://www.liferay.com/video?v=w5095333
Another webinar is scheduled for Dec 8. Register here.
Pavithran Sakthi, módosítva 13 év-val korábban
How to disable the user not to rename the page name "My private page"
Junior Member Bejegyzések: 32 Csatlakozás dátuma: 2010.11.10. Legújabb bejegyzések
Hi,
Could you pls help me in finding, How to disable the user not to rename the page name "My private page" but he can able to add portlets in my private pages
Could you pls help me in finding, How to disable the user not to rename the page name "My private page" but he can able to add portlets in my private pages
chandru palaniyappan, módosítva 13 év-val korábban
RE: a basic tutorial for using aui in liferay 6
Junior Member Bejegyzések: 85 Csatlakozás dátuma: 2010.07.29. Legújabb bejegyzések
Thanks Manish...!
Giuseppe Cultrera, módosítva 12 év-val korábban
RE: a basic tutorial for using aui in liferay 6
New Member Bejegyzések: 4 Csatlakozás dátuma: 2010.01.20. Legújabb bejegyzések
Hi, I am a newbie to develop to LR (till now worked on theme and admin above all).
I would like to create something like http://deploy.alloyui.com/demos/scroller/ as explained in http://www.liferay.com/community/forums/-/message_boards/message/12885259
I tried the picture slider using tempalte and structures and it works great!
There is some way to do something similar in order to use your wonderful example for the AUI Scroller??? Can I insert in some way the
AUI().ready('aui-scroller', function (A) {
var component = new A.Scroller({
contentBox: '#scroller-content',
height: 45,
//width: 640,
orientation: 'horizontal'
}).render();
});
code in a web content?
I tried inserting it as javascript in the page administrator panel (javascript section) but it doesn't work.
Thanks in advance!!!
Ciao
Pino
I would like to create something like http://deploy.alloyui.com/demos/scroller/ as explained in http://www.liferay.com/community/forums/-/message_boards/message/12885259
I tried the picture slider using tempalte and structures and it works great!
There is some way to do something similar in order to use your wonderful example for the AUI Scroller??? Can I insert in some way the
AUI().ready('aui-scroller', function (A) {
var component = new A.Scroller({
contentBox: '#scroller-content',
height: 45,
//width: 640,
orientation: 'horizontal'
}).render();
});
code in a web content?
I tried inserting it as javascript in the page administrator panel (javascript section) but it doesn't work.
Thanks in advance!!!
Ciao
Pino
mohammad azaruddin, módosítva 10 év-val korábban
RE: a basic tutorial for using aui in liferay 6
Expert Bejegyzések: 492 Csatlakozás dátuma: 2012.09.17. Legújabb bejegyzések
hi MANISH
I cannot find it on that page and on dec 8 there is no webinars
And there is no video
I cannot find it on that page and on dec 8 there is no webinars
And there is no video
Xiaotian Lu, módosítva 13 év-val korábban
RE: a basic tutorial for using aui in liferay 6
New Member Bejegyzések: 2 Csatlakozás dátuma: 2010.11.04. Legújabb bejegyzések
Hi you can find many samples from liferay svn
http://svn.liferay.com/repos/public/alloy/trunk/demos/
http://svn.liferay.com/repos/public/alloy/trunk/demos/
chandru palaniyappan, módosítva 13 év-val korábban
RE: a basic tutorial for using aui in liferay 6
Junior Member Bejegyzések: 85 Csatlakozás dátuma: 2010.07.29. Legújabb bejegyzések
Hi Xiaotian Lu,
Really thanks for your reply.
Regards,
Chandru P
Really thanks for your reply.
Regards,
Chandru P
Anil Sunkari, módosítva 12 év-val korábban
RE: a basic tutorial for using aui in liferay 6
Expert Bejegyzések: 427 Csatlakozás dátuma: 2009.08.12. Legújabb bejegyzések
Hi Lu,
Really gr8 work.Thanks for your info.
Thanks,
Anil Sunkari
Really gr8 work.Thanks for your info.
Thanks,
Anil Sunkari
Edgar Trania, módosítva 10 év-val korábban
RE: a basic tutorial for using aui in liferay 6
Junior Member Bejegyzések: 37 Csatlakozás dátuma: 2010.11.13. Legújabb bejegyzésekXiaotian Lu:
Hi every,
1. import aui lib
aui lib is included by default. You need to modified your liferay-portlet.xml
add the following two line
<header-portlet-css>/html/js/aui/aui-skin-classic/css/aui-skin-classic-all-min.css</header-portlet-css>
<header-portlet-javascript>/html/js/aui/aui/aui.min.js</header-portlet-javascript>
Help
my eclipse gives a warning "The header portlet css resource /html/js/aui/aui-skin-classic/css/aui-skin-classic-all-min.css was not found in
the docroot.". how can i fix this?
Sunghun Park, módosítva 10 év-val korábban
RE: a basic tutorial for using aui in liferay 6
New Member Bejegyzések: 3 Csatlakozás dátuma: 2013.01.09. Legújabb bejegyzések
Thanks. I tried import AUI but it cannot load the resources because it send requestContext together. I am using Spring 3.2 MVCPortlet.
Error are here:
"NetworkError: 404 Not Found - http://localhost:8080/my-portlet/html/js/aui/aui-skin-classic/css/aui-skin-classic-all-min.css?browserId=firefox&themeId=classic&languageId=en_US&b=6101&t=1386030723000"
aui-sk...0723000
"NetworkError: 404 Not Found - http://localhost:8080/my-portlet/html/js/aui/aui/aui.min.js?browserId=firefox&minifierType=js&languageId=en_US&b=6101&t=1386030723000"
It looks like Spring is handling the URL. How can I fix this problem?
Thanks.
Error are here:
"NetworkError: 404 Not Found - http://localhost:8080/my-portlet/html/js/aui/aui-skin-classic/css/aui-skin-classic-all-min.css?browserId=firefox&themeId=classic&languageId=en_US&b=6101&t=1386030723000"
aui-sk...0723000
"NetworkError: 404 Not Found - http://localhost:8080/my-portlet/html/js/aui/aui/aui.min.js?browserId=firefox&minifierType=js&languageId=en_US&b=6101&t=1386030723000"
It looks like Spring is handling the URL. How can I fix this problem?
Thanks.