Search the web
Sign In
New User? Sign Up
dotcms · dotCMS Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Portlet and Plugin creation   Message List  
Reply | Forward Message #5150 of 6583 |
Re: [dotcms] Re: Portlet and Plugin creation

I would start fresh. 

1. Get a clean checkout. 
2. Do not import into Eclipse, there are other things to be aware of when working with dotcms and plugins within Eclipse
3. Copy the hello.world plugin
4. run ant deploy
5. hook up to a fresh DB; ROOT.xml
6. Add the portlets to a page/tab withing dotcms backend.  Use personalize page link on the top left of the dotcms backend. the portlets will be under the category undefined.

Make sure to browse around the hello.world plugin so you can see what it has and what is configured.  Also see here for portlets
http://dotcms.org/documentation/CreatingPortletPlugins
Those are the exact examples in the hello.world plugin.

Thanks,
Jason Tesser
dotCMS Lead Development Manager
1-305-858-1422


On Fri, Jul 3, 2009 at 7:10 AM, barkha_crazzyworld <barkha1188@...> wrote:


--- In dotcms@yahoogroups.com, Jason Tesser <jasontesser@...> wrote:
> hey Jason,
thanx for your support.

its ok i've done everything as you told nothing more or less than that.

i've removed stuff from plugins.xml file and didn't run build.xml of hello world.

here i've a doubt.see as i'm working on windows,i can't run "ant deploy-plugins" so from eclipse,i'm running project's main build.xml file.now tell me,did i run main build.xml correctly with the selection of listed 4 options i.e.(1)compile,(2) build-sql,
(3) build-plugins,(4) deploy-plugins.is it ok?

now main question is that i dunno how to do this thing : "After you deploy you will need to add the portlets to a page/tab. Use personalize page link on the top left of the dotcms backend." as you have suggested before.so please elaborate it in as simpler way as possible :)

Thnx,
Barkha Jasani

> Why did you add stuff to the plugins.xml and run the build in the
> hello.world directory. Take a look at original response which says not to
> do any of this :-)
>
> If you follow the steps from the original post I sent it will work.
>
> Thanks,
> Jason Tesser
> dotCMS Lead Development Manager
> 1-305-858-1422
>
>
> On Fri, Jul 3, 2009 at 2:46 AM, barkha_crazzyworld <barkha1188@...>wrote:
>
> >
> >
> > --- In dotcms@yahoogroups.com <dotcms%40yahoogroups.com>, Jason Tesser

> > <jasontesser@> wrote:
> > >
> > > take a look at the hello world plugin.
> > >
> > > To run it just copy it to /plugins dire at athe root of dotcms. so you
> > willl
> > > have plugins/hello.world/**
> > >
> > > then from the dotcms root run ant deploy and then start.
> > >
> > > it deploys 2 portlets (struts and velocity)
> > >
> > > it is under the docs/examples/plugins dir.
> > >
> > > After you deploy you will need to add the portlets to a page/tab. Use
> > > personalize page link on the top left of the dotcms backend. the portlets
> > > will be under the category undefined.
> > >
> > > Thanks,
> > > Jason Tesser
> > > dotCMS Lead Development Manager
> > > 1-305-858-1422
> > >
> > >
> > > On Thu, Jul 2, 2009 at 3:59 AM, barkha_crazzyworld <barkha1188@
> > ...>wrote:
> > >
> > > > nd very fresh to dotCMS.please suggest me what to do now?from where do
> > i
> > > > start?
> > > >
> > > > kindly do the needful,your help would be greatly appriciated.
> > > >
> > > > Desperately Waiting for your favourable reply.
> > > >
> > > hey Jason first of all thank you very much for your reply.
> >
> > see as per your suggested way,i've deployed the hello world plugin.here i'm
> > describing the procedure which i've performed till now.
> >
> > - first copied the hello world plugin from
> > C:\eclipse\eclipse\cmspro\docs\examples\plugins directory and pasted it to
> > C:\eclipse\eclipse\cmspro\plugins directory.
> >
> > - Did the mapping of this plugin into plugins.xml file which is at the same
> > place i.e. C:\eclipse\eclipse\cmspro\plugins directory.
> >
> > <plugin>
> >
> > <id>hello.world</id>
> >
> > </plugin>
> >
> > > Ran build.xml of this plugin which is at
> > C:\eclipse\eclipse\cmspro\plugins\hello.world directory through Ant build
> > editor with specifying build and jar options.(is it needed?)
> >
> > > Ran project's main build.xml file which is at C:\eclipse\eclipse\cmspro
> > directory through Ant build editor with specifying compile, build-sql,
> > build-plugins, deploy-plugins options.
> >
> > > Ran the project as usual(i.e start tomcat and go to
> > http://localhost:8080/c).
> >
> > now how to do this "After you deploy you will need to add the portlets to a
> > page/tab. Use personalize page link on the top left of the dotcms backend."
> > that i dunno.so can you please elaborate it in as simpler way as you can.
> >
> > Thnx again in advance,
> > Barkha Jasani
> >
> >
> >
>




Fri Jul 3, 2009 11:51 am

tesserfamily
Online Now Online Now
Send Email Send Email

Forward
Message #5150 of 6583 |
Expand Messages Author Sort by Date

Hi all, i want to make my own plugin in dotCMS.and i'm very fresh to dotCMS so dunno really from where to start.i'm describing my requirement below, ... ...
barkha_crazzyworld
barkha_crazz...
Offline Send Email
Jul 2, 2009
8:00 am

take a look at the hello world plugin. To run it just copy it to /plugins dire at athe root of dotcms. so you willl have plugins/hello.world/** then from the...
Jason Tesser
tesserfamily
Online Now Send Email
Jul 2, 2009
1:42 pm

... see as per your suggested way,i've deployed the hello world plugin.here i'm describing the procedure which i've performed till now. - first copied the...
barkha_crazzyworld
barkha_crazz...
Offline Send Email
Jul 3, 2009
6:47 am

Why did you add stuff to the plugins.xml and run the build in the hello.world directory. Take a look at original response which says not to do any of this :-)...
Jason Tesser
tesserfamily
Online Now Send Email
Jul 3, 2009
10:19 am

... thanx for your support. its ok i've done everything as you told nothing more or less than that. i've removed stuff from plugins.xml file and didn't run...
barkha_crazzyworld
barkha_crazz...
Offline Send Email
Jul 3, 2009
11:11 am

I would start fresh. 1. Get a clean checkout. 2. Do not import into Eclipse, there are other things to be aware of when working with dotcms and plugins within...
Jason Tesser
tesserfamily
Online Now Send Email
Jul 3, 2009
11:53 am

... Thanks very much for your kind support. here i've followed all the steps as you have suggested till point number 5. and hello world plugin is also deployed...
barkha_crazzyworld
barkha_crazz...
Offline Send Email
Jul 6, 2009
6:28 am

Hi all, I want to separate my hosts, so a certain user is only able to view and modify the Websites, Files and Templates that are filed under "his" host. Is...
Stefan Bernsdorf
gruener.hein...
Offline Send Email
Jul 6, 2009
7:55 am

You most likely do not want your user to modify the host node itself. However, in order to see the folders under the host node, he will need view permissions...
Christopher F. Falzone
ctiggerf
Offline Send Email
Jul 6, 2009
12:15 pm

Have you followed step 6 :-) that explains how to add the portlets. 6. Add the portlets to a page/tab withing dotcms backend. Use personalize ... under ... ...
Jason Tesser
tesserfamily
Online Now Send Email
Jul 6, 2009
10:28 am

... can you describe it how to do that with more description?...
barkha_crazzyworld
barkha_crazz...
Offline Send Email
Jul 6, 2009
10:37 am

Well step 6 broken down. 1. Look at the top right side when logged in as an admin in the backend. 2. Click the link personalize pages. 3. Create a page/tab...
Jason Tesser
tesserfamily
Online Now Send Email
Jul 6, 2009
10:44 am

... i'm so glad that finally i've done it. thank u very very much for your stupendous support. hey what enteries will be there in hello_world_bean table that...
barkha_crazzyworld
barkha_crazz...
Offline Send Email
Jul 6, 2009
11:08 am

Nothing it is just an example of the deployer. Read through all the sections here http://dotcms.org/documentation/Plugins ...
Jason Tesser
tesserfamily
Online Now Send Email
Jul 6, 2009
12:01 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help