Jump to content

Search the Community

Showing results for tags 'fieldtypes pagearray'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hi all, I have a website that has Pages with text and Page fieldtypes. Is there an elegant way to search both of them (in this case, the Page titles of the referenced pages) at the same time for a search string? Doing a search of the Page titles and bodies is easy enough: $my_textual_results = $pages->find("body|title%=$query, sort=-posted, limit=10"); And of the referenced Pages, too: $my_referenced_pages = $pages->get('/referenced-pages/')->find("title%=$query"); $my_referenced_results = $pages->find("referenced_pages=$my_referenced_pages, sort=-posted, limit=10"); Now how do I combine these two search queries into one? I tried an 'or' operator between the two different search parameters: $my_referenced_pages = $pages->get("/referenced-pages/")->find("title%=$query"); $total_results = $pages->find("body|title%=$query | referenced_pages=$my_referenced_pages, sort=-posted, limit=10"); ...but that didn't work. Any ideas? Thanks! -evan
×
×
  • Create New...