I found the wonderful new code that shows how to get all the subcategories belonging to a parent category code.
I switched from tool belt to using this and it shaved off execution time for this part of my code from .054 to .022
<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code('_blank1', l.settings:current_category )" />
<mvt:do name="l.result" file="g.Module_Library_DB" value="CategoryList_Load_Parent( l.settings:current_category:id, l.settings:sub_categories )" />
And I found info about
<mvt:item name="customfields" param="Read_Category_Code(l.settings:subcat:code,' image_title', l.settings:customfields )" />
but it seems odd to me that the function doesn't get the category title image.. It isn't the category tree image.. so.. why doesn't it get the category title?
I read several times in the forum that the title image and tree image are only called while inside the cattree.
Seems to me the category title image would be useful in LOTS of places and should be accessible outside of the cattree.
I found that I could get to the cat title image using toolkit.
<mvt:item name="toolkit" param="cattreeimage|subcatImage|l.all_settings:sub _category:code" />
However, I'd like to completely replace the following toolkit script with builtin if possible.
How can this be done?
I switched from tool belt to using this and it shaved off execution time for this part of my code from .054 to .022
<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code('_blank1', l.settings:current_category )" />
<mvt:do name="l.result" file="g.Module_Library_DB" value="CategoryList_Load_Parent( l.settings:current_category:id, l.settings:sub_categories )" />
And I found info about
<mvt:item name="customfields" param="Read_Category_Code(l.settings:subcat:code,' image_title', l.settings:customfields )" />
but it seems odd to me that the function doesn't get the category title image.. It isn't the category tree image.. so.. why doesn't it get the category title?
I read several times in the forum that the title image and tree image are only called while inside the cattree.
Seems to me the category title image would be useful in LOTS of places and should be accessible outside of the cattree.
I found that I could get to the cat title image using toolkit.
<mvt:item name="toolkit" param="cattreeimage|subcatImage|l.all_settings:sub _category:code" />
However, I'd like to completely replace the following toolkit script with builtin if possible.
How can this be done?
Comment