SMF Support > SMF 2.0.x Support

Dynamic meta tags in SMF

(1/3) > >>

MoinFaraz:
Hello,

Please forgive me if this has been answered earlier.

I did some search and have read numerous threads, but none of them is recent.

I am looking to generate dynamic meta for my boards, threads, posts etc...

Currently, we have an option to specify meta under admin, but that looks like static.

I was looking at this code in index.template, and not sure what i should replace it with to make it autogenerate them.


--- Code: ---<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title_html_safe'], '" />', !empty($context['meta_keywords']) ? '
<meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', '
<title>', $context['page_title_html_safe'], '</title>';
--- End code ---

Any help would be much appreciated :)

MoinFaraz:
Anyone? BUMP! :p

MoinFaraz:
Bump!

Colin:
Sure we can help, but we need to know what dynamic content you want to replace it with.

MoinFaraz:

--- Quote from: Colin on May 11, 2012, 01:31:31 AM ---Sure we can help, but we need to know what dynamic content you want to replace it with.

--- End quote ---

When on homepage (index.php), it will use title and / or heading content in meta keyword and description

When on a board, it will use board name as meta keyword and board description as meta description

When viewing a topic, it will use title as keyword and a part of topic body as meta description...

Hope this makes sense, if not feel free to ask and i will explain more :)

Navigation

[0] Message Index

[#] Next page

Go to full version