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.
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
Hi Karl,
Thank you for the reply. here im attaching taggable-content.ftl and tags.ftl please have a look at these. i have searched for any references to jive-global-header in these files but i didnt find any.
Thank you,
chandu.
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
Hi Karl,
Im trying to customize the "taggable-content" action to display external resources when a requested tag is not available. here i customized the "taggable-content" action and added a overridden version of this action in an action plugin. today i've update tags.ftl and taggable-content.ftl
in tags.ftl i've added a new javascript prototype calss in the place of JiveTaggableContent to support displaying external resources when the requested tag is not available in CS db. im attaching those updated files. im still having the issue but with some change.
1. if i request a url like http://localhost:8080/clearspace_community/tags?tags=tag1. in this case its rendering fine no additional header is appended
2. but once above url is queried. it presents the UI with tagcloud and resources of the tag "tag1". now if i click any of the tags in the tag cloud
im getting the additional header.
Thank you,
chandu.
Hi Karl,
Are there any updates on this thread please?
Thank you,
chandu.
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
Hi Karl,
Thank you for the reply. i tried to isolate the issue with a simple hello-world example instead of including result from a custom version of taggable-content action what i did was, i added a hello-world action like below
HelloWorld.java
import com.jivesoftware.community.action.JiveActionSupport;
public class HelloWorld extends JiveActionSupport {
public String execute() {
return "success";
}
}
hello-world.ftl
<div>
<span>This is hello world</span>
<a href="#" onclick="jivetaggablecontent.reload(true); return false;">click here</a>
</div>
<form id="jive-tagform" name="jivetagform" method="get" >
</form>
action confioguration
<action name="hello-world" class="com.custom.community.actions.HelloWorld">
<result name="success">/template/global/hello-world.ftl</result>
</action>
and in tags.ftl i invoked i called this hello-world action. as you see it displays simple text no headers and no footers. but still a header image,
user bar and footer. im wondering weather is this same for ever action? is there a way to avoid including header and footer?
im attaching the tags.ftl and the result page i've got for your review.
please suggest something as i feel this is CS realted but not with my customization.
Thank you,
chandu.
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
Hi Karl,
Any updates on this topic? i noticed that when i invoke custom actions with hello-worl.jspa a header and footer values are appended to UI automatically but if i invoke the same action through a different channel like invoking actions from a ftl with <@s.action name="hello-world"
header and footer are not included. im not sure why is this? please let me know if you have any updates.
Thank you,
chandu.
Jive combines collaboration software, community software & social networking software into the leading SBS solution.
© Copyright 2000–2009 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205