Return to Jive Software

This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
2,172 Views 9 Replies Last post: Oct 21, 2008 11:14 AM by Joel Rosinbum RSS
chandu2708 Novice 89 posts since
Jan 6, 2008
Currently Being Moderated

Oct 6, 2008 1:07 AM

Unexpected entry of header

Hi,

 

  Im using CS 2.5.0.rc. and im trying to customize the tag cloud widget. but while i was customizing it i got some unexpected response i.e. the logo header is rendered two times. attached is the screenshot of result page.could any one please tell me where things went wrong.

 

also i noticed that while listing tag resources based on selecting a tag from tag cloud widget, action invoking procedure seems changed. i.e. there is no direct call to action instead a java script is invoked and its calling action method. could anybody please explain me this procedure. im planning to customize this process. but due to usage of script im unable to follow what this script is actually doing. below is a code snippet i noticed in taggable-content.ftl

 

 

<a href="#" onclick="jivetaggablecontent.addTag('${tagCloudBean.tag?js_string}'); return false;" title="<@s.text name='tags.used_n_times.tooltip'><@s.param>${tagCloudBean.count}</@s.param></@s.text>">

 

Thank you,

chandu.

Attachments:
Karl Cyr Jive Employee 6,819 posts since
Mar 12, 2008
Currently Being Moderated
Oct 6, 2008 12:06 PM in response to: chandu2708
Re: Unexpected entry of header

Hi Chandu,

 

The first thing I am going to recommend to you is an upgrade to 2.5.2, as the 2.5.0 RC release is not officially supported. I don't think your customization issue is related to the beta, but you will need to upgrade to a supported version to run Clearspace as it was designed.

 

As for your first issue, it looks like a consequence of your customizations. Could you please check your tags.ftl file to see if you may have any references to the jive-global-header? If you are uncertain of what to look for, you can attach your tags.ftl to this post and I'll take a look.

 

I am unsure about your second question, as that is a piece of the code I am not familiar with. Anybody have any insight into this?

 

Regards,

Karl

Karl Cyr Jive Employee 6,819 posts since
Mar 12, 2008
Currently Being Moderated
Oct 7, 2008 10:23 AM in response to: chandu2708
Re: Unexpected entry of header

Hi,

 

What customizations have you performed? Are you overriding the tags.ftl in the Edit Theme feature on the Admin Console? I can't immediately recognize what you're doing wrong so please provide more information. Thanks!

 

Regards,

Karl

Karl Cyr Jive Employee 6,819 posts since
Mar 12, 2008
Currently Being Moderated
Oct 10, 2008 8:56 AM in response to: chandu2708
Re: Unexpected entry of header

Hi Chandu,

 

I can't seem to replicate this issue on my local Clearspace instance, and just looking at your ftls there doesn't seem to be anything obviously wrong. My recommendation would be to pull out some of the code and try to isolate the problem to exactly where in the ftl the problem is occurring. I'm sorry I can't offer much advice past that because I can really only support code written by Jive.

 

Also, I see that you are currently running v2.5.0 rc. This is not a supported version of Clearspace so I recommend patching your system to 2.5.2 to make sure you are up-to-date with the latest code base.

 

Regards,

Karl

Joel Rosinbum Jive Employee 680 posts since
Jan 26, 2002
Currently Being Moderated
Oct 21, 2008 11:14 AM in response to: chandu2708
Re: Unexpected entry of header

Hi,

 

To fix the Issue of having the header rendered twice you need to anotate the hellowwoerld action with the @Decorate(false) annotation.  Whwn ever you have and action which renders inside an existing action you need to add this annotation to tell sitemesh to not include the header.  Examplea are any of the included actions or an action that renders inside a widget.

 

So change your action java code to be:

 

import com.jivesoftware.community.action.JiveActionSupport;

@Decorate(false)
public class HelloWorld extends JiveActionSupport {

   public String execute() {
      return "success";
   }
}

 

 

This should solve your problem.

 

Cheers,

Joel

More Like This

  • Retrieving data ...

Bookmarked By (0)