Forum OpenACS Development: Re: Best way to fix this community logo problem?

Collapse
Posted by Janine Ohmer on
Hi Dave,

file-storage/www/view/index.vuh calls content::init, which does this:

        select
          content_item.get_live_revision(content_item.get_template(:item_id, :context)) as template_id,
          content_template.get_path(content_item.get_template(:item_id, :context), :template_root) as template_url
        from
          dual

get_template is returning null, because there isn't one, and so get_path errors out. Maybe there is a way around this but I'm not familiar enough with the code to see it. I tried having get_path return null if the template_id passed in was null, but then I end up with that "Content Item Not found" message. Things work better if the content item has type file_storage_object instead of image, but then other things don't work, plus that's probably not a good general solution. I think it was at this point that I figured I must be heading in the wrong direction. :)

It would actually be better not to store the logo in file-storage anyway, since it's not a file the users need to see. Is there some other object_id I can use for the parent?