[Typo3] title param in a A-tag
Peter Klein
peter at umloud.dk
Tue Nov 15 16:27:08 CET 2005
Hi Pierre. I wrote a small UserFunc a while ago, to allow you to set the
aTagParams with stdWrap values.
You use it like this:
typolink.userFunc = user_userFunc->addAttributes
typolink.userFunc.aTagParams.dataWrap = alt="{field:title}"
title="{field:title}"
The extra "aTagParams" are then added to the normal "aTagParams"
The PHP userFunc:
-- cut --
<?
class user_userFunc{
function addAttributes($content,$conf) {
$aTagParams = $this->cObj->stdWrap($conf['aTagParams'],
$conf['aTagParams.']);
$content["aTagParams"].= ' '.$aTagParams;
$content['TAG'] = '<A
HREF="'.$content["url"].'"'.$content["targetParams"].$content["aTagParams"].'>';
return $content['TAG'];
}
}
?>
-- cut --
---
Peter Klein/Umloud Untd
"Pierre Rouwens" <prouwens at infoglobe.ca> skrev i en meddelelse
news:mailman.1.1131814809.5102.typo3-english at lists.netfielders.de...
> Hi Christopher,
>
> Mmmmmit doesn't work here :
> <a href="index.php?id=3" title="title">
>
> i wanna have the title of the page maybe i wasn't so clear about that :)
>
> thanks anyway
>
> Pierre
>
>
>>
>> '.typolink.ATagParams' works here. Try it with quotes:
>>
>> stdWrap.typolink.ATagParams = title="title"
>>
>>
>> -Christopher
More information about the TYPO3-english
mailing list