Pardot

Contact | Client Login | Search

Take a free product test drive today

  Home » Knowledge Base » User's Guide » Administration » Layout Templates

Layout Templates (Advanced Options)

Layout templates define how data will be displayed on the screen.  Each field is referenced as tags surrounded by '%%'.  You may build your own custom layout templates or import an existing page's look and feel by entering its URL.  Use the field tags below to format the results how you would like them displayed. 

Layout Template

%%title%% - Title of the web page.
%%name%% - The META content for the description of the template.
%%content%% - The HTML content inside the template.

Form Template

%%form-opening-general-content%% :
    The HTML content that is displayed to introduce the form.
%%form-if-on conversion%% :
    Opening if statement that executes if a successful conversion has been made.
%%form-JavaScript-focus%% :
    Gives a specific form field the focus in the web browser.
%%form-on-conversion-content%% :
    The HTML content that is displayed after a successful form submission.
%%form-end-if-on-conversion%% :
    Closing if statement.

Prospect

%%form-if-new-prospect%% :
    Opening if statement that executes if the visitor is a new prospect.
%%form-if-new-prospect-content%% :
    HTML content that is displayed for new prospects.
%%form-end-if-new-prospect%% :
    Closing if statement.

%%form-if-assigned-prospect%% :
    Opening if statement that executes if the prospect has been assigned to a user.
%%form-if-assigned-prospect%% :
    HTML content that is displayed for prospects that have been assigned to a user.
%%form-end-if-assigned-prospect%% :
    Closing if statement.

Form

%%form-if-display-form%% :
    Opening if statement that executes if the form should be displayed.
%%form-before-form-content%% :
    The HTML content that is displayed immediately before the form.
%%form-action-url%% :
    The URL to send the Visitor / Prospect to after submitting the form.
%%form-if-error%% :
    Opening if statement that executes if there was an error during the form submission.
%%form-end-if-error%% :
    Closing if statement.

Looping

%%form-start-loop-fields%% :
    Opening loop that executes for each field in the form.
%%form-field-class-required%% :
    The CSS style attribute to mark a field as required.
    Ex : <p class="%%form-field-class-required%%" >
%%form-field-class-hidden%% :
    The CSS style attribute to mark a field as hidden.
%%form-field-class-no-label%% :
    The CSS style attribute to not include a label with a specific form field.

Form Fields

%%form-field-class-error%% :
    The CSS style attribute to make a field as an error field.
%%form-if-field-label%% :
    Opening if statement that executes if a specific form field has a label.
%%form-field-id%% :
    The custom identification number for a specific form field.
%%form-field-label%% :
    The text to be displayed for the label of a specific form field.
%%form-end-if-field-label%% :
    Closing if statement.
%%form-field-description%% :
    The text that provides a description for a specific form field.
%%form-if-field-description%% :
    Opening if statement that executes if a specific form field has a description associated with it.
%%form-end-if-field-description%% :
    Closing if statement.
%%form-field-if-error%% :
    Opening if statement that executes if a specific form field has an error associated with it.
%%form-field-error-message%% :
    The error message to be displayed for a specific form field.
%%form-field-end-if-error%% :
    Closing if statement.
%%form-end-loop-fields%% :
    Closing loop statement.

Form Submission

%%form-submit-button-text%% :
    The string to be output as the text of the submit button on the form.
%%form-submit-indicator-on-click%% :
    The command to show the activity indicator, usually a JavaScript call.
%%form-submit-indicator-tag%% :
    The activity indicator, usually an animated gif.

Miscellaneous

%%form-spam-trap-field%% :
    A hidden field that prevents automated form filling.
%%form-JavaScript-first-input-focus%% :
    A JavaScript call that gives the focus of the browser to a specific form field.
%%form-after-form-content%% :
    The HTML content that is displayed directly after the form
%%form-end-if-display-%%form%% :
    Closing if statement.
%%form-JavaScript-link-target-top%% :
    A JavaScript link to return the visitor to the top of the page.

Site Search

Results

%%search-if-results%% :
  If statement to be executed if there are results from the site search.
%%search-else-no-results%% :

  If statement to be executed if there are no results from the site search.
%%search-end-if-results%%:

    Closing if statement.
%%search-query%% :
  The string to search for in the site search.
%%search-action-url%% :
  The action to execute when the search is started.
%%search-result-start-position%% :
  The number of the first search result on a page, accounting for pagination.
%%search-result-url%% :
  A hyper-text reference to a page containing a keyword from the search query.
%%search-result-title%% :
  The title of a page containing a keyword from the search query.
%%search-result-description%% :
  A description of a page containing a keyword from the search query.
%%search-result-url-abbreviation%% :
  A shortened form of a result page's url formatted for ease of viewing.
%%search-result-file-size%% :
  The size in kilobytes of a result page from a site search.

Pagination

%%search-this-page-number%% :
    The page number of search results that the user is currently viewing.
%%search-total-pages-number%% :
  The total number of pages of search results.
%%search-previous-page-number%% :
  The previous page number of search results.
%%search-previous-page-url%% :
  The hyper-text reference to the previous page of search results.
%%search-next-page-number%% :
  The page number for the following page of search results.
%%search-next-page-url%% :
  The hyper-text reference to the following page of search results.
%%search-no-results-content%% :
  The HTML content to be displayed if no search results were found.
%%search-if-previous-page-available%% :
    If statement to be executed if a previous page of search results is available.
%%search-else-previous-page-not-available%% :
    If statement to be executed if a previous page of search results is not available.
%%search-end-if-previous-page-available%%:
    Closing if statement.
%%search-if-next-page-available%% :

    If statement to be executed if a following page of search results is available.
%%search-else-next-page-not-available%% :

    If statement to be executed if a following page of search results is no available.
%%search-end-if-next-page-available%% :

    Closing if statement.

Looping 

 %%search-start-loop-results%% :
  The loop statement to be executed for each result from the site search.
%%search-end-loop-results%% :

    Closing loop statement.