Jump to content

Configuration fichier .yml thème enfant.


Recommended Posts

Bonjour à tous,

Dans le fichier .yml (d'origine) il y a ces lignes:

Quote

dependencies:
  modules:
    - appagebuilder
    - leobootstrapmenu
    - leoslideshow
    - leoblog
    - leofeature
    - blockgrouptop
    - leoquicklogin
    - apbooking
global_settings:
  configuration:
    PS_IMAGE_QUALITY: png
  modules:
   to_disable:
     - ps_contactinfo
     - ps_mainmenu
     - ps_imageslider
     - ps_featuredproducts
     - ps_banner
     - ps_customtext
     - ps_linklist
     - productcomments
     - blockwishlist
  hooks:
    modules_to_hook:
      displayNav1:
        - appagebuilder
      displayNav2:
        - appagebuilder
      displayTop:
        - appagebuilder
      displayHome: 
        - leoblog
      displayFooterBefore:
        - appagebuilder
      displayFooter:
        - appagebuilder
      displayLeftColumn:
        - ps_categorytree
        - ps_facetedsearch
      displaySearch:
        - ps_searchbar
      displayProductAdditionalInfo:
        - ps_sharebuttons
      displayOrderConfirmation2:
        - ps_featuredproducts
      displayCrossSellingShoppingCart:
        - ps_featuredproducts
      displayFooterProduct:
      actionAdminBefore:
        - appagebuilder
        - leobootstrapmenu
        - leoslideshow
        - leoblog
        - leofeature
        - blockgrouptop
        - leoquicklogin
        - apbooking
  image_types:
    cart_default:
      width: 125
      height: 101
      scope: [products]
    small_default:
      width: 98
      height: 97
      scope: [products, categories, manufacturers, suppliers]
    medium_default:
      width: 150
      height: 121
      scope: [products, manufacturers, suppliers]
    home_default:
      width: 555
      height: 450
      scope: [products]
    large_default:
      width: 1110
      height: 900
      scope: [products, manufacturers, suppliers]
    category_default:
      width: 1170
      height: 320
      scope: [categories]
    stores_default:
      width: 170
      height: 115
      scope: [stores]
    manu_default:
      width: 170
      height: 80
      scope: [manufacturers]
  new_password_policy_feature: true

theme_settings:
  default_layout: layout-full-width
  layouts:
    category: layout-full-width
    product: layout-right-column
    best-sales: layout-left-column
    new-products: layout-left-column
    prices-drop: layout-left-column
    contact: layout-left-column
    manufacturer: layout-left-column
    supplier: layout-left-column
    module-leoblog-blog: layout-left-column
    module-leoblog-category: layout-left-column
    module-leoblog-list: layout-left-column

Quote

meta:
  compatibility:
      from: 1.7.5.0
      to: ~

  available_layouts:
    layout-full-width:
      name: Full Width
      description: No side columns, ideal for distraction-free pages such as product pages.
    layout-both-columns:
      name: Three Columns
      description: One large central column and 2 side columns.
    layout-left-column:
      name: Two Columns, small left column
      description: Two columns with a small left column
    layout-right-column:
      name: Two Columns, small right column
      description: Two columns with a small right column

Quote

assets:
  # If you're using this theme as child and you want to load
  # the parent theme assets, uncomment this line.
#  use_parent_assets: true

  # The following lines are showing how to load assets in your page
  # Uncomment and change value to start loading css or js files
#  css:
#    all:
#      - id: custom-lib-style
#        path: assets/css/custom-lib.css
#    product:
#      - id: product-style
#        path: assets/css/product.css
#        media: all
#        priority: 200
#  js:
#    cart:
#      - id: cat-extra-lib
#        path: assets/js/cart-lib.js

Je dois les rajouter à mon fichier .yml du thème enfant ?

Quote

parent: ap_booking
name: child_ap_booking
display_name: Child theme of ap_booking's theme
version: 1.0.0
assets:
  use_parent_assets: true

Merci pour vos réponses et explications.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...