Hello Paul, I agree that having such function to generate the trail would be useful. But this is an expensive operation (not sure if it would hit the cache) as it recursively lookups the parent category by doing query. A comment should be added to make it clear to user.
When possible, you should set category_id and pcategory. These are used to update the trail (see setTrail). setTrail can be called from anywhere as below: curCategoryId = parameters.category_id ?: parameters.CATEGORY_ID ?: ""; CategoryWorker.setTrail(request, curCategoryId); Cheers, Kiran