Return to Jive Software

Skip navigation

This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
3,248 Views 4 Replies Last post: Aug 8, 2007 12:09 PM by abakwaboy RSS
abakwaboy Novice 24 posts since
Feb 16, 2007
Currently Being Moderated

Aug 7, 2007 8:48 PM

Clearspace 1.4 plugin

I am using Clearspacex 1.4, Jboss 4.05, Windows Vista.

 

I am trying to write a plugin that adds a tab to the user profile page tabs. I have successfully added the tab ' ProfileTab2' as shown in the atachment, and now need to put some business login with the action which is being called.

 

I have attached my plugin.xml, xwork-plugin.xml and the action class. In the other tabs on the profile bar, that url is in the form of /clearspace/people/username?view=viewtype, which triggers a call to ViewProfile action class.

 

In my plugin, how do I pass the current user and any other parameters that I may need to my action class? Is this done in the plugin xml files or in the action class or some other mechanism that ties them together.

 

Thanks for your help,

Attachments:
Tags: plugins
alex Jive Employee 103 posts since
Jun 26, 2007
Currently Being Moderated
Aug 7, 2007 9:37 PM in response to: abakwaboy
Re: Clearspace 1.4 plugin

the entry in your plugin.xml should look something like this:


        <component id="user-profile">
            <tab id="favorites" name="Favorites" cssClass="jive-link-favorite-small" url="favoriteProfile.jspa?username=${targetUser.username}">
                <description>
                  <![CDATA[http://<#if viewingSelf>View your favorites<#else>View favorites for ${targetUser.username?html}</#if>]|http://<#if viewingSelf>View your favorites<#else>View favorites for ${targetUser.username?html}</#if>\]\]\>
                 </description>
            </tab>
        </component>

 

You can see the url refers to the target user which is part of the profile action which it will be called from. You can populate any other parameters you would like in this way.

 

Hope that helps,

Alex

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.