Skip to content

eZ Url MultiSite 1.0.1

Choose a tag to compare

@se7enxweb se7enxweb released this 19 Jul 07:00
· 9 commits to master since this release

What's new in 1.0.1

This release turns the built-in ezurl template operator into a multi-siteaccess-aware URL generator while keeping the original |ezurl API unchanged.

Features

  • Cross-siteaccess absolute URLs: |ezurl now detects the correct target siteaccess from PathPrefix or by resolving the content node from the URL alias, and emits http(s)://<host>/<path> when linking across siteaccesses.
  • Backward-compatible API: existing {$node.url_alias|ezurl} calls continue to work unchanged.
  • Optional advanced parameters: a third parameters hash adds absolute, siteaccess, protocol, hash, query, user_parameters, no_self_link, node_id, and link_type.
  • Protocol / HTTPS: absolute URLs default to the current request scheme (HTTPS on an HTTPS page); protocol can override to http, https, or // (protocol-relative).
  • New operators: ezurl_path, ezurl_siteaccess, and ezurl_roots for advanced multi-site lookups.
  • Configuration: ezurlmultisite.ini supports host overrides, role-based siteaccess selection, class-based link type mapping, disable lists, and a pluggable datatype handler interface.
  • Built-in datatype handlers: ezurl/ezstring, ezbinaryfile (download links), and ezobjectrelation.

Files added

  • classes/ezurlmultisite.php
  • classes/ezurlmultisiteoperator.php
  • classes/ezurlmultisitedatatypehandler.php
  • classes/ezurlmultisiteurlhandler.php
  • classes/ezurlmultisitebinaryfilehandler.php
  • classes/ezurlmultisiteobjectrelationhandler.php
  • autoloads/eztemplateautoload.php
  • settings/ezurlmultisite.ini
  • Updated classes/kerneloverride/v2025.01.15/kernel/common/ezurloperator.php
  • Updated README.md
  • Updated ezinfo.php to version 1.0.1