Skip to content

Instantly share code, notes, and snippets.

@farmerbradllc
Last active December 11, 2015 23:18
Show Gist options
  • Select an option

  • Save farmerbradllc/4675508 to your computer and use it in GitHub Desktop.

Select an option

Save farmerbradllc/4675508 to your computer and use it in GitHub Desktop.
Add Css Class Name to portlet for resources importer
{
"portletId": "1_WAR_webformportlet_INSTANCE_${groupId}",
"portletPreferences": {
"description" : "",
"fieldType1": "text",
"fieldLabel1": "Your Name (required)",
"fieldOptional1":"false",
"fieldType2": "text",
"fieldLabel2": "Your Email (required)",
"fieldOptional2":"false",
"fieldType3": "text",
"fieldLabel3": "Subject",
"fieldOptional3":"true",
"fieldType4": "textarea",
"fieldLabel4": "Your Message",
"fieldOptional4":"true",
"portletSetupCss": {
"wapData":{
"title": "",
"initialWindowState": "NORMAL"
},
"spacingData":{
"margin":{
"sameForAll":true,
"bottom":{
"unit":"px",
"value":""
},
"left":{
"unit":"px",
"value":""
},
"right":{
"unit":"px",
"value":""
},
"top":{
"unit":"px",
"value":""
}
},
"padding":{
"sameForAll":true,
"bottom":{
"unit":"px",
"value":""
},
"left":{
"unit":"px",
"value":""
},
"right":{
"unit":"px",
"value":""
},
"top":{
"unit":"px",
"value":""
}
}
},
"borderData":{
"borderStyle":{
"sameForAll":true,
"bottom":"",
"left":"",
"right":"",
"top":""
},
"borderColor":{
"sameForAll":true,
"bottom":"",
"left":"",
"right":"",
"top":""
},
"borderWidth":{
"sameForAll":true,
"bottom":{
"unit":"px",
"value":""
},
"left":{
"unit":"px",
"value":""
},
"right":{
"unit":"px",
"value":""
},
"top":{
"unit":"px",
"value":""
}
}
},
"textData":{
"fontWeight":"",
"lineHeight":"",
"textDecoration":"",
"letterSpacing":"",
"color":"",
"textAlign":"",
"fontStyle":"",
"fontFamily":"",
"wordSpacing":"",
"fontSize":""
},
"bgData":{
"backgroundPosition":{
"left":{
"unit":"px",
"value":""
},
"top":{
"unit":"px",
"value":""
}
},
"backgroundColor":"",
"backgroundRepeat":"",
"backgroundImage":"",
"useBgImage":false
},
"advancedData":{
"customCSS":"\n#p_p_id_1_WAR_webformportlet_INSTANCE_${groupId}_ .aui-fieldset-legend{\n\tcolor: #C7C7C7;\n\tfont-size: 15px;\n\tmargin: 10px 0;\n}\n\n#p_p_id_1_WAR_webformportlet_INSTANCE_${groupId}_{\n\tcolor: #888;\n}\n\n#p_p_id_1_WAR_webformportlet_INSTANCE_36660_ textarea {\n\tmin-height: 100px;\n\twidth: 200px;\n}\n",
"customCSSClassName":"contact-form"
}
},
"portletSetupShowBorders": "false",
"title" : "Contact"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment