Flextype v0.9.7 Release Notes

Release Date: 2020-03-03 // about 4 years ago
  • ๐Ÿ”‹ Features

    core: add Delivery API's for Entries, Images and Registry. #159

    ๐Ÿ‘‰ Use Flextype as a Headless CMS with the full power of the Admin Panel.
    ๐Ÿ— Build a Websites and Apps with a technology you are familiar with.

    Endpoints for Delivery API's:

    /api/delivery/entries
    /api/delivery/images
    /api/delivery/registry
    

    core: add new core constants PATH['tokens'], PATH['accounts'], PATH['logs'], PATH['uploads']

    core: add new locales support Persian, Indonesian, Galician #327

    core: add alternative comparison syntax for Entries API

    Alternative comparison syntax:

    != - Not equals to
    like - Contains the substring
    

    core: set entries field routable=true on new entry creation #320

    core: use array_merge() instead of array_replace_recursive() for entries update method.

    core: initialize plugins before themes #323

    core: update Cache to use adapter to retrieve driver object #341

    core: load Shortcodes extensions based on flextype.shortcodes.extensions array #352

    core: load Twig extensions based on flextype.twig.extensions array #351

    core: add new Global Vars PATH_ACCOUNTS, PATH_UPLOADS, PATH_TOKENS, PATH_LOGS for Twig.

    0๏ธโƒฃ default-theme: Moving to Tailwind CSS from Twitter Bootstrap #356

    ๐Ÿ”Œ site-plugin: add ability to set custom site url, new shortcode [site_url] and twig var {{ site_url }}

    ๐Ÿ”Œ form-plugin: add new Form plugin for forms handling instead of core Forms API.

    ๐Ÿ”Œ icon-plugin: add new Icon plugin for Font Awesome icons set.

    usage in templates:

    <i class="icon">{{ icon('fab fa-apple') }}</i>
    

    usage in entries content:

    [icon value="fab fa-apple"]
    

    ๐Ÿ”Œ (site-plugin): add ability to access uri variable in the theme templates.

    usage in templates:

    {{ uri }}
    

    ๐Ÿ”Œ admin-plugin: add RTL support for URLs #62

    ๐Ÿ”Œ /site/config/plugins/admin/settings.yaml

    ...
    entries:
      slugify: true # set `false` to disable slugify for entries
    

    ๐Ÿ”Œ admin-plugin: add ability to deactivate/activate all type of plugins. #211

    ๐Ÿ”Œ admin-plugin: add Confirmation Required modal for system plugins deactivation.

    ๐Ÿ”Œ admin-plugin: new Admin Panel UI with better UX and powered by Tailwind CSS.

    ๐Ÿ”Œ admin-plugin: new improved entries media manager page.

    ๐Ÿ”Œ admin-plugin: add ability to continue editing after saving in the editor.

    ๐Ÿ”Œ admin-plugin: add action onAdminThemeTail for admin panel base layout.

    ๐Ÿ”Œ admin-plugin: add ability to change entries view from list view to table view.

    ๐Ÿ”Œ /site/config/plugins/admin/settings.yaml

    ...
    entries:
      items_view_default: list # set `table` for table entries view
    

    ๐Ÿ”Œ admin-plugin: increase upload limit for _uploadFile from 3mb to 5mb

    ๐Ÿ”Œ admin-plugin: do not rewrite plugins and themes manifest with custom manifests.

    ๐Ÿ”Œ admin-plugin: add parsleys for frontend form validation.

    ๐Ÿ”Œ admin-plugin: add select2 for all select form controls.

    ๐Ÿ”Œ admin-plugin: add swal for all modals.

    ๐Ÿ”Œ admin-plugin: add flatpickr for date and time.

    ๐Ÿ”Œ admin-plugin: add tippy.js for all tooltips and dropdown menus.

    ๐Ÿ”Œ admin-plugin: add confirmation modals powered by swal for all critical actions.

    ๐Ÿ”Œ admin-plugin: add dim color for entries with draft, hidden and routable=false status #324

    ๐Ÿ”Œ admin-plugin: add ability to select entry type in the nice modal on entry creation. #331

    ๐Ÿ”Œ admin-plugin: add new setting entries.items_view_default with default value list.

    ๐Ÿ”Œ admin-plugin: add ability for redirect to the editor after creating #343

    ๐Ÿ”Œ admin-plugin: add ability to create default API tokens on installation process.

    ๐Ÿ”Œ admin-plugin: add ability to use local SVG version of Font Awesome Icons #322

    usage in templates:

    <i class="icon">{{ icon('fas fa-ellipsis-h') }}</i>
    

    ๐Ÿ› Bug Fixes

    • core: fix discord server link #325
    • core: fix issue with system fields data types in the Entries API #383
    • ๐Ÿ”Œ admin-plugin: fix issue for creating entry process with same IDs #333
    • ๐Ÿ”Œ admin-plugin: fix redirect for entries after edit process.
    • ๐Ÿ”Œ admin-plugin: fix issues with routable field on entry edit process.

    ๐Ÿ”จ Refactoring

    • core: move /site/cache directory to the /var/cache #347
    • core: remove Forms API from Flextype core #360
    • ๐Ÿ”Œ admin-plugin: improve Gulp configuration for better assets building.
    • 0๏ธโƒฃ default-theme: improve Gulp configuration for better assets building.
    • core: simplify logic for themes initialization process, remove extra checks for theme setting is enabled or not.
    • ๐Ÿ”Œ admin-plugin: move templates from views folder into the templates folder #347
    • ๐Ÿ”Œ admin-plugin: remove unused namespaces in EntriesContoller #347
    • ๐Ÿ”Œ admin-plugin: remove complex logic for themes activation process.
    • ๐Ÿ”Œ admin-plugin: add ext-gd to the require section of composer.json #347
    • ๐Ÿ”Œ admin-plugin: add ext-fileinfo to the require section of composer.json #347
    • ๐Ÿ”Œ admin-plugin: add ext-dom to the require section of composer.json #347
    • ๐Ÿ”Œ admin-plugin: add ext-spl to the require section of composer.json #347
    • 0๏ธโƒฃ default-theme: remove enabled option from theme settings.

    โšก๏ธ Vendor Updates

    • core: Update vendor monolog/monolog to 2.0.2
    • core: Update vendor cocur/slugify to 4.0.0
    • core: Update vendor thunderer/shortcode to 0.7.3
    • core: Update vendor ramsey/uuid to 3.9.2

    ๐Ÿ’ฅ BREAKING CHANGES

    core: accounts moved to their specific folders.

    for e.g.

    /accounts/admin.yaml => /accounts/admin/profile.yaml
    

    core: remove Debug, Html and Form Flextype Components.

    core: all images links should be updated

    http://docs.flextype.org/en/content/media
    

    core: core and plugin settings keys renamed

    For all core settings:
    settings.* => flextype.*
    
    For all site settings:
    settings.title => plugins.site.title
    settings.description => plugins.site.description
    settings.keywords => plugins.site.keywords
    settings.robots => plugins.site.robots
    settings.author.email => plugins.site.author.email
    settings.author.name => plugins.site.author.name
    

    ๐Ÿ”Œ admin-plugin: remove Twitter Bootstrap from Admin Panel and Default Theme.

    ๐Ÿ”Œ admin-plugin: remove user profile page /admin/profile

    ๐Ÿ”Œ admin-plugin: method getUsers() renamed to getUsersList() in UsersController.

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

    • Backup your Site First!
    • ๐Ÿš€ Read BREAKING CHANGES release section!
    • Download flextype-0.9.7.zip
    • ๐Ÿ’ป Unzip the contents to a new folder on your local computer.
    • โœ‚ Remove on your server this folders and files:
      • /flextype/
      • /vendor/
      • /site/accounts/
      • /site/config/
      • /site/cache/
      • /site/plugins/admin/
      • /site/plugins/site/
      • /site/themes/default/
      • /index.php
    • Upload on your server this folders and files:
      • /flextype/
      • /vendor/
      • /site/plugins/admin/
      • /site/plugins/site/
      • /site/plugins/icon/
      • /site/plugins/form/
      • /site/themes/default/
      • /index.php
    • ๐Ÿ’ป Clear browser cache!
    • Go to YOUR_SITE_URL/admin url and create new user account.

    โœ… Flextype 0.9.7 (1463 commits and more than 400h for development and testing!)