Call by page name instead of ID

Search to show content on all product pages belonging to a particular unique category.

My thoughts were to use the parental identification approach.
These are just some of the following chains that I have tried without success.

— (26 is the name of the category name) —

{if isset ($ parent.id) AND $ parent.id == & # 39; 26 & # 39;}
Content on product pages is shown here
{/Yes}

{if isset ($ parent.pagename) AND $ parent.pagename == & # 39; Category Name & # 39;}
Content on product pages is shown here
{/Yes}

{if isset ($ thisproduct.parent.id) AND $ thisproduct.parent.id == & # 39; 26 & # 39;}
Content on product pages is shown here
{/Yes}

{if isset ($ product.parent) AND $ product.parent == & # 39; 26 & # 39;}
Content on product pages is shown here
{/Yes}

Thanks in advance! ;)