Artículo de solución de problemas TR007 (copia)
{% comment %}
Solución de problemas / Ayuda – Diseño enriquecido + Tabla de contenido + Filas útiles + Preguntas frecuentes (6)
{% endcomment %}
{% if section.settings.show_breadcrumb %}
{% endif %}
{% schema %}
{
"nombre": "Solución de problemas",
"ajustes": [
{ "type": "text", "id": "title", "label": "Page Title" },
{ "type": "textarea", "id": "intro", "label": "Introducción" },
{ "type": "checkbox", "id": "show_breadcrumb", "label": "Mostrar ruta de navegación", "default": true },
{ "type": "text", "id": "home_label", "label": "Ruta de navegación: Inicio", "default": "Inicio" },
{ "type": "text", "id": "breadcrumb_label", "label": "Breadcrumb middle", "default": "Support" },
{ "type": "color", "id": "accent", "label": "Color de acento", "default": "#d61b1b" },
{ "type": "range", "id": "title_size", "min": 22, "max": 48, "step": 1, "unit": "px", "label": "Tamaño de fuente del título", "default": 34 },
{ "type": "range", "id": "body_size", "min": 14, "max": 20, "step": 1, "unit": "px", "label": "Tamaño de fuente del cuerpo", "default": 16 },
{ "type": "range", "id": "wrap_width", "min": 900, "max": 1400, "step": 10, "unit": "px", "label": "Ancho máximo del contenido", "default": 1200 },
{ "type": "range", "id": "block_gap", "min": 8, "max": 28, "step": 1, "unit": "px", "label": "Espaciado entre bloques", "default": 16 },
{ "type": "select", "id": "toc_side", "label": "posición del índice", "default": "right", "options": [
{ "value": "right", "label": "Right" }, { "value": "left", "label": "Left" }
]},
{ "type": "text", "id": "toc_title", "label": "Título del índice", "default": "En esta página" },
{ "type": "text", "id": "video_heading", "label": "Título del vídeo", "default": "Instalar vídeo" },
{ "type": "url", "id": "video_url", "label": "URL de YouTube/Vimeo" },
{ "type": "url", "id": "mp4_url", "label": "URL de MP4 (Archivos de Shopify)" },
{ "type": "image_picker", "id": "poster", "label": "Póster de vídeo (para MP4)" },
{ "type": "text", "id": "manual_heading", "label": "Título del manual", "default": "Descargar manual (PDF)" },
{ "type": "url", "id": "manual_url", "label": "URL del PDF del manual" },
{ "type": "textarea", "id": "manual_note", "label": "Nota manual (opcional)" },
{ "type": "text", "id": "manual_btn_text", "label": "Texto del botón Manual", "default": "Descargar manual en PDF" },
{ "type": "checkbox", "id": "show_contact", "label": "Mostrar tarjeta de contacto", "default": true },
{ "type": "text", "id": "contact_heading", "label": "Título del contacto", "default": "Contáctanos" },
{ "type": "text", "id": "label_email", "label": "Etiqueta: Correo electrónico", "default": "Correo electrónico:" },
{ "type": "text", "id": "label_phone", "label": "Etiqueta: Teléfono", "default": "Teléfono:" },
{ "type": "text", "id": "label_hours", "label": "Etiqueta: Horas", "default": "Horas:" },
{ "type": "text", "id": "email", "label": "Correo electrónico", "default": "support@example.com" },
{ "tipo": "texto", "id": "teléfono", "etiqueta": "Teléfono" },
{ "type": "text", "id": "hours", "label": "Hours" },
{ "type": "checkbox", "id": "enable_helpful", "label": "Habilitar widget útil", "default": true },
{ "type": "text", "id": "helpful_title", "label": "Título útil", "default": "¿Te ha resultado útil este artículo?" },
{ "type": "text", "id": "helpful_yes", "label": "Útil: Sí", "default": "Sí" },
{ "type": "text", "id": "helpful_no", "label": "Útil: No", "default": "No" },
{ "type": "text", "id": "helpful_thanks", "label": "Útil: Gracias", "default": "¡Gracias por sus comentarios!" }
],
"bloques": [
{
"tipo": "encabezado",
"nombre": "Sección H2",
"ajustes": [
{ "type": "text", "id": "title", "label": "Title" },
{ "type": "richtext", "id": "text", "label": "Descripción opcional" }
]
},
{
"tipo": "preguntas frecuentes",
"nombre": "Preguntas frecuentes sencillas",
"ajustes": [
{ "type": "text", "id": "question", "label": "Pregunta" },
{ "type": "richtext", "id": "answer", "label": "Answer" }
]
},
{
"tipo": "filas_faq",
"nombre": "Preguntas frecuentes (6)",
"ajustes": [
{ "type": "text", "id": "question", "label": "Pregunta" },
{ "type": "range", "id": "text_size", "min": 14, "max": 22, "step": 1, "unit": "px", "label": "Tamaño del texto", "default": 16 },
{ "type": "select", "id": "line_height", "label": "Altura de línea", "default": "1.6", "options": [
{ "value": "1.4", "label": "1.4" }, { "value": "1.6", "label": "1.6" }, { "value": "1.8", "label": "1.8" }, { "value": "2.0", "label": "2.0" }
]},
{ "type": "range", "id": "paragraph_gap", "min": 4, "max": 24, "step": 1, "unit": "px", "label": "Espacio entre párrafos", "default": 10 },
{ "type": "range", "id": "image_width", "min": 40, "max": 100, "step": 5, "unit": "%", "label": "Ancho del medio", "default": 100 },
{ "type": "select", "id": "align", "label": "Media alignment", "default": "left", "options": [
{ "value": "left", "label": "Izquierda" }, { "value": "center", "label": "Centro" }
]},
{ "type": "select", "id": "row1_type", "label": "Tipo de fila 1", "default": "paragraph",
"opciones":[{"valorpárrafo","etiquetaPárrafo"},{"valorimagen","etiquetaImagen"},{"valoryoutube","etiquetaYouTube/Vimeo"},{"valormp4","etiquetaMP4"}] },
{ "type": "richtext", "id": "row1_text", "label": "Texto de la fila 1" },
{ "type": "image_picker", "id": "row1_image", "label": "Imagen de la fila 1" },
{ "type": "text", "id": "row1_youtube", "label": "URL de YouTube/Vimeo de la fila 1" },
{ "type": "url", "id": "row1_mp4", "label": "URL MP4 de la fila 1" },
{ "type": "image_picker", "id": "row1_poster", "label": "Póster MP4 de la fila 1" },
{ "type": "select", "id": "row2_type", "label": "Tipo de fila 2", "default": "paragraph",
"opciones":[{"valorpárrafo","etiquetaPárrafo"},{"valorimagen","etiquetaImagen"},{"valoryoutube","etiquetaYouTube/Vimeo"},{"valormp4","etiquetaMP4"}] },
{ "type": "richtext", "id": "row2_text", "label": "Texto de la fila 2" },
{ "type": "image_picker", "id": "row2_image", "label": "Imagen de la fila 2" },
{ "type": "text", "id": "row2_youtube", "label": "URL de YouTube/Vimeo de la fila 2" },
{ "type": "url", "id": "row2_mp4", "label": "URL MP4 de la fila 2" },
{ "type": "image_picker", "id": "row2_poster", "label": "Póster MP4 de la fila 2" },
{ "type": "select", "id": "row3_type", "label": "Tipo de fila 3", "default": "paragraph",
"opciones":[{"valorpárrafo","etiquetaPárrafo"},{"valorimagen","etiquetaImagen"},{"valoryoutube","etiquetaYouTube/Vimeo"},{"valormp4","etiquetaMP4"}] },
{ "type": "richtext", "id": "row3_text", "label": "Texto de la fila 3" },
{ "type": "image_picker", "id": "row3_image", "label": "Imagen de la fila 3" },
{ "type": "text", "id": "row3_youtube", "label": "URL de YouTube/Vimeo de la fila 3" },
{ "type": "url", "id": "row3_mp4", "label": "URL MP4 de la fila 3" },
{ "type": "image_picker", "id": "row3_poster", "label": "Póster MP4 de la fila 3" },
{ "type": "select", "id": "row4_type", "label": "Tipo de fila 4", "default": "paragraph",
"opciones":[{"valorpárrafo","etiquetaPárrafo"},{"valorimagen","etiquetaImagen"},{"valoryoutube","etiquetaYouTube/Vimeo"},{"valormp4","etiquetaMP4"}] },
{ "type": "richtext", "id": "row4_text", "label": "Texto de la fila 4" },
{ "type": "image_picker", "id": "row4_image", "label": "Imagen de la fila 4" },
{ "type": "text", "id": "row4_youtube", "label": "URL de YouTube/Vimeo de la fila 4" },
{ "type": "url", "id": "row4_mp4", "label": "URL MP4 de la fila 4" },
{ "type": "image_picker", "id": "row4_poster", "label": "Póster MP4 de la fila 4" },
{ "type": "select", "id": "row5_type", "label": "Tipo de fila 5", "default": "paragraph",
"opciones":[{"valorpárrafo","etiquetaPárrafo"},{"valorimagen","etiquetaImagen"},{"valoryoutube","etiquetaYouTube/Vimeo"},{"valormp4","etiquetaMP4"}] },
{ "type": "richtext", "id": "row5_text", "label": "Texto de la fila 5" },
{ "type": "image_picker", "id": "row5_image", "label": "Imagen de la fila 5" },
{ "type": "text", "id": "row5_youtube", "label": "URL de YouTube/Vimeo de la fila 5" },
{ "type": "url", "id": "row5_mp4", "label": "URL MP4 de la fila 5" },
{ "type": "image_picker", "id": "row5_poster", "label": "Póster MP4 de la fila 5" },
{ "type": "select", "id": "row6_type", "label": "Tipo de fila 6", "default": "paragraph",
"opciones":[{"valorpárrafo","etiquetaPárrafo"},{"valorimagen","etiquetaImagen"},{"valoryoutube","etiquetaYouTube/Vimeo"},{"valormp4","etiquetaMP4"}] },
{ "type": "richtext", "id": "row6_text", "label": "Texto de la fila 6" },
{ "type": "image_picker", "id": "row6_image", "label": "Imagen de la fila 6" },
{ "type": "text", "id": "row6_youtube", "label": "URL de YouTube/Vimeo de la fila 6" },
{ "type": "url", "id": "row6_mp4", "label": "URL MP4 de la fila 6" },
{ "type": "image_picker", "id": "row6_poster", "label": "Póster MP4 de la fila 6" }
]
},
{
"tipo": "tarjeta de enlace",
"nombre": "Tarjeta de enlace",
"ajustes": [
{ "type": "text", "id": "title", "label": "Title" },
{ "type": "textarea", "id": "text", "label": "Description" },
{ "type": "text", "id": "link_btn", "label": "Texto del botón" },
{ "type": "url", "id": "link", "label": "URL" }
]
},
{
"tipo": "html",
"nombre": "HTML personalizado",
"ajustes": [
{ "type": "text", "id": "title", "label": "Título opcional" },
{ "type": "richtext", "id": "custom_html", "label": "Contenido" }
]
}
],
"max_blocks": 50
}
{% endschema %}
{{ section.settings.title | default: page.title }}
{% if section.settings.intro != blank %}{{ section.settings.intro }}
{% endif %}
{% if section.settings.video_url != blank or section.settings.mp4_url != blank %}
{% endif %}
{% if section.settings.manual_url != blank %}
{% endif %}
{% for block in section.blocks %}
{% case block.type %}
{% when 'heading' %}
{% endif %}
{% when 'faq' %}
{% when 'faq_rows' %}
{% when 'link_card' %}
{% when 'html' %}
{% endif %}
{% if section.settings.enable_helpful %}
{% endif %}
{{ section.settings.video_heading | default: 'Install Video' }}
{% if section.settings.video_url != blank %}
{% else %}
{% endif %}
{{ section.settings.manual_heading | default: 'Download Manual (PDF)' }}
{% if section.settings.manual_note != blank %}{{ section.settings.manual_note }}
{% endif %}{{ section.settings.manual_btn_text | default: 'Download PDF Manual' }}
{{ block.settings.title }}
{% if block.settings.text != blank %}{{ block.settings.text }}
{{ block.settings.question }}
{{ block.settings.answer }}
{{ block.settings.question }}
{% for i in (1..6) %}
{% assign key_type = 'row' | append: i | append: '_type' %}
{% assign row_type = block.settings[key_type] %}
{% if row_type == 'paragraph' %}
{% assign key_txt = 'row' | append: i | append: '_text' %}
{% if block.settings[key_txt] != blank %} {{ block.settings[key_txt] }} {% endif %}
{% elsif row_type == 'image' %}
{% assign key_img = 'row' | append: i | append: '_image' %}
{% if block.settings[key_img] != blank %}
{% endif %}
{% elsif row_type == 'mp4' %}
{% assign key_mp4 = 'row' | append: i | append: '_mp4' %}
{% assign key_pst = 'row' | append: i | append: '_poster' %}
{% if block.settings[key_mp4] != blank %}
{% endif %}
{% endif %}
{% endfor %}
{{ block.settings.title }}
{% if block.settings.text != blank %}{{ block.settings.text }}
{% endif %} {% if block.settings.link != blank %} {% endif %}
{% if block.settings.title != blank %}
{% endcase %}
{% endfor %}
{% if section.settings.show_contact %}
{{ block.settings.title }}
{% endif %}{{ block.settings.custom_html }}
{{ section.settings.contact_heading | default: 'Contact Us' }}
{{ section.settings.label_email | default: 'Email:' }} {{ section.settings.email | default: 'support@example.com' }}
{% if section.settings.phone != blank %}{{ section.settings.label_phone | default: 'Phone:' }} {{ section.settings.phone }}
{% endif %} {% if section.settings.hours != blank %}{{ section.settings.label_hours | default: 'Hours:' }} {{ section.settings.hours }}
{% endif %}