Emmm of course I can grab the current content type from stobj.typename and then do stuff etc :) Thanks, case closed.
Op maandag 4 maart 2013 13:56:03 UTC+1 schreef Marco van den Oever het volgende: > > Ok that's awesome, thanks both for helping out :) > So am I right that for each item you have you need to put in the meta data > manually, and for existing items before creation of the meta data > properties create some script that will update them with the desired values? > > Op maandag 4 maart 2013 13:26:15 UTC+1 schreef Chris Kent het volgende: >> >> Marco, >> >> You will need to extend each content type you want to manage SEO meta >> data for and add the properties for >> extendedMetaData and metaKeywords if they do not already exist. Copy >> these from dmHTML in core. >> >> Then check and amend your displayHeaderStandard.cfm to include somehting >> like the following: >> <cfparam name="stParam.pageTitle" default="#stobj.label#"> >> <cfparam name="stParam.metaTitle" default="#stobj.label#"> >> <cfparam name="stParam.extendedMetaData" default="some default text"> >> >> <title>#application.config.general.sitetitle#: #stParam.metaTitle# >> </title> >> <cfif structKeyExists(stObj, "extendedMetaData") AND len(trim(stObj. >> extendedMetaData))> >> <meta name="description" content="#trim(stObj.extendedMetaData)#" /> >> <cfelse> >> <meta name="description" content="#trim(stParam.extendedMetaData)#" /> >> </cfif> >> <cfif structKeyExists(stObj, "metaKeywords") AND len(trim(stObj. >> metaKeywords))> >> <meta name="keywords" content="#trim(stObj.metaKeywords)#" /> >> </cfif> >> >> >> >> Chris. >> >> On Monday, 4 March 2013 12:04:54 UTC, Marco van den Oever wrote: >>> >>> Yes, but I need to be able to set keywords / description for content >>> type items (dmNews). >>> >>> Op maandag 4 maart 2013 01:08:29 UTC+1 schreef AJ Mercer het volgende: >>>> >>>> With Pages (dmHTML), when editing, you will see a 'SEO' section - it is >>>> in there >>>> >>>> >>>> On 4 March 2013 07:43, Marco van den Oever <[email protected]>wrote: >>>> >>>>> What is the correct way to set meta keywords & description for a type >>>>> item that's viewed? >>>>> >>>>> Thanks. >>>>> >>>>> -- >>>>> You received this message cos you are subscribed to "farcry-dev" >>>>> Google group. >>>>> To post, email: [email protected] >>>>> To unsubscribe, email: [email protected] >>>>> For more options: http://groups.google.com/group/farcry-dev >>>>> -------------------------------- >>>>> Follow us on Twitter: http://twitter.com/farcry >>>>> --- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "farcry-dev" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> *AJ Mercer* >>>> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org >>>> community="Open" /> <http://webonix.org> >>>> http://twitter.com/webonix >>>> Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/> >>>> >>> -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry --- You received this message because you are subscribed to the Google Groups "farcry-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
