-
Posts
321 -
Joined
-
Last visited
-
Days Won
5
Community Answers
-
justb3a's post in any api to lock and unlock a page? was marked as the answer
$page->addStatus(Page::statusLocked); $page->removeStatus(Page::statusLocked); Have a look at the cheatsheet.
-
justb3a's post in SystemUpdater #12 Error, PW incompatible with mysql 5.7.x ? was marked as the answer
That's a good point. I remember that I changed something like that a long time ago. I found my snippet
sql errors - check (mysql 5.6.15): sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" remove STRICT_TRANS_TABLES -
justb3a's post in Translatable Strings + Version 2.6.0 was marked as the answer
After a lot of testing I found the solution for my problem by myself. Comparing objects in a template leads to this behavior (it works using ProcessWire version 2.5.3):
- <li class="nav-meta__item{% if language == user.language %} nav-meta__item--active{% endif %}"> + <li class="nav-meta__item{% if language.id == user.language.id %} nav-meta__item--active{% endif %}">