Difference between revisions of "Edit Affiliate Text"
OfferitDave (talk | contribs) (Created page with "{{Offerit Manual | show_setup_section = true | show_configuration_admin_section = true }} With the Language Override templates in offerit, you can customize the text that is dis...") |
(No difference)
|
Revision as of 09:52, 29 July 2013
With the Language Override templates in offerit, you can customize the text that is displayed on the Affiliate area without needing to worry about html or affecting the structure of the pages. From the template list, you can choose the 'language' section to see all of the language templates. There are two types of template here:
- The base language template (eg language_en) which defines all the text available to be translated. This template is for reference and cannot be edited.
- The language override templates (eg language_en_override) where you can paste content from the base language template and modify it.
Page Sections
The most commonly edited text is the page title and page description at the top of each page in the affiliate area. In the language template you will find a comment to tell you where these fields start.
# # page specific settings #
Each of these small blocks has is defined for a particular page on the site. For instance here is the section for the offer portfolio
[offers] PageTitle = "Offer Portfolio" PageDesc = """As an affiliate, you can promote any of the offers here in our portfolio. Feel free browse through all of the offers, along with their description, available languages, and CPA options. The options on the left can help you sort through our list of available offers. Clicking on an offer will bring up even more information, such as the authorized countries and marketing types.""" PageDescInternal = """You can promote any of the offers here in our portfolio. Feel free to take a look at all of the available offers, along with their description, available languages, and CPA options. The options on the left can help you sort through our list of offers. Clicking on an offer will bring up even more information, such as the authorized countries and marketing types.""" Currentoffers = "Current Offers"
here 'PageDesc' will be used on the external (logged out) offer list, and 'PageDescInternal' will be used on the internal (logged in) page.
Editing the templates directly
The definitions specified in the language templates are loaded in the individual page templates. For instance, {#PageDesc#} from the external_offers template will be replaces with the text under [offers] 'PageDesc' in the example above. If you need to make a change that involves more than just changing the text, you can replace (#PageDesc#} in the template entirely. This will let you hard code the text that you want to display, and skip our localisation entirely for this paragraph.