Component - AquilaCMS/aquila-connector GitHub Wiki

/src/api/component/index.js

Functions

Get the current breadcrumb

getComponent(tag, nsCode, lang)
  • tag - string : tag => ns-[gallery|slider]
  • nsCode - string : component's code
  • lang - string? : current language ("fr" is the default value) - Optionnal
Example
import { getComponent } from 'aquila-connector/api/component';
const currentComponent = await getComponent('ns-gallery', 'code_gallery', 'fr');

Avaiable tag name list

  • ns-accordion
  • ns-block-slider
  • ns-blog-articles
  • ns-contact
  • ns-gallery
  • ns-newsletter
  • ns-product-card
  • ns-product-card-list
  • ns-slider
⚠️ **GitHub.com Fallback** ⚠️