Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    Aug 2002
    Location
    Dallas, Texas, USA
    Posts
    594
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Adding keywords to your titles (All)

    Hey folks, been away for a while, due to work and home life! <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>

    However, yesterday my boss was mumbling about having to put keywords into every page's title, on our website. How it was going to be such a daunting task. Apparently a lot of search engines like to pick up keywords for your site from the page titles. My boss was tasked with raising our website's listing on the various search engines, so he spends his days wandering through mundane help files, etc. Anyhow, he doesn't think about how easy some 'repetitive' tasks really are, if tackled from code.

    So in a few minutes, I whipped up this little form in Front Page, which simply adds key words to every page's title. It's not overly complex, nor is it extremely flexible. The keywords are hard coded, however, it is smart enough to not add a keyword if it exists in the title already. It doesn't 'remove' old keywords though, however a slight modification could provide a lot of those 'missing' capabilities....this is just a good example of how VBA can simplify repetitive tasks. (I am not extremely familiar with FP's object model, so I spent half of the 10 minutes righting this, just looking through the help files! <img src=/S/grin.gif border=0 alt=grin width=15 height=15>)

    It's attached to this post, you should be able to just import it into FP.
    Attached Files Attached Files

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Adding keywords to your titles (All)

    <img src=/S/bravo.gif border=0 alt=bravo width=16 height=30> Good stuff, Drew, thanks for sharing! If I have some time I may try to add some functionality to this and post it back. I'd like to do the same with META and a few other header tags.
    -Mark

  3. #3
    4 Star Lounger
    Join Date
    Aug 2002
    Location
    Dallas, Texas, USA
    Posts
    594
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Adding keywords to your titles (All)

    There is a MetaTags collection for the WebFile object...just looked in the help files (told you I'm not familiar with the FP Object model! <img src=/S/grin.gif border=0 alt=grin width=15 height=15>).

    I'm not going to tell my boss, cause he's been spending a lot of time on the meta tags too! <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>

  4. #4
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Adding keywords to your titles (All)

    Amen, anything to keep the boss busy with things other than you! <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    -Mark

Posting Permissions

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