Changes between Version 4 and Version 5 of DolphinAdminPagesBlocks


Ignore:
Timestamp:
Feb 15, 2012, 4:37:16 AM (12 years ago)
Author:
ggsinc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DolphinAdminPagesBlocks

    v4 v5  
    1 Each page consists of blocks which are on your website and most are viewable by your members.[[br]] 
    2 Page Builder allows you to add new blocks to the chosen page, remove, enable, disable and rearrange blocks according to your needs.[[br]] 
     1== Page Blocks == 
     2 
     3Each page of your Dolphin installation consists of blocks. Using the Page Builder, you can add new blocks as remove, enable, disable and rearrange blocks, according to your needs.[[br]] 
    34''' 
    45== Adding Blocks == 
     
    2425'''Warning! If you delete a block it will also be deleted from the page builder and the database as well'''.[[br]] 
    2526 
    26 == Creating language-file and HTML-based blocks in Dolphin 6.1.6 == 
    27  
    28 We decided to shed some light on this subject because it's really not so obvious in Dolphin 6.1.6 regarding creation of language-file based HTML blocks. 
     27== Creating language-file and HTML-based blocks == 
    2928 
    3029First of all, you cannot use language keys directly in the HTML editor, so, in the Builders you should create only an HTML stem of your block and specify some text which later will be replaced by language keys. 
     
    3332 
    3433 * So, navigate to '''Builders -> Pages Builder -> Homepage''', point the mouse cursor on the '''_HTML Block''' in the '''Samples''' area and drag it into the '''Active Blocks''' area placing among other blocks. 
    35  
    3634 * Click on the '''_HTML Block''' link of this block in the '''Active Blocks''' area. Think of a caption for this block and specify a language key for this caption in the '''Caption Lang Key''' field, for example: '''_My New Block''' 
    37  
    3835 * Now click the '''HTML''' icon in the editor toolbox. And now you can create your HTML stem and content for this block, for example: 
    3936{{{ 
     
    4138}}} 
    4239 Click the '''Save''' button. 
     40 * Select whether the new Page Block will be visible for Guests and/or Members. 
     41 * Set the Cache for seconds (leave set at the default setting of "0" to make no changes) 
     42 * Fill in the HTML content box for the content of your Page Block. To edit the HTML code, click the HTML button on the Tiny MCE menu. Not all code will work in the HTML box. 
    4343 
    44  * Now we can create a language key for the caption of our block. Navigate to '''Settings -> Language Settings''' and click the '''Add a new language key''' link. 
    45  
    46  Type '''_My New Block''' in the '''New language key name''' field. Choose the appropriate category in the '''Category''' drop-down menu, for example: '''Misc''' or type a new category in the adjacent field. Skip the field '''Language string parameters''' if you don't want to include any changeable PHP-generated parameters in this block. 
    47  
    48  Then create language strings for all the languages that you have created, for example:[[BR]] 
    49  '''My New Block''' for the English language[[BR]] 
    50  '''Mon nouveau bloc''' for the French language 
    51  
    52  Click the '''Save changes''' button. You should see the window notifying that the new key is successfully created and the language file is successfully compiled. 
    53  
    54  * Now comes the hardest part - key creation for the block's content. You should know how to use phpMyAdmin or any other interface which you can use to interact with the database. Log into this interface and open the table '''PageCompose'''.[[BR]] 
    55  Search for the block you have created: click the '''Search''' button and type '''_My New Block''' in the '''Caption''' field.[[BR]] 
    56  Open the found record for edition.[[BR]] 
    57  Replace the '''Echo''' function with the '''PHP''' function in the '''Func''' field.[[BR]] 
    58  Replace the '''Content''' with the following PHP code: 
    59 {{{ 
    60 echo '<p><span style="color: green;">' . _t("_My New Block Content") . '</span></p>'; 
    61 }}} 
    62  This way you will be able to create a language key '''_My New Block Content''' which will be rendered by the '''_t''' function.[[BR]] 
    63  Click '''Go''' to save the changes. 
    64  
    65  * Now you only need to create this new language key (see above) and recompile the block by navigating again to '''Builders -> Pages Builder -> Homepage''', clicking the block's caption and saving it again. 
    66  
    67  * Note: if you want your language strings to be bi-directional, you can embed them in '''<p dir="rtl"></p>''' tags, for example: 
    68 {{{ 
    69 <p dir="rtl">???? ???? ?????</p> 
    70 }}} 
    71  which means "My New Block" in Arabic. 
     44 * Now we can create a language key for the caption of our block. Navigate to '''Settings -> [DolphinAdminLanguagesSettings Language Settings]''' and click the '''Add key''' link. 
     45   * Type '''_My New Block''' in the '''key name''' field.  
     46   * Choose the appropriate category in the '''Category''' drop-down menu, for example: '''Misc''' or type a new category in the adjacent field. 
     47   * Then create language strings for all the languages that you have created, for example: 
     48      * '''My New Block''' for the English language 
     49      * '''Mon nouveau bloc''' for the French language 
     50   * Click the '''Save changes''' button. You should see the window notifying that the new key is successfully created and the language file is successfully compiled. 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
Fork me on GitHub