::xo::db::CrClass proc lookup (public)::xo::db::CrClass lookup -name name [ -parent_id parent_id ]
Defined in packages/xotcl-core/tcl/cr-procs.tclCheck, whether an content item with the given name exists.
If the item exists, return its item_id, otherwise 0.
- Switches:
- -name (required)
- -parent_id (defaults to
"-100") (optional)
- Returns:
- item_id
|