Search the Community
Showing results for tags 'related pages'.
-
Hello Processwirers, I'm trying to access a field's label in the current user language: $this->template->fields->skills->label // returns either "skills" or "Kenntnisse" depending on the language /en/ or /de/ $this->related_tutor->template->fields->skills->label // always returns "skills" no matter the language The label for the field is set in different languages. related_movie is a related page (aka "page field") and that related page is a user, i.e. uses a system template (– might that be the issue?) Why doesn't this work for related pages?
- 1 reply
-
- related pages
- page field
-
(and 1 more)
Tagged with:
-
New to ProcessWire and seriously loving it. I'm also relatively new to PHP (there is my disclaimer!). I am trying to come up with the following PHP statement to find related pages. I would like to find all pages where "some_field" contains the page title of the current page. So the statement might look something like this: <?php $matches = $pages->find("some_field *= title of the current page"); ?> Greatly appreciate any nudge in the right direction. Thanks.