Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »General »Graphic Design and Web Design Help

Notices

Graphic Design and Web Design Help Get Graphic Design and Web Design related help here


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-08-2008, 07:04 AM
Junior Member
 
Join Date: Jul 2008
Gender: Male
Posts: 35
Default Help me out

Hi

I want to apply meta tags on wholesite at once can i from 1 page to all,or i have to do seperately on each page, is there any tool in dreamweaver to save time.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote

  #2 (permalink)  
Old 08-08-2008, 08:34 AM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 19,824
Default

You could make a meta template and reference it in the head using php but you would be just as quick just to add them to each page. The only benefit of having a template meta file is in the future you can update one file and it will update all the pages.

But make sure the meta template is written in php and not just strict meta code as the tags will be the same on each page otherwise.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 08-08-2008, 08:50 AM
PR Design's Avatar
CSS Wizardry
 
Join Date: May 2007
Location: Leeds, England
Gender: Male
Posts: 8,059
Default

Do a find/replace in DW, for example replace <head> with
<head>
<meta...>
...
...
__________________
CSS Wizardry | “Yeah, do maggots get drunk when they bury alcoholics?”
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 08-08-2008, 09:47 AM
Sam's Avatar
Sam Sam is offline
Junior Member
 
Join Date: Jul 2008
Location: Seattle, WA, US
Gender: Male
Posts: 26
Default

Assuming linux/apache, add this line to your .htaccess file (may vary depending on your php/apache config)
Code:
AddType application/x-httpd-php .html
I'm guessing you keep everything in a public_html folder, create a file called header.html in the public html folder, and put your shared header code in there.
HTML Code:
<meta name="keywords" content="your keywords" />
<meta name="description" content="your description" />
...
then, in every html page where you have the metadata, replace it with this line :
PHP Code:
<?php include ('/your/home/directory/public_html/header.html'); ?>
If you don't know your home directory, just wrap some gibberish in php tags and you can get the correct path from the error message it spits out. Also, if you're hosted with godaddy or one of their resellers you should be aware that they rotate their htaccess rules once an hour, so you'll have to wait an hour between testing the rules if something messes up.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 04:53 PM.



Estetica Design Forum's Privacy Policy
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0