Jump to content

Alexey

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Alexey

  1. I understand, for example, that today there is a pharmacy in this city, and tomorrow it stopped working with us, and if this pharmacy is the only one in the selected region, then it is removed and, of course, the city must be removed, everything happens dynamically. I just switch from yii2 to processwire, everything happens dynamically there without manual intervention.
  2. That didn't work, for me it worked like this: $template = $templates->get('home'); $template->urlSegments = array_merge($template->urlSegments, ['new_city']); $template->save(); ChatGPT helped 😀
  3. Yes, how do i add url segment to whitelist? Without manually adding...
  4. API, how do I dynamically add a segment url to a template?
×
×
  • Create New...