diff --git a/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/core.entity_form_display.node.ley_de_presupuesto_relacionada.default.yml b/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/core.entity_form_display.node.ley_de_presupuesto_relacionada.default.yml index 084e730f034a4544df8d37e9c633e68ccf45e398..aca3417d9a828ed82d182de92c1a2b5b4ee7e843 100644 --- a/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/core.entity_form_display.node.ley_de_presupuesto_relacionada.default.yml +++ b/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/core.entity_form_display.node.ley_de_presupuesto_relacionada.default.yml @@ -10,6 +10,7 @@ dependencies: - field.field.node.ley_de_presupuesto_relacionada.field_descripcion_corta - field.field.node.ley_de_presupuesto_relacionada.field_file - field.field.node.ley_de_presupuesto_relacionada.field_subtitle + - field.field.node.ley_de_presupuesto_relacionada.field_weight - node.type.ley_de_presupuesto_relacionada module: - field_group @@ -92,6 +93,13 @@ content: size: 60 placeholder: '' third_party_settings: { } + field_weight: + type: number + weight: 16 + region: content + settings: + placeholder: '' + third_party_settings: { } langcode: type: language_select weight: 1 diff --git a/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/core.entity_view_display.node.ley_de_presupuesto_relacionada.default.yml b/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/core.entity_view_display.node.ley_de_presupuesto_relacionada.default.yml index 11fab7db85758e30dd81097e550fa18e881a353c..c035592855c4746996ee1bfcb1159e92a21b23f3 100644 --- a/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/core.entity_view_display.node.ley_de_presupuesto_relacionada.default.yml +++ b/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/core.entity_view_display.node.ley_de_presupuesto_relacionada.default.yml @@ -10,6 +10,7 @@ dependencies: - field.field.node.ley_de_presupuesto_relacionada.field_descripcion_corta - field.field.node.ley_de_presupuesto_relacionada.field_file - field.field.node.ley_de_presupuesto_relacionada.field_subtitle + - field.field.node.ley_de_presupuesto_relacionada.field_weight - node.type.ley_de_presupuesto_relacionada module: - file @@ -25,7 +26,7 @@ content: settings: link: true third_party_settings: { } - weight: 3 + weight: 1 region: content field_categoria_especifica: type: entity_reference_label @@ -33,7 +34,7 @@ content: settings: link: true third_party_settings: { } - weight: 106 + weight: 6 region: content field_categoria_general: type: entity_reference_label @@ -41,7 +42,7 @@ content: settings: link: true third_party_settings: { } - weight: 102 + weight: 3 region: content field_categoria_secundaria: type: entity_reference_label @@ -49,14 +50,14 @@ content: settings: link: true third_party_settings: { } - weight: 107 + weight: 7 region: content field_descripcion_corta: type: basic_string label: hidden settings: { } third_party_settings: { } - weight: 103 + weight: 4 region: content field_file: type: file_default @@ -64,7 +65,7 @@ content: settings: use_description_as_link_text: true third_party_settings: { } - weight: 105 + weight: 5 region: content field_subtitle: type: string @@ -72,13 +73,14 @@ content: settings: link_to_entity: false third_party_settings: { } - weight: 1 + weight: 0 region: content links: settings: { } third_party_settings: { } - weight: 100 + weight: 2 region: content hidden: + field_weight: true langcode: true search_api_excerpt: true diff --git a/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/core.entity_view_display.node.ley_de_presupuesto_relacionada.teaser.yml b/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/core.entity_view_display.node.ley_de_presupuesto_relacionada.teaser.yml index a109b12c66a54a8012834eb90cd1675c3ad029ed..b45b614fad3da58357036e36ac784d3845d7a8ec 100644 --- a/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/core.entity_view_display.node.ley_de_presupuesto_relacionada.teaser.yml +++ b/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/core.entity_view_display.node.ley_de_presupuesto_relacionada.teaser.yml @@ -11,6 +11,7 @@ dependencies: - field.field.node.ley_de_presupuesto_relacionada.field_descripcion_corta - field.field.node.ley_de_presupuesto_relacionada.field_file - field.field.node.ley_de_presupuesto_relacionada.field_subtitle + - field.field.node.ley_de_presupuesto_relacionada.field_weight - node.type.ley_de_presupuesto_relacionada module: - user @@ -32,5 +33,6 @@ hidden: field_descripcion_corta: true field_file: true field_subtitle: true + field_weight: true langcode: true search_api_excerpt: true diff --git a/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/field.field.node.ley_de_presupuesto_relacionada.field_weight.yml b/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/field.field.node.ley_de_presupuesto_relacionada.field_weight.yml new file mode 100644 index 0000000000000000000000000000000000000000..9be3a52744f9b06c1b10b00ad6a4ca7dbf7b0348 --- /dev/null +++ b/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/field.field.node.ley_de_presupuesto_relacionada.field_weight.yml @@ -0,0 +1,23 @@ +uuid: a1bdb031-0246-4d35-a10c-d7cc0a710138 +langcode: es +status: true +dependencies: + config: + - field.storage.node.field_weight + - node.type.ley_de_presupuesto_relacionada +id: node.ley_de_presupuesto_relacionada.field_weight +field_name: field_weight +entity_type: node +bundle: ley_de_presupuesto_relacionada +label: Peso +description: 'Este campo ayudará a ordenar los archivos, por ejemplo, si el contenido tiene titulo 23.25 o 11.2, agregar el valor 25 y 2 como peso respectivamente.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + min: null + max: null + prefix: '' + suffix: '' +field_type: integer diff --git a/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/views.view.ley_de_presupuesto.yml b/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/views.view.ley_de_presupuesto.yml index 44e1328e1db9c2fcb5653a9f3039ed65d7bffc88..b9fd82e6f79091801445d3cb9315136202c7fece 100644 --- a/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/views.view.ley_de_presupuesto.yml +++ b/web/profiles/contrib/isa/modules/custom/mef_ley_presupuesto_relacionada/config/install/views.view.ley_de_presupuesto.yml @@ -28,7 +28,7 @@ dependencies: - taxonomy - user _core: - default_config_hash: eM5toIW8u93KNb-R_iYpDmit-FXrOaca2RxNQuUinDU + default_config_hash: MtYS9nQBkeI4dswqRtzfLBHJ5LIIoiMQfG8aajTGY4Q id: ley_de_presupuesto label: 'Ley de presupuesto' module: views @@ -479,8 +479,8 @@ display: type: basic options: submit_button: 'Aplicar filtro' - reset_button: false - reset_button_label: Restablecer + reset_button: true + reset_button_label: 'Limpiar filtro' exposed_sorts_label: 'Ordenar por' expose_sort_order: true sort_asc_label: Asc @@ -1897,10 +1897,10 @@ display: label: '' field_identifier: '' exposed: false - field_subtitle_value: - id: field_subtitle_value - table: node__field_subtitle - field: field_subtitle_value + field_weight_value: + id: field_weight_value + table: node__field_weight + field: field_weight_value relationship: none group_type: group admin_label: '' @@ -1910,6 +1910,22 @@ display: label: '' field_identifier: '' exposed: false + created: + id: created + table: node_field_data + field: created + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: created + plugin_id: date + order: ASC + expose: + label: '' + field_identifier: '' + exposed: false + granularity: second arguments: field_categoria_anio_target_id: id: field_categoria_anio_target_id diff --git a/web/profiles/contrib/isa/themes/mef/templates/fields/field--paragraph--multiple-images--field-images--carrusel.html.twig b/web/profiles/contrib/isa/themes/mef/templates/fields/field--paragraph--multiple-images--field-images--carrusel.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..b37ab0eb4f7889670f89bdf39dcde524e4a66c24 --- /dev/null +++ b/web/profiles/contrib/isa/themes/mef/templates/fields/field--paragraph--multiple-images--field-images--carrusel.html.twig @@ -0,0 +1,10 @@ + +{% for item in items %} + {% set title = item.content['#item'].value.title %} + <div class="item__foto"> + {{ item.content }} + <div class="item__caption"> + <span class="img-caption"> {{title}} </span> + </div> + </div> +{% endfor %} diff --git a/web/profiles/contrib/isa/themes/mef/templates/fields/field--paragraph--multiple-images--field-images--default.html.twig b/web/profiles/contrib/isa/themes/mef/templates/fields/field--paragraph--multiple-images--field-images--default.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..b37ab0eb4f7889670f89bdf39dcde524e4a66c24 --- /dev/null +++ b/web/profiles/contrib/isa/themes/mef/templates/fields/field--paragraph--multiple-images--field-images--default.html.twig @@ -0,0 +1,10 @@ + +{% for item in items %} + {% set title = item.content['#item'].value.title %} + <div class="item__foto"> + {{ item.content }} + <div class="item__caption"> + <span class="img-caption"> {{title}} </span> + </div> + </div> +{% endfor %} diff --git a/web/profiles/contrib/isa/themes/mef/templates/paragraph/paragraph--multiple-images--carrusel.html.twig b/web/profiles/contrib/isa/themes/mef/templates/paragraph/paragraph--multiple-images--carrusel.html.twig index 2d3e05d9d5cb1028806e917819f9f5583f1da0a7..49f2f795cbc0e6e20b2e6e6f63dcc82e0c0ace12 100644 --- a/web/profiles/contrib/isa/themes/mef/templates/paragraph/paragraph--multiple-images--carrusel.html.twig +++ b/web/profiles/contrib/isa/themes/mef/templates/paragraph/paragraph--multiple-images--carrusel.html.twig @@ -39,14 +39,6 @@ */ #} -{% set images = content.field_images|field_value %} +{{content}} -{% for image in images %} - <div class="item__foto"> - {{image}} - <div class="item__caption"> - <span class="img-caption"> {{image['#item'].value.title}} </span> - </div> - </div> -{% endfor %} diff --git a/web/profiles/contrib/isa/themes/mef/templates/paragraph/paragraph--multiple-images--default.html.twig b/web/profiles/contrib/isa/themes/mef/templates/paragraph/paragraph--multiple-images--default.html.twig index 2d3e05d9d5cb1028806e917819f9f5583f1da0a7..0bfcd7dbf5d0078866c10ac47f9bbca6fb8f2a33 100644 --- a/web/profiles/contrib/isa/themes/mef/templates/paragraph/paragraph--multiple-images--default.html.twig +++ b/web/profiles/contrib/isa/themes/mef/templates/paragraph/paragraph--multiple-images--default.html.twig @@ -39,14 +39,5 @@ */ #} -{% set images = content.field_images|field_value %} - -{% for image in images %} - <div class="item__foto"> - {{image}} - <div class="item__caption"> - <span class="img-caption"> {{image['#item'].value.title}} </span> - </div> - </div> -{% endfor %} +{{content}} diff --git a/web/profiles/contrib/isa/themes/mef/templates/views/discursos/pager--discursos--page-1.html.twig b/web/profiles/contrib/isa/themes/mef/templates/views/discursos/pager--discursos--page-1.html.twig index 86801d73ca775d49d42f6c770e9601e256fbb2c1..d9a5cdeae0f0cf3ee9759cfd03565f47fb762833 100644 --- a/web/profiles/contrib/isa/themes/mef/templates/views/discursos/pager--discursos--page-1.html.twig +++ b/web/profiles/contrib/isa/themes/mef/templates/views/discursos/pager--discursos--page-1.html.twig @@ -37,7 +37,7 @@ <div class="page-container"> <div class="pagination"> {% set cantPage = finish - start + 1 %} - <div class="pagination__text"> {{ 'Mostrando @cantPage de @total resultados'|t({'@cantPage':cantPage,'@total':total_items}) }} </div> + <div class="pagination__text"> {{ 'Showing from @start to @finish of @total results'|t({'@cantPage':cantPage,'@total':total_items}) }} </div> <ul class="pager__items js-pager__items"> diff --git a/web/profiles/contrib/isa/themes/mef/templates/views/noticias-lista/pager--noticias--page-1.html.twig b/web/profiles/contrib/isa/themes/mef/templates/views/noticias-lista/pager--noticias--page-1.html.twig index 86801d73ca775d49d42f6c770e9601e256fbb2c1..299fdb730f40d280fff6de65545755e072c8755c 100644 --- a/web/profiles/contrib/isa/themes/mef/templates/views/noticias-lista/pager--noticias--page-1.html.twig +++ b/web/profiles/contrib/isa/themes/mef/templates/views/noticias-lista/pager--noticias--page-1.html.twig @@ -37,7 +37,7 @@ <div class="page-container"> <div class="pagination"> {% set cantPage = finish - start + 1 %} - <div class="pagination__text"> {{ 'Mostrando @cantPage de @total resultados'|t({'@cantPage':cantPage,'@total':total_items}) }} </div> + <div class="pagination__text"> {{ 'Showing from @start to @finish of @total results'|t({'@start':start,'@finish': finish,'@total':total_items}) }} </div> <ul class="pager__items js-pager__items"> diff --git a/web/profiles/contrib/isa/themes/mef/templates/views/presentaciones/pager--presentaciones--page-1.html.twig b/web/profiles/contrib/isa/themes/mef/templates/views/presentaciones/pager--presentaciones--page-1.html.twig index 86801d73ca775d49d42f6c770e9601e256fbb2c1..d9a5cdeae0f0cf3ee9759cfd03565f47fb762833 100644 --- a/web/profiles/contrib/isa/themes/mef/templates/views/presentaciones/pager--presentaciones--page-1.html.twig +++ b/web/profiles/contrib/isa/themes/mef/templates/views/presentaciones/pager--presentaciones--page-1.html.twig @@ -37,7 +37,7 @@ <div class="page-container"> <div class="pagination"> {% set cantPage = finish - start + 1 %} - <div class="pagination__text"> {{ 'Mostrando @cantPage de @total resultados'|t({'@cantPage':cantPage,'@total':total_items}) }} </div> + <div class="pagination__text"> {{ 'Showing from @start to @finish of @total results'|t({'@cantPage':cantPage,'@total':total_items}) }} </div> <ul class="pager__items js-pager__items"> diff --git a/web/profiles/contrib/isa/themes/mef/templates/views/publicaciones/pager--publicaciones--page-1.html.twig b/web/profiles/contrib/isa/themes/mef/templates/views/publicaciones/pager--publicaciones--page-1.html.twig index 86801d73ca775d49d42f6c770e9601e256fbb2c1..299fdb730f40d280fff6de65545755e072c8755c 100644 --- a/web/profiles/contrib/isa/themes/mef/templates/views/publicaciones/pager--publicaciones--page-1.html.twig +++ b/web/profiles/contrib/isa/themes/mef/templates/views/publicaciones/pager--publicaciones--page-1.html.twig @@ -37,7 +37,7 @@ <div class="page-container"> <div class="pagination"> {% set cantPage = finish - start + 1 %} - <div class="pagination__text"> {{ 'Mostrando @cantPage de @total resultados'|t({'@cantPage':cantPage,'@total':total_items}) }} </div> + <div class="pagination__text"> {{ 'Showing from @start to @finish of @total results'|t({'@start':start,'@finish': finish,'@total':total_items}) }} </div> <ul class="pager__items js-pager__items"> diff --git a/web/profiles/contrib/isa/updates/updates.php b/web/profiles/contrib/isa/updates/updates.php index 8bd328640ef5444ab63d48e8554e1fb6c5e7c31a..5c784607d14a446b23223d2c8b70ce7ea669ac31 100644 --- a/web/profiles/contrib/isa/updates/updates.php +++ b/web/profiles/contrib/isa/updates/updates.php @@ -414,4 +414,10 @@ function isa_update_9300(&$sandbox) { _isa_import_config([ 'isa_core', 'isa_field_storage', 'mef_tabla_de_datos' ]); -} \ No newline at end of file +} + +function isa_update_9301(&$sandbox) { + _isa_import_config([ + 'mef_ley_presupuesto_relacionada', + ]); +}