Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2016
    Location
    Denmark, Copenhagen
    Posts
    39
    Plugin Contributions
    0

    Default EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

    Hello everyone!

    I am using Zen Cart v1.5.4. Recently I installed EZ-pages Meta tag that allows me to add keywords and title to my EZ pages. Unfortunately I noticed (perhaps many others know about this issue) that anytime when I add some keywords and I am using CKEditor they are having some changes on certain letters (specific letters to the Danish alphabet).

    I know that somebody will say "disable it before using EZ-Pges". Well, unfortunately I would do that if I wouldn't had to use CKEditor to edit my EZ pages content. So if I go to EZ pages with disabled CKEditor and I add my metatags and next time go with enabled CKEditor to edit my content on the pages, they are automatically changed.

    So, here is my question: how I should proceed in this situation? Is there some code that I can add, so CKEditor doesn't affect to the Metatags fields in EZ-pages menu?

    Thank you in advance and sorry for my English!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

    Quote Originally Posted by bennito View Post
    Is there some code that I can add, so CKEditor doesn't affect to the Metatags fields in EZ-pages menu?
    Add an HTML class of "noEditor" to the textarea fields that you wish CKEditor to ignore.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,501
    Plugin Contributions
    88

    Default Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

    Quote Originally Posted by DrByte View Post
    Add an HTML class of "noEditor" to the textarea fields that you wish CKEditor to ignore.
    Just so I'm clear, the following section of the ezpages.php modified by the EZ Pages Meta Tags plugin:
    Code:
    <?php
    //-bof-ezpages_metatags-lat9  *** 4 of 5 ***
    ?>
              <tr>
                <td class="main"><?php echo TEXT_PAGE_META_TITLE; ?></td>
                <td class="main"><?php echo zen_draw_input_field('pages_meta_title', $ezInfo->pages_meta_title); ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo TEXT_PAGE_META_KEYWORDS; ?></td>
                <td class="main"><?php echo zen_draw_textarea_field ('pages_meta_keywords', 'soft', '100%', '3', htmlspecialchars ($ezInfo->pages_meta_keywords, ENT_COMPAT, CHARSET, TRUE)); ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo TEXT_PAGE_META_DESCRIPTION; ?></td>
                <td class="main"><?php echo zen_draw_textarea_field('pages_meta_description', 'soft', '100%', '5', htmlspecialchars ($ezInfo->pages_meta_description, ENT_COMPAT, CHARSET, TRUE)); ?></td>
              </tr>
              <tr>
                <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
              </tr>
    <?php
    //-eof-ezpages_metatags-lat9  *** 4 of 5 ***
    ?>
    should be changed to:
    Code:
    <?php
    //-bof-ezpages_metatags-lat9  *** 4 of 5 ***
    ?>
              <tr>
                <td class="main"><?php echo TEXT_PAGE_META_TITLE; ?></td>
                <td class="main"><?php echo zen_draw_input_field('pages_meta_title', $ezInfo->pages_meta_title); ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo TEXT_PAGE_META_KEYWORDS; ?></td>
                <td class="main"><?php echo zen_draw_textarea_field ('pages_meta_keywords', 'soft', '100%', '3', htmlspecialchars ($ezInfo->pages_meta_keywords, ENT_COMPAT, CHARSET, TRUE), 'class="noEditor"'); ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo TEXT_PAGE_META_DESCRIPTION; ?></td>
                <td class="main"><?php echo zen_draw_textarea_field('pages_meta_description', 'soft', '100%', '5', htmlspecialchars ($ezInfo->pages_meta_description, ENT_COMPAT, CHARSET, TRUE), 'class="noEditor"'); ?></td>
              </tr>
              <tr>
                <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
              </tr>
    <?php
    //-eof-ezpages_metatags-lat9  *** 4 of 5 ***
    ?>
    If that's correct, I'll get that change staged for the plugin. You can check the status within the plugin's support thread.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

    Correct.

    (As a quick test, you can View Source to verify that the textarea field has the noEditor class on it.)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,501
    Plugin Contributions
    88

    Default Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

    Thanks, DrByte; I'll get that change going.

  6. #6
    Join Date
    Jan 2016
    Location
    Denmark, Copenhagen
    Posts
    39
    Plugin Contributions
    0

    Default Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

    Thank you guys! It is working perfect!

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,501
    Plugin Contributions
    88

    Default Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

    Thanks for the feedback, bennito! I'll get that change into the plugin shortly.

 

 

Similar Threads

  1. Does EZ-Pages Meta Tag Fields work on ZC version 1.5.1?
    By Millie63 in forum General Questions
    Replies: 2
    Last Post: 29 May 2014, 01:47 PM
  2. v150 EZ-Pages Meta tag fields + Multi-Language Support for EZ-Pages
    By ShopVille in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 11 Nov 2012, 09:25 PM
  3. Does EZ-Pages Meta Tag Fields Work for 1.3.9?
    By gelenbaas in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 7 Feb 2012, 11:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR