How to get topic link in theme level
Permalink
I want somehow to use "getTopicLink" function from the "topic list" block without adding this block (i only need to print the name of the topic in my blog entry + this name should be clickable)
Some page with topic "categoryA" selected.
This code return "categoryA" but i also want "categoryA" to be clickable.
In topic list block -- controller.php i find this function - thier is some way to use this function in "theme level" by code?
** Of course i can add custom template of the "topic list" only showing the name+link - zero extra design (but this is little weird)
Some page with topic "categoryA" selected.
<?php $topics = $c->getAttribute('topics_handle', 'display'); echo $topics; ?>
This code return "categoryA" but i also want "categoryA" to be clickable.
In topic list block -- controller.php i find this function - thier is some way to use this function in "theme level" by code?
public function getTopicLink(\Concrete\Core\Tree\Node\Node $topic = null) ..rest of the code
** Of course i can add custom template of the "topic list" only showing the name+link - zero extra design (but this is little weird)