image::get_resized_item_id (public)

 image::get_resized_item_id [ -item_id item_id ] \
    [ -size_name size_name ]

Defined in packages/acs-content-repository/tcl/image-procs.tcl

Get the item id of a related resized image, usually the thumbnail size

Switches:
-item_id
(optional)
Item_id of the original image
-size_name
(defaults to "thumbnail") (optional)
Returns:
item_id of the resized image, empty string if it doeesn't exist
Author:
Dave Bauer <dave@solutiongrove.com>
Created:
2006-08-29

Partial Call Graph (max 5 caller/called nodes):
%3 db_string db_string (public) image::get_resized_item_id image::get_resized_item_id image::get_resized_item_id->db_string

Testcases:
No testcase defined.
Source code:
    return [db_string get_resized_item_id "" -default ""]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
<fullquery name="image::get_resized_item_id.get_resized_item_id">
    <querytext>
      select child_id
      from cr_child_rels
      where parent_id=:item_id
      and relation_tag = 'image-' || :size_name
    </querytext>
</fullquery>
packages/acs-content-repository/tcl/image-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: