This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Link block title to channels?


avatar
error 232
From: -
Link block title to channels?

How to link block title to certain channel like fx. Latest Software News to software channel?

Thanks

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?
avatar
Editor
0
From: -
Basically, you can use the same code like  the icon image.

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";
}

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.