Link block title to channels?

error 232
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Link block title to channels?

Philipp Esselbach
From: -
Editor
0From: -
Basically, you can use the same code like the icon image.
HTML part:
PHP part:
HTML part:
<h1><a href="https://www.contentteller.com/{$block_url}"><img src="https://www.contentteller.com/images/{$block_image}" alt="" /> {$insert['block_name']}</a></h1>
PHP part:
$block_image = "default.gif";
$block_url = "index.php";
if ( $insert['block_name'] == "News" )
{
$block_image = "news.gif";
$block_url = "contentteller/news";
}
elseif ( $insert['block_name'] == "Content" )
{
$block_image = "content.gif";
$block_url = "contentteller/content";
}
elseif ( $insert['block_name'] == "Knowledgebase" )
{
$block_image = "knowledgebase.gif";
$block_url = "contentteller/knowledgebase";
}
How to link block title to certain channel like fx. Latest Software News to software channel?
Thanks