Templateshop - Eine große Auswahl an neuen und modernen Templates für die modified eCommerce Shopsoftware
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: new textareas not know by CKEditor WYSIWYG

    JobLot

    • Neu im Forum
    • Beiträge: 2
    • Geschlecht:
    new textareas not know by CKEditor WYSIWYG
    am: 01. Dezember 2015, 12:00:38
    Hello everyone,

    In: /admin/includes/modules/new_product.php

    new textareas have been added, with corresponding tables added to: products_description table in the database,

    but CKEditor does not recognise them so no WYSIWYG function is activated on those new textareas...

    The code currently looks like:

    Code: PHP  [Auswählen]
     <!-- input boxes desc, meta etc -->
              <div class="main" style="padding: 3px; line-height:20px;">
                 <b><?php echo $lng_image . '&nbsp;' . TEXT_PRODUCTS_DESCRIPTION; ?></b><br />
                 <?php echo xtc_draw_textarea_field('products_description_' . $languages[$i]['id'], 'soft', '103', '30', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : $products_desc_fields['products_description'])); ?>
              </div>
                            <!-- new text areas -->
                       <div class="main" style="padding: 3px; line-height:20px;">
                 <b><?php echo $lng_image . '&nbsp; Inhaltsstoffe:'; ?></b><br />
                            <?php echo xtc_draw_textarea_field('products_inhalt_' . $languages[$i]['id'], 'soft', '103', '30', (isset($products_inhalt[$languages[$i]['id']]) ? stripslashes($products_inhalt[$languages[$i]['id']]) : xtc_get_products_inhalt($pInfo->products_id, $languages[$i]['id']))); ?>
              </div>

    Can anyone offer any advice or direct me where I can add the names of the new textareas?

    Many thanks,

    Linkback: https://www.modified-shop.org/forum/index.php?topic=33993.0

    JobLot

    • Neu im Forum
    • Beiträge: 2
    • Geschlecht:
    Re: new textareas not know by CKEditor WYSIWYG
    Antwort #1 am: 01. Dezember 2015, 16:18:38
    In /admin/categories.php under:  // generate editor for products (line 368)

    Code: PHP  [Auswählen]
    // added 3 wysiwyg below
            echo xtc_wysiwyg('products_inhalt', $data['code'], $languages[$i]['id']);
            echo xtc_wysiwyg('products_fragen', $data['code'], $languages[$i]['id']);
            echo xtc_wysiwyg('products_einnahme', $data['code'], $languages[$i]['id']);
    0 Antworten
    1247 Aufrufe
    13. Juni 2016, 18:25:26 von webald
    2 Antworten
    2775 Aufrufe
    22. Februar 2010, 10:54:58 von Batman
    1 Antworten
    2460 Aufrufe
    14. Juni 2013, 11:23:45 von Simon
    6 Antworten
    4438 Aufrufe
    17. Dezember 2012, 16:20:39 von toadkopf