Forums / Setup & design / Fetch on single keyword and random objects

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Fetch on single keyword and random objects

Author Message

Tore Skobba

Tuesday 11 January 2005 2:07:26 pm

Hi

I am making an personnal website at http://www.skobba.com (non dynamic). I there have several images in various folders, each image have several customized keywords. I would like to list up the releated images for each keyword (instead of ALL releated images to the image). Exampe:

Keyword: house, three, boat

Boat
img 1
img 2
Three
img9
etc.. Currently I only manage to get an list of ALL the reletaed images, but I want them grouped on each keyword.. Is this possible?

And secondly.. Does the fetch function have an random function, I remember reading about it but I am totally unable to find it.

Cheers
Tore

Gabriel Ambuehl

Wednesday 12 January 2005 12:02:18 am

Two ways: either use content,search instead of content,fetch or use object relations to assemble the keywords (this can potentially lead to a lot of objects you link to, though), the second way is what I did on a page to easily have topic maps.

Visit http://triligon.org

Tore Skobba

Wednesday 12 January 2005 12:05:17 pm

Are you sure this would work for my solution, basically I need this kind of algorithm.

{section loop=$node.keywords}
   Keyword{$item.name}
   {section loop=fetch(all images having keyword $item.name}
      {display iamge}
   {section}
{/section}