I’ve been trying to resolve the issue of the formatting buttons not appearing on the form. I’ve scaled back and done a test with just the custom field form, and stripped all other JavaScript. I’ve also made sure it was from the main site, in case there might be a path issue to the main themes folder. The Playa and PT Pill fields are displaying properly so it is clear that the paths to the CSS and other JavaScript files are working as they should.
No luck with anything I’ve tried.
Here’s the build detail if this helps:
ExpressionEngine: 2.1.3 Build 20101220
Safecracker 1.0.3
The text “| Formating Buttons Go Here” appears before every field, but no buttons. Here’s the template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset={charset}" />
<link rel='stylesheet' type='text/css' media='all' href='{stylesheet=shared/trw_css}' />
<style type='text/css' media='screen'>@import "{stylesheet=shared/trw_css}";</style>
</head>
<body>
<div id="masthead">
<a href="{path=site_index}"></a>{embed=shared/rightnav}
</div>
<div id="wrapper">
{embed=shared/pagesetup}
<div id="cleardivs"></div>
{exp:safecracker channel="services" return="services-old/services_test/ENTRY_ID" entry_id="{segment_3}"}
{custom_fields}
<p><label for="{field_name}">{if required}* {/if}{field_label}</label></p>
<p>{field_instructions}</p>
<p>{formatting_buttons}| Formating Buttons Go Here</p>
{if error}
<p class="error">{error}</p>
{/if}
{if textarea}
<p>
<textarea id="{field_name}" name="{field_name}" dir="{text_direction}" rows="{rows}">{field_data}</textarea></p>
{/if}
{if text}
<input type="text" dir="{text_direction}" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" />
{/if}
{if select}
<select id="{field_name}" name="{field_name}">
{options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
</select>
{/if}
{if date}
<input type="text" id="{field_name}" name="{field_name}" value="{field_data}" size="50" />
{/if}
{if checkbox}
</p>{options}<label class="checkbox">{option_value} <input type="checkbox" id="{field_name}" name="{field_name}[]" value="{option_value}"{checked} /></label><br />
{/options}
{/if}
{if radio}
<p>{options}<label class="checkbox">{option_value}<label class="checkbox"> <input type="radio" id="{field_name}" name="{field_name}" value="{option_value}"{checked} /></label><br />
{/options}</p>
{/if}
{if file}
<p>{display_field}</p>
{/if}
{if safecracker_file}
<p>{display_field}</p>
{/if}
{if relationship}
<p><select id="{field_name}" name="{field_name}">
{options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
</select></p>
{/if}
{if multiselect}
<p><select id="{field_name}" name="{field_name}[]" multiple="multiple">
{options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
</select></p>
{/if}
{if playa}
<p>{display_field}</p>
{/if}
{if pt_pill}
<p>{display_field}</p>
{/if}
{if pt_dropdown}
<p>{display_field}</p>
{/if}
{/custom_fields}
{/exp:safecracker}
</div>
</body>
</html>