I have modified my links.def to add my custom fields:
# Field Number of some important fields. The number is from %db_def above
# where the first field equals 0.
$db_id = 0;
$db_artist = 1;
$db_title = 2;
$db_cover = 3;
$db_url = 4;
$db_date = 5;
$db_category = 6;
$db_isnew = 7;
$db_hits = 8;
$db_rating = 9;
$db_votes = 10;
This has been check with the top part
# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Artist => [1, 'alpha', 40, 75, 1, '', ''],
Title => [2, 'alpha', 40, 75, 1, '', ''],
Cover => [3, 'alpha', 40, 75, 0, 'http://', '^http|news|mailto|ftp'],
URL => [4, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Date => [5, 'date', 15, 15, 1, \&get_date, ''],
Category => [6, 'alpha', 0, 150, 1, '', ''],
isNew => [7, 'alpha', 0, 5, 0, 'Yes', ''],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
Rating => [9, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [10, 'numer', 10, 10, 1, 0, '^\d+$']
);
Everything seems to be correct. Although when i build my pages, I recieve:
Generating detailed view pages . . .
No No No No No
Done
I have 5 links in my db, all with the ID of "No"
I have a discoverd the "Yes.shtml" abd a "No.shtml" files in my Detailed directory. Can someone please tell me what have i done wrong and how can i fix this?
P.S. I have the correct fields in my templates.
# Field Number of some important fields. The number is from %db_def above
# where the first field equals 0.
$db_id = 0;
$db_artist = 1;
$db_title = 2;
$db_cover = 3;
$db_url = 4;
$db_date = 5;
$db_category = 6;
$db_isnew = 7;
$db_hits = 8;
$db_rating = 9;
$db_votes = 10;
This has been check with the top part
# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Artist => [1, 'alpha', 40, 75, 1, '', ''],
Title => [2, 'alpha', 40, 75, 1, '', ''],
Cover => [3, 'alpha', 40, 75, 0, 'http://', '^http|news|mailto|ftp'],
URL => [4, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Date => [5, 'date', 15, 15, 1, \&get_date, ''],
Category => [6, 'alpha', 0, 150, 1, '', ''],
isNew => [7, 'alpha', 0, 5, 0, 'Yes', ''],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
Rating => [9, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [10, 'numer', 10, 10, 1, 0, '^\d+$']
);
Everything seems to be correct. Although when i build my pages, I recieve:
Generating detailed view pages . . .
No No No No No
Done
I have 5 links in my db, all with the ID of "No"
I have a discoverd the "Yes.shtml" abd a "No.shtml" files in my Detailed directory. Can someone please tell me what have i done wrong and how can i fix this?
P.S. I have the correct fields in my templates.