SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist Alchemist's Avatar
    Join Date
    Aug 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    dynamically changing meta keywords and descriptions

    Hello everyone,

    can someone point me in the right direction on how I can dynamically change meta keywords based on page content? That is, a page on restaurants should have restaurant related keywords, etc

    thanks
    Last edited by Alchemist; Dec 18, 2006 at 09:55. Reason: error

  2. #2
    SitePoint Wizard bronze trophy hooperman's Avatar
    Join Date
    Jan 2006
    Location
    Manchester, UK
    Posts
    4,301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you asking in a general 'algorithmic' sense, or a technical one which would be specific to the server side language you are using?

  3. #3
    SitePoint Evangelist Alchemist's Avatar
    Join Date
    Aug 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry...I left out some important info. I'm asking this from a design standpoint...I'm using ASP and MYSQL....my website is DB driven

    thanks

  4. #4
    SitePoint Evangelist Alchemist's Avatar
    Join Date
    Aug 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any idea? anyone? tnx

  5. #5
    SitePoint Member
    Join Date
    Oct 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Alchemist View Post
    any idea? anyone? tnx
    Without knowing how your DB is set up, it'll be hard to give you any details, but say you are on a page displaying a particular restaurant, you'll just want to query the DB and get whatever restaurant info you have. Then just parse it into a string and Response.Write it in the meta tags.

    Something Like:

    1. Open Database Connection
    2. Open RecordSet
    3. Query Database
    4. Loop through results.
    5. Parse the results into a string.
    6. Resonse.Write the Meta tag to browser.

    -scarabaeus


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •