MX Kollection Forum :: Dynamic and meta keywords
This thread was displayed: 0 times
Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.
For more information about the affected products visit: www.interaktonline.com/Support/
Phil A
03-24-2008 18:25:05 GMT +2
|
Hi,
Can anyone explain to me how I can achieve dynamic title and meta keywords in my application using kollection? (Mx includes)
As it is now, these are more static.
|
|
|
WGN
03-24-2008 18:36:35 GMT +2
|
We do it by using the recordset information for the page we create and echoing it back in the correct meta tag area haven't been able to use MX Includes though.
|
|
|
Phil A
03-25-2008 14:04:54 GMT +2
|
Can you explain more clearly, WGN?
|
|
|
WGN
03-25-2008 14:19:32 GMT +2
|
send me an email at info@weblobalnet.net
|
|
|
WGN
03-25-2008 14:20:08 GMT +2
|
sorry
info@webglobalnet.net
|
|
|
George Vam
04-14-2008 22:31:16 GMT +2
|
You are correct, the Interakt 'Includes from List' does not provide for a way to generate dynamic meta tag information. However, there's an easy way to make your metatag information fully dynamic. First, create one or more recordsets that retrieve the values needed for your keyword/title/description meta tags. Next insert the appropriate field from your recordset into the meta tag's content attribute. If you want the meta tag content to include comma separated values (your keywords would be an example) place the following code within the head section of your page, substituting recordset and/or variable names if necessary:
<%
Response.Write("<meta name=""keywords"" c")
addComma = false
While NOT Recordset1.EOF
If addComma = true Then Response.Write(", ")
addComma = true
Response.Write(Recordset1.Fields.Item("field_name").Value)
Recordset1.MoveNext()
Wend
Response.Write(""">")
%>
The above code would generate the HTML for your meta tag with dynamically generated content from your database.
|
|
|
Phil A
05-05-2008 22:33:32 GMT +2
|
George could you explain further.
I'm using PHP.
|
|
|
jde
05-06-2008 12:42:20 GMT +2
|
An easier way that I do it - and it allows clients to fiddle with them in an admin area - is to place them in a table (I am doing this in PHP) with say a field for title, a field for description and a field for keywords.
The SQL happens before the page is mad eup by php so you can then put in something like this in the head:
<title><?php echo $row_Recordset1['PageTitle']; ?></title>
plus of course all the others. I have used this approach for a couple of years with no problems and I give an admin area to clients so they can go in and change the items in the db.
Hope it helps!
|
|
|