Jump to content
Peter Knight

Image tagging with Page field

Recommended Posts

Short version

Can we make the Page fieldtype as the tagging engine for images?

Long version / real example

I started using image tags for the first time after reading making efficient use of fields in PW. There's a part titled 

Use multi-file fields to replace several single-file fields where Ryan mentions tagging.

As I was building a site for an interior designer, I needed an almost identical setup and to tag images with a gallery with "basement", "living room", "garden" and "kitchen" tags.

At one stage, my client wanted "basement" changed to "basement and garden" and I had to manually edit about 15 images. No big deal really but it doesn't seem very scalable.

Having used the Page fieldtype for tagging blog posts and news and experienced how easy it is to make global tag names changes etc, I wondered if the Page fieldtype could be put on the roadmap as the tagging engine for images or at least as an option.

  • Like 1

Share this post

Link to post
Share on other sites

A trick on such a use case could be using pages for single images...so a pagefield for tagging is  no problem...but it is a other imagemangment like:


or simpler with a little module for creating albums/single imagepages from uploaded files...


(a page could be everything - the image = page has some cons and some pros like counting, cleaner urls...and so on)

but the handling is a little bit difficult - it's always more or less work - for eg. to change the selection to the image-root page on the WYSIWYG PW-Image modal:


Otherwise you could fast change the tags with the api i think? May a little admin form for editors would do the job for chaning regular image tags?

regards mr-fan

Share this post

Link to post
Share on other sites

Hey Mr-fan

That occurred to me (pages as single images) and would have a few benefits in this project. I might even go down that route as the portfolio grows.

Was thinking too that I could use Lister pro then as a kind of Images manager. Kind like what Soma is doing with his setup.

Otherwise, I was just putting it out there that it's be a nice idea? Probably not easy or quick to refactor in terms of the core but would be a nice addition.

  • Like 1

Share this post

Link to post
Share on other sites

With FieldtypeOptions there would even be a more lightweight alternative to using pages for storing the tags. 

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By humanafterall
      I'm using some Custom fields for images: 

      When I save the page, and return the fields are blank. When I re-add the text to the fields and save again then the fields save as expected.

      I know this is stated as being quite experimental but it's super useful feature I'd love to get working correctly.
      I have fields that are CKEditor fields but have overidden this on the image specific template. I've also tried it with regular text fields and I get the same bug.
      (currently using Processwire 3.0.155)
      I've found this issue is specific to editing on pages using the PageTable fieldtype. The fields are not saving when I save the page in the PageTable.
    • By Robin S
      Displays image tags overlaid on the thumbnail using customisable colours. This makes it easier to see which images have which tags without needing to open the edit pane for individual images or changing to the list view.

      Enable tags for one or more image fields. Install the Image Thumbnail Tags module. Optionally configure colours for any of your tags.
    • By EyeDentify
      Hello dear PW gurus.

      I have stumbled over a strange error that i all of sudden got when trying to upload an image to a images field on a page.
      There where images allready stored in the field that i wanted to keep, but during the upload the error apear and after that all images are gone from the field and i can´t upload any, i just get the error every time.
      I am running ProcessWire 3.0.153 dev.
      After looking in the assets folder i find the folder for the page and the image files seems to be there including the ones i tried to upload when the error occured.
      But they don´t show up in the images field in the page editor.
      The error reported:
      SQLSTATE[01000]: Warning: 1265 Data truncated for column 'ratio' at row 1 And here is a screenshot of the event:

      The TracyDebugger Error reporting:

      I hope you fine folks could point me in a direction.
      But it seems our old pal set_time_limit() is back.

      Regards, EyeDentify
  • Create New...