Return to Jive Software

797 Views 5 Replies Last post: Jul 20, 2009 5:20 PM by Todd West RSS
rasims Novice 13 posts since
May 15, 2009
Currently Being Moderated

Jul 17, 2009 6:05 PM

Personalized Homepage Link In Menu

Hello!

 

This is (yet another) FTL question for SBS 3.0.0.  I have customized the "Your Stuff" menu with a link to the user's personalized homepage.  However, I would like to retain the "#if hasPersonalized" conditional.  What do I need to add to the string to make it look for the property?

 

Original code from main.ftl:

<a href="<@s.url value='/index.jspa'/><#if hasPersonalized>?showpersonalized=true<#else>?showpreview=true</#if>"><@s.text name="main.filterview.your"/></a>

 

The issue is that when the menu is viewed on other pages, the linked url terminates in index.jspa.

 

Please let me know if I can clarify.

 

Thanks,

 

Rebecca

Todd West Jive Employee 15,918 posts since
Jul 14, 2008
Currently Being Moderated
Jul 20, 2009 7:17 AM in response to: rasims
Re: Personalized Homepage Link In Menu

Hey Rebecca,

 

How have you gone about to customize the "Your Stuff" menu exactly? Also, are you saying that when you view any other page except for the main page you see only index.jspa in the link? and not index.jspa?showpersonalized=true or ?showpreview=true ?

 

-Todd

Todd West Jive Employee 15,918 posts since
Jul 14, 2008
Currently Being Moderated
Jul 20, 2009 3:35 PM in response to: rasims
Re: Personalized Homepage Link In Menu

Hey Rebecca,

 

Instead of that approach, I would highly suggest trying to do this with a simple plugin. All you need to do is create one which has a plugin.xml where you define your custom items for the tab and then you can apply modifiers to it to only display when certain evaluations are true:

 

http://www.jivesoftware.com/jivespace/docs/DOC-3282

http://www.jivesoftware.com/jivespace/docs/DOC-3432

 

 

Let me know if you have any questions.

 

-Todd

Todd West Jive Employee 15,918 posts since
Jul 14, 2008
Currently Being Moderated
Jul 20, 2009 5:20 PM in response to: rasims
Re: Personalized Homepage Link In Menu

Hey Rebecca,

 

Is this approach recommended in case we wind up needing to add more than one menu item down the road?

 

Definitely. It also means that any updates we make to the user-bar or related FTL's will not be hindered by a theme customization (making patch releases much more pain free).

 

Would we have a single plugin for all added actions/menu items, or would we have to create a new plugin for each addition?

 

You could have a single plugin. All you'd need is the plugin JAR with a plugin.xml inside of it. We have some example plugins available here that should help as well:

 

https://svn.jivesoftware.com/svn/dev/repos/jive/

 

 

Let me know if you have any questions. Thanks!

 

-Todd

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.