PDA

View Full Version : How to create meta tags for each page separately?


Sxperm
12-31-2005, 02:53 PM
Hi, I've edited /templates/header.tpl by add line <meta tags> like normal html but its effect whole pages. I would like to create meta tags (keywords, descriptions) for each page separately, Is that possibily?

regards,
Sxperm

Newbie_from_Austria
01-11-2006, 06:33 PM
Hi Sxperm,

I have not already tested it but maybe that is what you are looking for: http://www.phplinkdirectory.com/forum/viewtopic.php?t=562

Hope it works for you!

Sincerely,
Wolfgang

Sxperm
01-17-2006, 05:47 PM
Thank you for your replied, I found that thread have something difficulty but I found better results way. You can change your title, meta keywords, meta description for each page!! every page differently!! It's easy but not nicely (hard work required) but I'll post it later. It's my bedtime
see ya :wink:
**sleepy

thompson
01-17-2006, 07:59 PM
Content visible to registered users only.

yes please post it. ;)

good night.

thompson
03-30-2006, 09:40 PM
can you post the code ? i´m really interested in.

anon
03-30-2006, 09:49 PM
Content visible to registered users only.
give an example of what type of content you want and to which tag.

discover
03-30-2006, 10:08 PM
id be interested in being able to have proper metas for each page that i can specifiy title, description and keywords

mikedippel
03-30-2006, 10:25 PM
I use this. Edit your header.tpl file

In your <head> area, use:
<title>{$smarty.const.DIRECTORY_TITLE}{$smarty.capture.ti tle|strip}</title>
<meta name="description" content="{$description}">

and somewhere at the end of your header.tpl file you can include:
<h1 id="title">{$in_page_title}</h1>
<p id="descr">{$description}</p>

The result is something like:
<title>Regional Directory - Reference </title>
<meta name="description" content="Directory listings of reference sites about any topic.">

and,
The Regional Directory
Reference
Directory listings of reference sites about any topic.

shows up in the top of the page listings.

anon
03-31-2006, 02:27 AM
not the most efficent means of diversity, mikey, but a resolution to what was requested nonetheless. :)

mikedippel
03-31-2006, 02:50 AM
The only thing that I did not address is keywords. I will slowly try to create the ability to add keywords to the listings and to each of the categories.

I have already created two keyword fields, one for the categories and one for the links. I added that field to the submission form, but I need to add it to the admin link edit page as well, and to the actual listing itself.

I won't be able to finish it until next week since I will be away this weekend, but this is something that I really think would be helpful both in giving more exact search results, and in getting the most appropriate Google ads in each category.

discover
04-01-2006, 04:49 PM
how to make the keywords meta and the title meta be just the category title and noit the directory name before it?

Kevuk2k
04-01-2006, 11:27 PM
Content visible to registered users only.

I'm actually having this mod developed by one of the best in the game and will be realeasing it to supporters of the script after I have tested it. The reason I will test is it is firstly that I'm paying for it and I want to ride my bike first :) and secondly that I will release it only after it is really put to the test and any fixes that may be needed will be done to avoid whining gits. :roll:

Will keep you all updated.

Kev