Created on 10 August 2023, 11 months ago
Updated 16 August 2023, 11 months ago

Hi,

I need to have this module working for a drupal 10 website, so I have update it in a simple way:

Here you have the link that could be prepared for example in a node.html.tiwg

<a
    class="jquery_ajax_load"
    href="/node/{{ node.field_articles_related.0.entity.id }}"
    entityLabel="{{ node.field_articles_related.0.entity.label }}"
    postDate="'{{ node.field_articles_related.0.entity.created.value | format_date('c') }}"
    joinTags="{{ node.field_articles_related.0.entity.field_tags.entity.label|safe_join(', ')  }}"
    joinCategories="{{ node.field_articles_related.0.entity.field_rubrique.entity.label|safe_join(', ')  }}"
    biographieAuteur="{{ node.field_articles_related.0.entity.field_biographie_autheur.value }}"
    auteur="{{ node.field_articles_related.0.entity.field_autheur.value }}"
    entityBundle="{{ node.field_articles_related.0.entity.type.entity.label  }}"
    pageurl="{{ path('entity.node.canonical', {'node': node.field_articles_related.0.entity.id}) }}"
    pagetitle="{{ node.field_articles_related.0.entity.label }}">&nbsp;</a>
    
    <article id="jquery_ajax_load_target">&nbsp;</article>

and then you have to enable the module, and it will load this link in ajax.

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland sir_squall

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @sir_squall
  • πŸ‡΅πŸ‡ͺPeru hatuhay Lima

    Wowww,
    I have not worked with this module for a long time.
    Let me take a look on the weekend and come back to you

  • πŸ‡¨πŸ‡­Switzerland sir_squall

    I just figured out that I forgot the "ajax_load_node.links.menu.yml" :

    ajax_load_node.settings:
      title: 'Ajax load Settings'  
      route_name: ajax_load_node.settings  
      description: 'Ajax load settings'  
      parent: system.admin_config_system  
      weight: 99
    
Production build 0.69.0 2024