Flextype v0.9.8 Release Notes

Release Date: 2020-05-14 // almost 4 years ago
  • ๐Ÿ”‹ Features

    core: New lightweight and powerful core for kickass Applications!

    core: New Content Management API (CMA) for Entries. #421

    The Content Management API (CMA), is a read-write API for managing content.

    You could use the CMA for several use cases, such as:

    • Automatic imports from WordPress, Joomla, Drupal, and more.
    • Integration with other backend systems, such as an e-commerce shop.
    • Building custom editing experiences.

    Endpoints for Content Management API:

    Method Endpoint Description
    GET /api/management/entries Fetch entry(entries)
    POST /api/management/entries Create entry
    โšก๏ธ PATCH /api/management/entries
    PUT /api/management/entries Rename entry
    PUT /api/management/entries/copy Copy entry(entries)
    DELETE /api/management/entries Delete entry

    API Tokens folder: /project/tokens/management/entries

    core: New Images API.

    Method Endpoint Description
    GET /api/images Fetch image

    API Tokens folder: /project/tokens/images

    core: New Access API to create secret tokens for Content Management API (CMA).

    API Tokens folder: /project/tokens/access

    core: add Container for extending Flextype Container instead of Controller(s)

    core: add Application URL url into the common Flextype settings #405

    core: add new improved plugins sorting in the Plugins API.

    core: add dependencies validation for Plugins API #411

    core: add configurable CORS (Cross-origin resource sharing).

    cors:
      enabled: true
      origin: "*"
      headers: ["X-Requested-With", "Content-Type", "Accept", "Origin", "Authorization"]
      methods: [GET, POST, PUT, DELETE, PATCH, OPTIONS]
      expose: []
      credentials: false
    

    core: add manifest file /src/flextype/config/flextype.yaml for Flextype.

    core: add Serializer for data encoding/decoding and Parser for data parsing #424

    ๐Ÿ› Bug Fixes

    • core: fix incorrect data merging of manifest and settings for plugins and themes #404

    ๐Ÿ’ฅ BREAKING CHANGES

    core: core decoupled in the plugins, and moved out of the Flextype release package!

    ๐Ÿ”Œ Install all needed plugins for your project by your self.
    ๐Ÿ”Œ Browse plugins: https://github.com/flextype-plugins

    core: new way for data merging of manifest and settings for plugins and themes #404

    for e.g. this is a wrong code to access site title:

    {{ registry.plugins.site.title|e('html') }}
    

    and this is a correct code to access site title:

    {{ registry.get('plugins.site.settings.title')|e('html') }}
    

    core: We should add app url into the core instead of base_url and site_url #405

    for e.g. this is a wrong code to access site url:

    {{ registry.plugins.site.url }}
    

    and this is a correct code to access app url:

    {{ registry.get('flextype.settings.url') }}
    

    core: new project folder instead of site

    • rename folder site into project

    - use new constant PATH['project'] instead of constant PATH['site']

    core: removed constants

    • PATH['plugins']
    • PATH['themes']
    • PATH['entries']
    • PATH['themes']
    • PATH['snippets']
    • PATH['fieldsets']
    • PATH['tokens']
    • PATH['accounts']

    - PATH['uploads']

    core: removed Snippets functionality

    โšก๏ธ Update from Flextype 0.9.7 to Flextype 0.9.8

    1. Backup your Site First!
    2. Read BREAKING CHANGES section!
    3. Download flextype-0.9.8.zip ๐Ÿ’ป 4. Unzip the contents to a new folder on your local computer. ๐Ÿšš 5. Remove on your server this folders and files:

      /flextype/ /vendor/ /index.php

    4. Upload on your server this folders and files:

      /src/ /vendor/ /index.php

    5. Rename /site/ to /project/ ๐Ÿ’ป 8. Clear browser cache!

    6. Create CDA, CMA and Access tokens for your project using this webpage.