Arion Posted June 18, 2018 Share Posted June 18, 2018 Buenas, Tenía una duda. Estoy escribiendo contenido en las categorías en html. Pero no aparece a la hora de publicarlo. No se cual puede ser el motivo. Esta es la descripción: Posteriormente, en el navegador aparece sin el texto: https://www.inmovil.es/77-categoria-de-prueba Este es el código de category.tpl He encontrado en el foro aquí que la solución estaba en el idioma? pero no lo logre entender. {* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {include file="$tpl_dir./errors.tpl"} {if isset($category)} {if $category->id AND $category->active} {if $scenes || $category->id_image} <div class="content_scene_cat {if $scenes} content_scene_cat_scene{/if}"> {if $scenes} <div class="content_scene"> <!-- Scenes --> {include file="$tpl_dir./scenes.tpl" scenes=$scenes} </div> {else} <!-- Category image --> <div class="content_scene_cat_bg"> {if $category->id_image} <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}" alt="{$category->name|escape:'html':'UTF-8'}" class="img-responsive cat_img_bg"/>{/if} {if isset($warehouse_vars.desc_style) && $warehouse_vars.desc_style == 0 && $warehouse_vars.show_desc} {if $category->description} <div class="cat_desc"> {if Tools::strlen($category->description) > 350} <div id="category_description_short" class="rte">{$description_short}</div> {else} <div class="rte">{$category->description}</div> {/if} </div> {/if} {/if} </div> {/if} </div> {/if} <div class="page-heading{if (isset($subcategories) && !$products) || (isset($subcategories) && $products) || !isset($subcategories) && $products} product-listing{/if} clearfix"><h1 class="page-heading{if (isset($subcategories) && !$products) || (isset($subcategories) && $products) || !isset($subcategories) && $products} product-listing{/if}"><span class="cat-name">{$category->name|escape:'html':'UTF-8'}{if isset($categoryNameComplement)} {$categoryNameComplement|escape:'html':'UTF-8'}{/if}</span></h1>{include file="$tpl_dir./category-count.tpl"}</div> {if isset($warehouse_vars.desc_style) && $warehouse_vars.desc_style != 2} {if ((isset($warehouse_vars.desc_style) && $warehouse_vars.desc_style == 1 && $warehouse_vars.show_desc) && $category->description) || ($category->description && !$scenes && !$category->id_image && $warehouse_vars.show_desc)} {if $category->description} <div class="cat_desc cat_desc_container clearfix"> {if Tools::strlen($category->description) > 350} <div id="category_description_short" class="rte">{$description_short}</div> <div id="category_description_full" class="unvisible rte">{$category->description} <a onclick="$(this).parent().hide(); $(this).parent().prev().show(); $(this).parent().parent().find('.lnk_more').show(); return false;" href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="btn btn-default pull-right" c><i class="icon-minus"></i> {l s='Less'}</a> </div> <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more btn btn-default pull-right"><i class="icon-plus"></i> {l s='More'}</a> {else} <div class="rte">{$category->description}</div> {/if} </div> {/if} {/if} {/if} {if isset($warehouse_vars.show_subcategories) && $warehouse_vars.show_subcategories == 1} {if isset($subcategories)} <!-- Subcategories --> <div id="subcategories"> <ul class="row clearfix"> {foreach from=$subcategories item=subcategory} <li class="col-xs-{$warehouse_vars.subcats_grid_size_xs} col-sm-{$warehouse_vars.subcats_grid_size_sm} col-md-{$warehouse_vars.subcats_grid_size_md}"> <div class="subcategory-image"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="img-responsive replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="{$subcategory.name|escape:'html':'UTF-8'}" /> {else} <img class="img-responsive replace-2x" src="{$img_cat_dir}{$lang_iso}-default-category_thumbs.jpg" alt="{$subcategory.name|escape:'html':'UTF-8'}" /> {/if} </a> </div> <h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:35:'...'|escape:'html':'UTF-8'|truncate:350}</a></h5> </li> {/foreach} </ul> </div> {/if} {/if} {if $products} <div class="content_sortPagiBar clearfix"> <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./nbr-product-page.tpl"} {hook h='aboveProductList'} <div class="top-pagination-content clearfix"> {include file="$tpl_dir./pagination.tpl"} </div> </div> </div> {include file="./product-list.tpl" products=$products} <div class="content_sortPagiBar"> <div class="bottom-pagination-content clearfix"> {include file="./pagination.tpl" paginationId='bottom'} </div> </div> {/if} {if isset($warehouse_vars.desc_style) && $warehouse_vars.desc_style != 1} {if ((isset($warehouse_vars.desc_style) && $warehouse_vars.desc_style == 2 && $warehouse_vars.show_desc) && $category->description)} {if $category->description} <div class="cat_desc cat_desc_container clearfix"> {if Tools::strlen($category->description) > 350} <div id="category_description_short" class="rte">{$description_short}</div> <div id="category_description_full" class="unvisible rte">{$category->description} <a onclick="$(this).parent().hide(); $(this).parent().prev().show(); $(this).parent().parent().find('.lnk_more').show(); return false;" href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="btn btn-default pull-right" c><i class="icon-minus"></i> {l s='Less'}</a> </div> <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more btn btn-default pull-right"><i class="icon-plus"></i> {l s='More'}</a> {else} <div class="rte">{$category->description}</div> {/if} </div> {/if} {/if} {/if} {elseif $category->id} <p class="alert alert-warning">{l s='This category is currently unavailable.'}</p> {/if} {/if} Gracias y un saludo Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted June 18, 2018 Share Posted June 18, 2018 Acabo de entrar a tu tienda, y lo que te pega es un petardazo blanco en la sección de productos por categorías. Habilita debug => https://www.prestashop.com/forums/topic/232476-¿qué-hacer-cuando-se-queda-la-pantalla-en-blanco-en-prestashop/ y mira ver si te sale algun error. Link to comment Share on other sites More sharing options...
Arion Posted June 18, 2018 Author Share Posted June 18, 2018 22 minutes ago, Sergio Ruiz said: Acabo de entrar a tu tienda, y lo que te pega es un petardazo blanco en la sección de productos por categorías. Habilita debug => https://www.prestashop.com/forums/topic/232476-¿qué-hacer-cuando-se-queda-la-pantalla-en-blanco-en-prestashop/ y mira ver si te sale algun error. No entiendo como te pega petardazo, y donde. Ya leí el post que me pasaste, me puedes especificar un poco mas el "petardazo"? Donde lo viste? En referencia al problema planteado, que solucion hay? Gracias y un saludo Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now