We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alias
nav_item_model_error_urlsegementexistsalready
cms_nav_item
+----+--------+---------+---------------+------------------+--------+--------+ | id | nav_id | lang_id | nav_item_type | nav_item_type_id | title | alias | +----+--------+---------+---------------+------------------+--------+--------+ | 24 | 24 | 1 | 1 | 24 | A Page | a-page | | 25 | 25 | 1 | 1 | 25 | A Page | a-page | +----+--------+---------+---------------+------------------+--------+--------+
So Nav::moveToBefore() resp. Nav::moveToAfter() are failing when pages with same alias are invoked.
Nav::moveToBefore()
Nav::moveToAfter()
It seems that NavItem::validateAlias() isn't called before page creation.
NavItem::validateAlias()
The text was updated successfully, but these errors were encountered:
The validation is called, but it looks like the exists query is not correctly https://github.com/luyadev/luya-module-cms/blob/master/src/models/NavItem.php#L263-L269 i will check this quickly
Sorry, something went wrong.
@nadar First of all, many thanks for your quick support!
Edit: Further discussion moved to new issue #413.
nadar
Successfully merging a pull request may close this issue.
What steps will reproduce the problem?
alias
(= "URL Path segment") from 1.What is the expected result?
nav_item_model_error_urlsegementexistsalready
is raised.What do you get instead? (A Screenshot can help us a lot!)
alias
, see incms_nav_item
:So
Nav::moveToBefore()
resp.Nav::moveToAfter()
are failing when pages with samealias
are invoked.It seems that
NavItem::validateAlias()
isn't called before page creation.Additional infos
The text was updated successfully, but these errors were encountered: