hi thanks for the answer .. didnt work out though.. using joomla 3.1 and the tutorial is just for 2.5 (.. dont know though if that is the reason)
secondly there is already a field name = "title_link". After changing the field name to "title_url" in mod_st_content_showcase.xml and modules.php accordingly it still doesn't work.
i see the field "title url" in the basic options of the module but after inserting an url the title still isnt a link.. currently my code looks like that.
mod_st_content_showcase.xml:
<fields name="params">
<fieldset name="basic">
...
...
...
<field
name="title_link"
type="radio"
default="1"
label="ST_GLOBAL_TITLE_LINK"
description="ST_GLOBAL_TITLE_DESC_LINK_DESC" >
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field name="title_url" type="text" default="" label="Title url" description="" />
and modules.php like that:
function modChrome_xhtml($module, &$params, &$attribs)
{
if (!empty ($module->content)) : ?>
<div class="moduletable<?php echo htmlspecialchars($params->get('moduleclass_sfx')); ?>">
<?php if ($module->showtitle != 0) : ?>
<?php $title_url = $params->get('title_url'); ?>
<h3><?php if($title_url) { ?> <a href="<?php echo $params->get('title_url'); ?>"> <?php } ?><?php echo $module->title; ?><?php if($title_url) { ?></a><?php } ?></h3>
<?php endif; ?>
<?php echo $module->content; ?>
</div>
<?php endif;
}
do you see any evident mistakes or know what else i could try..
thx