zpMasonry search options

If I ask only for images to be returned in a search, all is fine. If I ask for albums, news, or pages to be included in search, zpMasonry will only display the number of items equal to the number of thumbnails per page set in the theme options.
The search count in the breadcrumb menu displays the correct number of images that should be displayed.

I honestly don't remember if this worked in 1.41 or not. It does not make any difference if infinite scrolling is on or off. I am using ZenPhoto ver. 1.411 with 7/21 trunk download. Tested this on fresh install of zpMasonry 1.41 theme and cleared cache.

Comments

  • gjr Member
    Does this happen in any of the included themes? (ZenPage)
  • You're right. It may be a Zenphoto issue. With ZenPage enabled and search plugin options set to include content, if I search with all fields selected in dropdown box, only news, pages, and albums are shown - no images at all. If I uncheck the content in the search box, then the images are displayed fine.

    In case it matters, my images are selected based on the tag field.
  • acrylian Administrator, Developer
    Images (and albums) have no "content", technically they are the content. The field you probably wanted to search is called "description".
  • I don't think you understand what I was trying to say. If search plugin options are set to include matches from albums, images, news, and pages, I should see matches from all those items.

    If I search for orchids and select content, title, tags, and description, the results should display an album named orchids as well as images that are tagged orchids or have orchids in image title or description. If content is checked, it should also return pages that contain the word orchids. E.g. an article like "In Search of the ... Orchid."

    Currently, if I select tags and title, I see orchid images as expected. If I select content in addition to tags and title, no orchid images are shown at all.

    If necessary I can post a link to a test site to demonstrate.
  • acrylian Administrator, Developer
    I just wanted to be sure that no one expects "descriptions" results if the "content" field is checked...;-)

    Yes, please post a link.
  • I have tried to reproduce this on 1.4.1.1 [7817] but everything is working as expected. I even used "orchards" as the tag/title/description/content target.
  • Visit http://natureinfocus.com/test. I've switched it to the default zenpage theme for now. In search plugin options, I've checked not to return album matches. Search results a bit different than zpMasonry but stll wrong. If you search for orchids (not orchards!) with all search fields ticked, it returns articles that reference orchids but it also returns albums (should not) and no images at all. If you clear search and run it again with only tags checked, it show tagged images correctly.

    Hope you can clear up this mystery. I will try to update to latest nightly download in mentime.
  • acrylian Administrator, Developer
    JUst tried on your site and I indeed got albums. and an error:
    "Fatal error: Call to a member function isDynamic() on a non-object in /home/content/n/a/t/<....>/html/test/zp-core/template-functions.php on line 1703"
  • You may have been there just as I was updating the files to the 7/28 build. With a quick check, the search seems to work with zenPage on that build. I've not seen the error you referenced. Will have to test on the zpMasonry theme again.
  • Thankfully, upgrading to the latest nightly build seems to have fixed this issue so I don't know if that particular build I was using had problems or if something got corrupted. In any case, very grateful that search seems fixed.

    If you have time, you might check the test site again to make sure that you don't get that error message (which I haven't seen).

    Thanks.
  • Well I thought it was resolved. ... However I think I've discovered what guarantees the search to fail for me: turning on mod rewrite and selecting only tags to search in the search box. Clicking on a tag link seems fine.

    With rewrite off, all works as expected.

    If I enable mod_rewrite in gallery options, the default theme will display the correct count for images tagged with orchids and will show links to subsequent pages, but it will say no images found if one tries to go to following pages. However, as soon as I disable the rewrite option, the search works as expected on following pages.

    I think this is because the link to 2nd page is incorrect with rewrite enabled.

    With rewrite off, link for 2nd page of search shows:

    http://natureinfocus.com/test/index.php?p=search&words=orchids&searchfields=tags&page=2

    With rewrite on, second page link shows:

    http://natureinfocus.com/test/page/search/orchids?searchfields=tags/2

    which does not work instead of

    http://natureinfocus.com/test/page/search/tags/orchids/2

    which does work fine.

    Yet if I search for certain combinations of fields such as tags and ttile, 2nd page link seems to work:

    http://natureinfocus.com/test/page/search/orchids?searchfields=tags,title/2

    You can verify this by clicking on the above links or at my test site which is using default theme with mod_rewrite enabled at http://natureinfocus.com/test . Search for orchids ans selecting only the tags field. AFAIK, any tag by itself will break the search.

    I've purged image cache and internet cache. htaccess file is unchanged from what was installed by zenphoto.
  • Well, the mod_rewrite link is not correct. The query part must be at the end of the link, so the correct form would be
    `http://natureinfocus.com/test/page/search/orchids/2?searchfields=tags,title`

    We will look into this.
    [edit] fixed in the nightly build tonight.
  • Thanks - seems cured.
Sign In or Register to comment.