Repository navigation
eZ Url MultiSite 1.0.1
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:
|ezurlnow detects the correct target siteaccess fromPathPrefixor by resolving the content node from the URL alias, and emitshttp(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
parametershash addsabsolute,siteaccess,protocol,hash,query,user_parameters,no_self_link,node_id, andlink_type. - Protocol / HTTPS: absolute URLs default to the current request scheme (HTTPS on an HTTPS page);
protocolcan override tohttp,https, or//(protocol-relative). - New operators:
ezurl_path,ezurl_siteaccess, andezurl_rootsfor advanced multi-site lookups. - Configuration:
ezurlmultisite.inisupports 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), andezobjectrelation.
Files added
classes/ezurlmultisite.phpclasses/ezurlmultisiteoperator.phpclasses/ezurlmultisitedatatypehandler.phpclasses/ezurlmultisiteurlhandler.phpclasses/ezurlmultisitebinaryfilehandler.phpclasses/ezurlmultisiteobjectrelationhandler.phpautoloads/eztemplateautoload.phpsettings/ezurlmultisite.ini- Updated
classes/kerneloverride/v2025.01.15/kernel/common/ezurloperator.php - Updated
README.md - Updated
ezinfo.phpto version 1.0.1