XF 1.5 How display main category title in subcategory and items titles

#1
This customization is for xenresource.

How i can show the name of the main category in sucategory titles. eg :

SUBCAT-TITLE - MAINCAT-TITLE | mysite.com

and on items.

ItemsName-TITLE - MAINCAT-TITLE | mysite.com

like Breadcrumbs..

Best Regards.
 
#2
nobody can tell me please.

i can call :
Code:
 Item-title - {$media.media_title}
after itme title but it shows me the subcategory, however, I need to show the main category
 
Top