cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying contents in table format

guhann
Champ in-the-making
Champ in-the-making
Is that possible to create and manage the contents in table format? i need to display some contents in table format. How do i go about it?

There is no option for table in that editor which we are using from xsl….. Pls help me on this……

while giving input to the web forms, Is there any ways to provide html tags for formatting the contents.
3 REPLIES 3

arielb
Champ in-the-making
Champ in-the-making
there are two options for this.  the recommended is to use a repeat structure within the xform to capture the data and then in your rendering engine template, read in that data and render a table.  if your preference is to have the user enter tabluar data within the richtexteditor, you can include the tinymce plugin for tables by patching xforms.js.  in 2.1E there will be external configuration available to enable this feature.

guhann
Champ in-the-making
Champ in-the-making
Hi Thank you very much for this…………

I did modifications in xforms.js as below and all the advance tools are getting displayed in the editor toolbar.

tinyMCE.init({
theme : "advanced",
mode : "exact",
elements : "editor",
save_callback : "saveContent",
plugins : "table",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,forecolor,backcolor",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_disable: "styleselect",
extended_valid_elements : "a[href|target|name],font[face|size|color|style],span[class|align|style]"
});

guhann
Champ in-the-making
Champ in-the-making
The same code i added in xforms.js in alfresco-community-tomcat-2.1.0R1…. but it's not working …….

It's really frustating and lot of time is getting wasted…. I don't understand why they didn't provide all the advance controls(table,html source view) as default in the tinyMCE editor…………

How should we work without having these basic features?

pls help me to include all the advance controls in the editor…..