- Created by Jennifer Geers (Unlicensed) , last modified on Aug 14, 2019
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 2 Next »
Editing Texts
This chapter will teach you how to design the texts on your website.
- You can edit text directly in the preview. This practical new function is presented in this chapter.
- After that, you will learn about various options for designing your text in an appealing manner and for insertig dynamic elements. For example, you can change the type face with HTML and CSS, insert images and links, or insert personalized data using wildcards.
Editing Texts Directly in the Preview
The texts which the panelists see originate from various sources. Page names and texts of function modules, for example, are defined in the website editor on the respective page. Error messages and wildcards, however, are managed in dedicated menus.
The more familiar you are with EFS Panel, the fewer problems you will have finding the right place and editing the desired text directly at the source. However, you can edit most of the text directly in the preview:
- The following types of text can be edited: Wildcards, messages, texts from page modules and page titles. Texts which are not part of the CMS, such as news or forum posts, cannot be edited directly. They are managed in dedicated menus.
- Templates can be edited as well.
- The direct editing feature is only available for users logged into the admin area.
- As usual, the changes are made in the preview, not in the publicly accessible version of the page. You have to publish them explicitly.
- This feature is protected by the ACL right “panel_online_editing”. Write rights are required.
Working Directly in the Preview
To work directly in the preview, please proceed as follows:
- In the preview drop-down list, select “Direct editing”. The preview is opened in a new window.
- Open the page you wish to edit.
- Switch to editing mode by clicking on the Edit button in the header section of the preview window.
Move your mouse pointer over the text elements. A green frame will indicate a text element that can be edited. Click on the desired text element.
The editing window will open.
– The title will indicate the source of the text. In this case, the source is a page module.
– Change the text as desired.Save your changes. Check the result before publishing the changed version of the page via the website editor.
Formatting Text with HTML and CSS
The formatting of text elements – font, font size, color etc. – is defined by the page module’s template in combination with the panel’s CSS classes. This gives you efficient, centralized control over the layout properties of the entire panel. Details such as line breaks or formatting of individual words, on the other hand, can be directly defined with HTML and CSS in the text input fields.
The following tables give an overview of the most important HTML tags.
Information
You should use this manual formatting option with care. Cross-panel formatting with the help of templates and CSS files increases uniform appearance and reduces the maintenance effort in case of changes.
The most important HTML tags:
Tag | Meaning |
---|---|
<h[1-6]>Text</h[1-6]> | Header |
<p>Text</p> | Paragraph |
<br> or <br /> | Line break |
<hr> | Dividing line |
<ul> | List with bullet points |
<ol> | Numbered list |
<table border="thickness"> | Table with one row and two columns. Instead of “thickness”, you should give the desired border thickness in pixel. |
<a href="URL”>link name</a> | Clickable link. Instead of “link name” , you should enter in the text that should appear as a clickable link. |
HTML tags for formatting text components:
Tag | Meaning |
---|---|
<b>Text</b> | Bold |
<i>Text</i> | Italics |
HTML entities for German umlauts:
Tag | Meaning |
---|---|
ä / Ä | ä / Ä |
ö / Ö | ö / Ö |
ü / Ü | ü / Ü |
Information
A detailed introduction to HTML and CSS can be found, for example, at http://selfhtml.org.
Uploading and Managing Images
Images and other media files for the website are managed with a panel-specific version of the EFS media library:
- The library is located in the menu Website → Asset library (until EFS 10.3: Media library).
- From EFS 10.4, the files are separated as follows:
- Website assets: website-specific files.
- Panel assets: files which can be used on all websites.
- QuestBack assets: read-only assets provided by QuestBack, sorted by website themes.
- You can use not only images, but SVG graphics, flash and video formats as e.g. RealVideo or Quicktime. To access a detailed list of the permitted file types, open the Upload file dialog and click on the Question mark icon.
- The maximum file size is installation-specific. If you exceed the threshold value, a note will be displayed.
Inserting Links
Panel CMS contains different types of links.
- External links: Refer to a page outside the respective panel language version, usually an external domain. They are inserted in modules or templates using normal HTML tags. See the following section “1. External links”.
- Internal links: Refer to a page that is part of the respective panel language version. Internal links are also inserted using HTML tags; however, the so-called page identifier is inserted instead of the full URL. See the section “2. Internal links” for instructions.
- Short URLs: It is possible to display URLs shortened with a Smarty modifier, which are widely used on Twitter or in smartphone communication. Instructions can be found in section 3 “Optimized short URLs for Twitter”.
Information
The menu of the website is dynamically generated in EFS Panel, depending on the page configuation (the fields “Parent page”, “Position”, “Access control”, “Show in navigation” in particular). Manual maintenance of menu links is therefore not required.
1. External Links
Links to other domains (e.g. http://www.domain.com) can be inserted into modules or templates in a “normal” way, i.e. with the HTML tag <a href=http://www.domain.com>Linkname</a>.
Example: Inserting a link to your company homepage
The contact address entered on the “About us” page contains the company homepage URL http://www.example.com. However, it is not a clickable link. You can create a clickable link by amending the <a href=“URL“>Linkname</a> tag.
- Enter the following into the “www” line:
WWW: <a href=http://www.example.com>http://www.example.com />
- Confirm by clicking on Save.
- Click on Preview working version. The following figure shows the results of your work. Test whether the new link functions properly. If you are satisfied, click on Publish page to apply the change to the publicly accessible panel page.
2. Internal links
You can create internal links – i.e. links that refer from a panel page to another page of the same language version – using wildcards. Wildcards are based on the page identifier. They always follow the same pattern:
{$links.pageidentifier}
Information
Please note: If a panel page’s page identifier is changed, the internal links referring to this page must be manually updated. If an incorrect wildcard is accidentally placed or a change not updated with the result that an internal link refers to a nonexisting page, visitors will remain on the existing page.
Example
You want to insert a back link on the “About us” page that allows panelists to return to the “Home” page.
- First, in the website editor, determine the page identifier of the “Home” page for the desired language version. This is also named “home”.
- Assemble the wildcard: {$links.home}
- To create a clickable link, insert the <a href=“URL”>Linkname</a> HTML tag in the desired place in the content module of the “About us” page. Replace the URL with the {$links.home} wildcard:
<a href="{$links.home}">back to home</a>
- Click on Save.
- Check the result in the working version. You can then publish the page.
3. Optimized short URLs for Twitter
You can create and display short URLs optimized for Twitter directly in the website editor. This is realized with the help of the Smarty modifier:
{"URL"|shorturl}
It can be entered in all fields of the website editor marked with “Smarty code” as well as in all panel templates. The entered URL will then be converted into a shorter URL.
Example:
Original URL: {"http://www.questback.de/"|shorturl}
Shortened URL: http://i.gpefs.com/?i=3-DW5w
Instead of a static URL, you can also use Smarty wildcards to insert indiviual URLs for each panelist, for example.
Information
If you host your panel installation yourself, please bear in mind that this service is only available if your server can connect to the appropriate QuestBack server. For further details, please get in touch with your QuestBack sales contact.
Using Wildcards to Output Predefined Text Elements
You can use wildcards to insert text elements instead of entering them into a module or the template source code. In the standard panel, this option mainly allows you to define and update message texts and labels of frequent input fields such as “Name” or “E-mail” for the entire language version. In addition, you can export these wildcards and edit them externally.
Information
The wildcard administration of the CMS is designed for up to 200 wildcards per language version. If you use wildcards a lot, take care to use meaningful names, to prevent e.g. the creation of duplicates. If necessary, develop your own nomenclature.
Example
In the main template “main_default” of the standard panel, the copyright claim is integrated by the following source code:
{* START COPYRIGHT *}
<div id="gpCopyright">
{$content.label_footer_copyright} {$env.now|localize_date:'Y'} //
</div>
{* END COPYRIGHT *}
In the Wildcard menu, look for the wildcard entitled “label_footer_copyright”. In the standard panel this wildcard contains the text “QuestBack ©”. If you call up a panel page, {$content.label_footer_copyright} is filled with this content, and “Questback ©” is displayed. If you change the content of the wildcard, the copyright claim on the panel pages will also be changed.
Information
Smarty wildcards and other Smarty code are not merely restricted to templates, but can also be used in a number of page modules. Fields that allow Smarty code are marked accordingly with “Smarty code”.
1. Managing wildcards
The menu Website → Standard content → Wildcards contains an overview of all wildcards available. The table has the usual search function, the individual wildcards can be edited or deleted.
Information
Read rights for “panel_website_wildcards” are needed for accessing the Wildcards menu.
2. Creating a new wildcard
- Click on the Create wildcard button in the menu Website → Standard content → Wildcards.
- Enter a name for the wildcard. Permissible characters are a-z, A-Z, 0-9, _ and -. Special characters and blank spaces are not permitted.
Enter the desired content in the “Content” field.
Information
- You can add a description to facilitate orientation.
Confirm by clicking on Create.
3. Editing wildcards
- In the menu Website → Standard content → Wildcards, click on the Edit button or the title of the wildcard you wish to change.
- You can change the name, content and description. If the wildcard is already being used in a module or a template, make sure you also correct the name of the wildcard there.
- Confirm by clicking on Save.
- Inserting wildcards in modules or templates
If you wish to insert a wildcard created in the Wildcards menu in a module or a template, use the following syntax:
{$content.wildcard}
This allows you to insert these wildcards in any module or template.
5. Deleting wildcards
There are two options to choose from when deleting wildcards:
- If you want to delete only one wildcard, click on the Delete icon. The wildcard will be removed after a confirmation prompt.
- If you want to remove several wildcards at once, tick the respective checkboxes of these wildcards in the “Delete” column. Depending on the situation, you may also use the checkboxes “Mark all entries on this page” and “Mark all entries found” below the table. After that, confirm by clicking on Delete. This batch delete function is particularly helpful while building or making major changes to a website when a large number of wildcards may have to be replaced and removed.
Using Wildcards to Output Data Dynamically
The wildcards introduced in the previous chapter are used to output predefined text elements. However, EFS Panel also has wildcards that can be used to dynamically output personal data of panelists, for example. These wildcards are primarily used in Smarty templates. You can, however, also use them in page modules, to further personalize and localize your panel pages:
- Information that can be output includes
- Localization information (e.g. date and time)
- Panel information (e.g. panel name)
- Participant data (only for logged-in panelists)
- Master data (only for logged-in panelists)
- Which wildcards are available on a certain page depends on various criteria, such as the page modules used on the respective page or the login status of visitors. The following three tables contain wildcards that are available across the entire panel.
- Page module input fields that allow the use of Smarty wildcards are marked accordingly with “Smarty code”.
- If you have the necessary programming skills you can program conditions for wildcard output.
Information
Please note: This chapter merely explains how to complete simple tasks, such as inserting panelists’ names on panel pages, for example. For more complex programming tasks, please refer to Chapter "Working with Smarty Templates" and the Smarty documentation at http://www.smarty.net.
Example
In the standard, panelists are welcomed by their first name on the personal homepage entitled “My home”.
In the content module, which defines the upper part of the page, enter the following text:
Hello {$respondent.u_firstname|escape:'html'}
The {$respondent.u_firstname} wildcard is dynamically filled with the first name of the respective panelist.
The escape:'html' command is a security measure: It ensures that any code in the u_firstname field of the user data table is not executed. It is recommended to use this escape command on output for all data, or at least for all data entered by visitors and panelists. This way you can prevent unauthorized persons from manipulating page output by entering JavaScript code, for example, or from obtaining data of other panelists.
Syntax
The following syntax is mainly used when entering dynamic wildcards in a module or a template:
{$prefix.wildcard}
The prefix indicates the context from which the variable is taken. The “respondent” prefix in the example above is used for the data of currently logged-in panelists, for example, whereas “content” is used for the wildcards defined in the Wildcards menu.
Overview of wildcards available across the panel site
1. Wildcards available across the panel site
Variable name | Meaning |
---|---|
{$env.panel_name} | Name of the panel. This is defined in the Panel → Edit settings menu. |
{$env.locale.date_format} {$env.locale.date_format2} | The current date. The formats for both wildcards are defined in the “Locale settings” section of the Configuration tab in the Website → Panel websites → {Selected language version} menu; the default setting is d.m.Y |
{$env.locale.time_format} {$env.locale.time_format2} | The current time. The formats for both wildcards are defined in the “Locale settings” section of the Configuration tab in the Website → Panel websites → {Selected language version} menu; the default settings are hi a(T) and H:i:s |
{$env.locale.datetime_format} {$env.locale.datetime_format2} | Additional date formats. |
2. Wildcards available in the internal area of logged-in panelists
Variable name | Meaning |
---|---|
{$respondent.pseudonym} | The pseudonym is an internal identification number within the panel which allows you to uniquely identify each panelist. It is included in both the master data export and the participant data export and thus allows you to merge (match) the data. |
{$respondent.u_firstname} | First name |
{$respondent.u_name} | Last name |
{$respondent.u_account} | Account name: Accounts can optionally be used for authentication. |
{$respondent.u_street} | Street |
{$respondent.u_zip} | Zip code |
{$respondent.u_city} | City |
{$respondent.u_phone} | Phone number |
{$respondent.u_mobile} | Cell phone number |
{$respondent.u_mobile2} | Additional field for cell phone number |
{$respondent.u_email} | E-mail address |
{$respondent.u_www} | Panelist's homepage |
{$respondent.u_address} | Address |
{$respondent.u_address2} | Aditional address field 2 |
{$respondent.u_address3} | Aditional address field 3 |
{$respondent.u_country} | Country |
{$respondent.u_gender} | Gender |
{$respondent.u_other_id} | A database field to which you can assign a freely chosen identification code for a participant when importing. |
{$respondent.u_passwd} | Password |
Variable name | Meaning |
---|---|
{$respondent.m_000x}, {$respondent.md_000x} | Master data. For master data with characteristics, the code and label are output as follows:
|
Information
The wildcards listed above are either available on all pages or on all pages of the internal area. If you want to know which additional wildcards can be used on a certain page, simply access the Smarty debugging console.
Editing Messages
EFS panel has its own error message system. In the standard panel, the messages are shown on the right side of the content area above the login.
The messages are configured by QuestBack Support when the panel is set up. You can make subsequent changes to the content of the messages. However, you currently have no access to the rules that determine whether and in which situation a message will be invoked. Accordingly, it is usually not advisable to create new messages. Only when configuring the RegEx checks for the registration form do you have the option of defining new messages with related rules on invoking them.
Information
The message administration of the CMS is designed for up to 200 messages per language version. If you use messages a lot, take care to use meaningful names, to prevent e.g. the creation of duplicates. If necessary, develop your own nomenclature.
Message Types
In EFS Panel, there are different message types:
- Error messages: Messages of the “error” type consist of a header and the actual message text.
- Notifications: Messages of the “notification” type consist only of the message text.
- Notifications which relate to keying errors during registration are a special case.
Managing Messages
The Website → Panel websites → {Selected language version} → Messages menu allows you to view existing messages, create new messages and delete messages that are no longer used.
Information
Read rights for “panel_website_messages” are needed for accessing the Messages menu.
The Messages overview comprises all the messages created for the predefined language version and contains the following information:
- Identifier: Internal Wildcard, used to invoke the message from the “Error messages” template.
- Header: Message header as displayed to visitors. Is only used with the “Error” message type.
- Message text: The actual content of the message.
- Message type:
- Error
- Notification
If you want to view messages of another language version which you’re authorized to access in a given installation with several websites and/or language versions, simply change the settings in the upper section of the dialog. You can use the View function to change the number of table columns displayed as well as the number of rows per page.
The table can be browsed according to the content of messages.
You can use the “Actions“ icons to edit the messages:
- Change: Opens a form in which you can change the type, header and text of a message.
- Delete:
- If you want to delete only one message, click on the Delete icon. The message will be deleted after a confirmation prompt.
- If you want to remove several messages at once, tick the respective checkboxes of these messages in the “Delete” column. Depending on the situation, you may also use the checkboxes “Mark all entries on this page” and “Mark all entries found” below the table. After that, confirm by clicking on Delete. This batch delete function is particularly helpful while building or making major changes to a website when a large number of messages may have to be replaced and removed.
- No labels