+1 571-297-6383 | info@sonjara.com

Add CMS-Editable Lookup Text to Your Code Pages

Need to add text to a code page while retaining the ability to edit the text through the CMS? Here is where text lookup comes in.

1. Make sure the code page includes the text_lookup component.

  1. Near the top of the code file there should be a line--starting with "Fakoli:using"--that lists the components to which the code needs to have access. Make sure that "text_lookup" is among them.

Example:    Fakoli::using("text_lookup", "project_database", "taxonomy");

2. In the CMS, create a text lookup entry.

  1. Navigate to Classification > Text Lookup and click "Add a Text Lookup".
  2. Enter a code (all lowercase, separated by underscores if needed, such as "procurement_intro") to identify the text, and the text itself.

3. Insert the lookup text code in your code file

  1. Back in your code file, add a line of code inserting the lookup text at the position where you want the text to appear.

Example:    echo TextLookup::getText("procurement_intro");


Enabling and tracking user feedback » « Application Settings
 

Comments

  • dtczgwam
    Posted by JamesRed at 2017-10-05 18:39:46
    a little more homework write essay service google essay writer https://essaywritingservice.us.com - essay writing service
  • rxnymzae
    Posted by JamesRed at 2017-10-05 14:35:25
    write my essay help me with my essay my paper writer https://writemyessay.us.com - write essay for money
* indicates required field