Gossamer Forum
Home : Products : Links 2.0 : Customization :

Unkown Tag: field_name

Quote Reply
Unkown Tag: field_name
 
Hello,
When I send mass mailing and I use this <%field_name%>, I have follow message:
Unkown Tag: field_name
What happened? I don't use my own filed names in the %db_def hash in the links.cfg file
Thank you in advance for your help,
S. Monnier
Quote Reply
Re: [svetlana] Unkown Tag: field_name In reply to
hi,


if you mail Links Owners you can use
Code:
<%ID%>
<%Contact Name%>
<%Contact Email%>
<%URL%>

and so on...
all fields from links.def..

if you want to use it for newsletter
open db_utils.pl and search this section and make your changes:
Code:
sub build_new_links {
# --------------------------------------------------------

my $output = '';
my (@data, %rec);

open (DB, "<$db_file_name") or &cgierr("ERROR. BLABLA: $db_file_name.\nReason: $!");
if ($db_use_flock) { flock(DB, 1); }
LINE: while (<DB>) {
(/^#/) and next LINE;
(/^\s*$/) and next LINE;
chomp;
@data = &split_decode($_);
if ($data[$db_isnew] eq 'Yes') {
%rec = &array_to_hash(0, @data);
my $des_q = &linewrap ($rec{'Description'});
$output .= qq~
-------------------------------------------------------------------
$rec{'Title'} (start: $rec{'Date'})
$rec{'URL'}
$des_q
~;
}
}
close DB;
return $output;
}
----
ciao
nicky
Quote Reply
Re: [Nicky] Unkown Tag: field_name In reply to
Thank you very much It works fine now