Author Topic: Meta data  (Read 8853 times)

0 Members and 1 Guest are viewing this topic.

Offline Ofuuzo

  • Newbie
  • *
  • Posts: 29
    • View Profile
Meta data
« on: April 11, 2002, 10:46:19 AM »
Hi,

My compliments for this great script. I have a question. I want to add meta data . That is,  I want  the large image html source  to contain meta data  for the very  image after <title> </title>. Example:

.....
<head>
<title> </title>
<meta name="dc.creator" content="Jan De Great ">
<meta name="dc.keywords" content="Testing testing">
<meta name="dc.description" content="....  ">
.....
</head>
.....

Can you point me  in which files I have to look or how I can do that.

Thanks in advance.

Ofuuzo

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Meta data
« Reply #1 on: April 11, 2002, 10:51:04 AM »
Hi,

templates/header.html

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Ofuuzo

  • Newbie
  • *
  • Posts: 29
    • View Profile
Meta data
« Reply #2 on: April 11, 2002, 12:29:00 PM »
But I would like the content/value  for keywords from database to be assigned to meta data "content" value.

Let me say an image description value in db is "Testing testing"

I want it to apear like this:

<head>
<title> </title>
<meta name="dc.description" content="Testing testing ">
.....
</head>
.....

Thanks in advance.
Ofuuzo

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Meta data
« Reply #3 on: April 11, 2002, 01:16:42 PM »
Try this:

add in details.php below this line:
Code: [Select]
ShowImage($img_result, URL_IMAGE_ID."=".$image_id."&amp;", 0);
this:
Code: [Select]
$site_template->register_vars(array("meta_description" => $img_result['image_description'],
                                    "meta_keywords" => $img_result['image_keywords']
                                    ));


Then, add in template header.html:
Code: [Select]
<meta name="dc.description" content="{meta_description}">
<meta name="dc.keywords" content="{meta_keywords}">


Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Ofuuzo

  • Newbie
  • *
  • Posts: 29
    • View Profile
Meta data
« Reply #4 on: April 16, 2002, 06:00:22 PM »
It works.

- Ofuuzo