From: Andrei K. <ak...@ho...> - 2003-08-28 18:13:05
|
Hi Mark, I am no expert on templates, but usually API function (method) returns some value. I will give you an example. Breadcrumbs function works like this: $breadcrumbs = breadcrumbs($cat_id); //where $cat_id is category id for which you want to create breadcrumbs //navigation. $breadcrumbs will always return an array (even if you are at the root parent_id = 0) This array will have following information for every array member: $breadcrumbs[]['cat_id'] - category id (for further navigation) $breadcrumbs[]['cat_name'] - category name to display How you, as a template designer use this information, is up to you! That is why I call these functions API. They do not provide ready to display output. On the other hand, we can create sub-templates (like ready to insert snippets of ready to display code) that you can call from another template like [-$BREADCRUMBS-VERTICAL-] to display breadcrumbs in a vertical fashion. But, I am not developing templating for envo (you can thank me for that later :)), so, I can't guarantee that you will have sub-templates at all :). Best Regards, ak |