function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi everyone,
Iam trying to insert html template into VF page. Can u plz tell me the way to do that
Find below a sample code:
----------- VF Page -------------
<apex:page>
<apex:OutputText value="{!propTempBody}" />
</apex:page>
---------- Controller -----------
public string propTempBody{get;set;}
Folder fd = [Select id, name From Folder Where name = 'MyFolder'];
EmailTemplate emTemp = [Select id, name, subject, body From EmailTemplate Where FolderId=:fd.id and name='MyEmailTemplate' limit 1];
propTempBody = emTemp.body;
Hope this helps.
Hi Pradeep thanks for ur reply.
I wanna include a html template page which is having an image and a footer but not the Email Template
Visualforce has a concept called Templates & Compositions which allows you to have a Template (Header,Footer,Content) and Compositions (Body Content).
Take a look at the <apex:composition> tag in the standard library reference.
Find below a sample code:
----------- VF Page -------------
<apex:page>
<apex:OutputText value="{!propTempBody}" />
</apex:page>
---------- Controller -----------
public string propTempBody{get;set;}
Folder fd = [Select id, name From Folder Where name = 'MyFolder'];
EmailTemplate emTemp = [Select id, name, subject, body From EmailTemplate Where FolderId=:fd.id and name='MyEmailTemplate' limit 1];
propTempBody = emTemp.body;
Hope this helps.
Hi Pradeep thanks for ur reply.
I wanna include a html template page which is having an image and a footer but not the Email Template
Visualforce has a concept called Templates & Compositions which allows you to have a Template (Header,Footer,Content) and Compositions (Body Content).
Take a look at the <apex:composition> tag in the standard library reference.