Thanks Eero, I am a bit confused on handle URL parsing and on artilce/topic fetching.. how can you tell you're in a topic or an article from the url?
I was just supposing you have some sort of URL-Parsing system for mapping URLs to topics/articles, since without separate parser midgard URL matching only works for pages.
In general, make sure whatever fetches the topic/article (based on whatever criteria) does that before the style engine kicks in so you can call $metaKeyWords=$obj->parameter("META", "keywords"); before the style is processed.
btw, you can also have this for pages, call $obj=mgd_get_page($midgard->page); to get the page object and then do the parameter call to get the keywords.
/Rambo
how is the best way?? really confused :( Basically i want to genetate automatic meta tags when i am in either in a topic or article..
any help would be greatly appriciated.
Where would you take the data for the meta tags (I recommend parameters) ?
Anyways make sure you handle the URL parsin and article/topic fetching before style engine kicks in (ie in code-init), then when you have your topic or article, load the parameter for meta tags and put the data into variable ($metaKeyWords in this case), in your style add something like
---<snip>--- <head> <?php if ($metaKeyWords) { ?> <meta name="keywords" content="&(metaKeyWords);"> <?php } ?> </head> ---<snip>---
I hope I rememberd the keywords meta format correctly.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
