Skip to content

Instantly share code, notes, and snippets.

@abhinavguptas
Created October 11, 2011 18:44
Show Gist options
  • Save abhinavguptas/1278993 to your computer and use it in GitHub Desktop.
Save abhinavguptas/1278993 to your computer and use it in GitHub Desktop.
Force.com IDE Code templates for Visualforce
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="html_attribute_value" deleted="false" description="" enabled="true" name="$ObjectType.Account.Fields.Name.Label">$$ObjectType.Account.Fields.Name.Label
</template><template autoinsert="true" context="html_attribute_value" deleted="false" description="" enabled="true" name="$ObjectType.Contact.accessible">$$ObjectType.Contact.accessible</template><template autoinsert="true" context="html_attribute_value" deleted="false" description="" enabled="true" name="$ObjectType.SobjectName.Label">$$ObjectType.Account.label</template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:form">&lt;apex:form id="formid"&gt;
${line_selection}
&lt;/apex:form&gt;</template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:pageBlock">&lt;apex:pageBlock title="My Content" mode="edit"&gt;
&lt;apex:pageBlockButtons&gt;
&lt;apex:commandButton action="{!save}" value="Save"/&gt;
&lt;/apex:pageBlockButtons&gt;
&lt;apex:pageBlockSection title="My Content Section" columns="2"&gt;
&lt;apex:inputField value="{!account.name}"/&gt;
&lt;apex:inputField value="{!account.site}"/&gt;
&lt;apex:inputField value="{!account.type}"/&gt;
&lt;apex:inputField value="{!account.accountNumber}"/&gt;
&lt;/apex:pageBlockSection&gt;
&lt;/apex:pageBlock&gt;</template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:pageBlockButtons">&lt;apex:pageBlockButtons&gt;
&lt;apex:commandButton action="{!save}" value="Save"/&gt;
&lt;/apex:pageBlockButtons&gt;</template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:pageBlockSectionItem"> &lt;apex:pageBlockSectionItem&gt;
&lt;apex:outputLabel value="Account Name" for="account__name"/&gt;
&lt;apex:inputText value="{!account.name}" id="account__name"/&gt;
&lt;/apex:pageBlockSectionItem&gt;</template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:pageBlockTable">&lt;apex:pageBlockTable value="{!account.Contacts}" var="item"&gt;
&lt;apex:column value="{!item.name}"/&gt;
&lt;/apex:pageBlockTable&gt; </template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:panelGrid"> &lt;apex:panelGrid columns="3" id="theGrid"&gt;
&lt;apex:outputText value="First" id="theFirst"/&gt;
&lt;apex:outputText value="Second" id="theSecond"/&gt;
&lt;apex:panelGroup id="theGroup"&gt;
&lt;apex:outputText value="Third" id="theThird"/&gt;
&lt;apex:outputText value="Fourth" id="theFourth"/&gt;
&lt;/apex:panelGroup&gt;
&lt;/apex:panelGrid&gt;</template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:sectionHeader">&lt;apex:sectionHeader title="Title" subtitle="SubTitle" /&gt;</template></templates>
@sbutterfield
Copy link

sbutterfield commented Dec 31, 2011 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment