Jump to content

Mika

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Mika

  1. 4 hours ago, DV-JF said:

    @Mika may I ask you, out of interest, what the specific use case is for you?  Why would you want to search for a title that is at least longer than 10 characters? ? Cheers!

    I'm developing a module for SEO. This is because it is said that 50 to 60 characters is a good for the length of the page title.
    The 10 characters are only for my test environment.?

  2. Hello, can I use the selector to extract only pages with page titles longer than 10 characters?

    I'm looking for a way to search directly without using the php foreach statement, as shown below.

            $result = $this->pages->find("template!=admin, has_parent!=2, include=all");
            foreach ($result as $page) {
                if (strlen($page->title) > 10) {
                    $this->table[] = $page;
                }
            }
     

×
×
  • Create New...