This is true, in this case though my main point was to help with getting through the original article. Other methods are fine to discuss of course. =)
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
January 24, 2008 11:00pm
Subscribe [14]#46 / Sep 09, 2009 12:41pm
This is true, in this case though my main point was to help with getting through the original article. Other methods are fine to discuss of course. =)
#47 / Sep 09, 2009 12:59pm
Thank you Lisa and Paul for your suggestions, I really appreciate them;
In my particular case (using an embedded header template), if I use the following code:
<head>
{exp:weblog:entries weblog="home|about" limit="1" rdf="off"
disable="categories|member_data|pagination|trackbacks|category_fields"}
<title>{title} - {weblog}</title>
<meta name="description" content="{ds_meta_description}" />
{/exp:weblog:entries}
</head>
I still get the “about meta description” even if I’m on the home page…
I found a good solution what Paul suggested, but only if I hardcode the meta:
{embed="path/_header" meta_description="my personal meta description here"}
if I want to include the custom field that comes with my custom field group:
{embed="path/_header" meta_description="{meta_description}"}I only get this result (from “view source”):
<meta name="description" content="{meta_description}" />Marco
#48 / Sep 09, 2009 1:00pm
Is your embed inside the weblog entries tag, Marco?
#49 / Sep 09, 2009 1:24pm
Is your embed inside the weblog entries tag, Marco?
...I’m completely speechless…
Grazie Lisa!
Bye
Marco
#50 / Jul 21, 2010 10:25pm
Hello everybody. Ive read Lisas article and wanted to ask few questions.
Up till now I was using hardcoded meta tag in an embed template. Now ive used the Meta tags metod and though everything works the way it should, i have problem visually confirming it.
Because, the current site im working on is a utf-8 encoded Turkish site. And though i have no problem with weblogs in the body tags, displaying as they should be, the one thats rendered in head tags seem not to be encoded with utf8. So the same content that seems ok in the body field seems gibberish in the head part. And this was not the case when the meta info were hardcoded in to the template.
As an example
<meta name='description' content='öğçşı' />becomes
<meta name='description' content='ö ğ ç ş ı ' />I have to underline that; though visualy its displeasing, google seems to recognize the written info no matter if its gibberish or not. However I would apriciate any solutions ont the matter
#51 / Jul 21, 2010 10:29pm
Hi, Aaron -
This is likely a character set issue. Can I ask you to please post this as a technical support thread? We have some experts on character set issues that will bring some of that expertise bear in that forum.
Thank you.
#52 / Jul 21, 2010 11:03pm
Ok , i did lisa thanks for the great article.
#53 / Jul 21, 2010 11:07pm
My pleasure, Aaron. Thanks for taking it over to technical support. =)