+ Start a Discussion
iJojoiJojo 

Personalising my Visual page

hi, i have two issues ;

 

1) i'm trying to set up a visual page for quotes and invoices.

 

I stuck trying to get this : 

 

{!$Organization.Name}{!$Organization.street}  {!$Organization.state}{!$Organization.postalcode} {!$Organization.city} | restaurant@vieux-bois.ch | www.vieux-bois.ch {!$Organization.phone} | {!$Organization.fax}

 

as my page footer. 

 

2) second issue is the following,

 

my visual force page is build with titles like per example ;  

 

<h2>wine for your meal</h2>

 

and under my related field ;

 

<h9><apex:outputfield value="{!Opportunity.winefield}"/></h9>

 

so what i'd like to is to have the tiltle h2 displayed but only if there's a value in {!Opportunity.winefield}

 

 

Thank you in advance for your responses. This is my first post on this site so if i'm missing any info you would need let me know.

 

 

Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox

1) What do you mean "stucking trying to get this ... as my page footer"? If this is a PDF, you'll need some CSS code (see http://www.w3.org/TR/css3-gcpm/ ).

 

2) Use this:

 

<apex:outputText rendered="{!not isblank(opportunity.winefield)}">
<h2>wine for your meal</h2>
<h9><apex:outputField value="{!Opportunity.winefield}" /></h9>
</apex:outputText>

 

All Answers

sfdcfoxsfdcfox

1) What do you mean "stucking trying to get this ... as my page footer"? If this is a PDF, you'll need some CSS code (see http://www.w3.org/TR/css3-gcpm/ ).

 

2) Use this:

 

<apex:outputText rendered="{!not isblank(opportunity.winefield)}">
<h2>wine for your meal</h2>
<h9><apex:outputField value="{!Opportunity.winefield}" /></h9>
</apex:outputText>

 

This was selected as the best answer
iJojoiJojo

Thank you for your quick reply,

 

1)yes it is rendered as pdf, and i'am trying to have thoes filed locked as footer. i'am having a look at the link you gave me and it seems to have all the answers i need. 

 

2) Second solution it worked great!

 

Thanks again!

 

 

 

iJojoiJojo

Hi again!

 

here's what i'am tying to do ;

 

set headers with ; logo (which is a resource) and some text

 

and set footers with the organization information fields. This is how it looks like right now without being set as footer ;

 

<p align="right"><h7>{!$Organization.Name}</h7><br/><h8>{!$Organization.street} – {!$Organization.state} – {!$Organization.postalcode} {!$Organization.city} | restaurant@vieux-bois.ch | www.vieux-bois.ch</h8>
<br/><h8>{!$Organization.phone} | {!$Organization.fax}</h8></p>

 

which looks like that on paper aligned on the right side ;

 

Restaurant Vieux Bois
Avenue de la paix 12 – CH – 1202 Genève | info@vieux-bois.ch | www.vieux-bois.ch
. 022 919 24 26 | Fax : 022 919 24 28


As there is structure and style i understood from the website you gave me that i should use running elements, but i tried a few things yesterday and couldn't make it work....


Thank you in advance.

jo