Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Thanks for sharing this, very complete and equally useful.
Couple of suggestions for improvement would be;
a) allow walking up the tree if no seofields defined on the currentpage, by using CurrentPage._seoFields
if seofields not field on given page (say news/events page where editor dont usually fill each and every single one) it throws error such as
'string' does not contain a definition for 'noseo'
Line 9: {
Line 10:
Line 11: if(seo.noseo == null || seo.noseo == false)
Line 12:
Line 13: {
b) allow the "Static Title" to be selectable in the property - for completeness
Cheers!
Hi Keilo,
Thank you so much for trying and for the great feedback. I will change the example code as per your suggestions to:
var seo = CurrentPage._seoFields; if(!IsNullOrEmpty(seo))
This removes the error that you were getting.
Lastly - "Static Title" I was not and I am still not sure how to implement this. When it comes to me I will ammend :-)
Thanks once again :-)
Luke
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Thanks!
Thanks for sharing this, very complete and equally useful.
Couple of suggestions for improvement would be;
a) allow walking up the tree if no seofields defined on the currentpage, by using CurrentPage._seoFields
if seofields not field on given page (say news/events page where editor dont usually fill each and every single one) it throws error such as
'string' does not contain a definition for 'noseo'
Line 9: {
Line 10:
Line 11: if(seo.noseo == null || seo.noseo == false)
Line 12:
Line 13: {
b) allow the "Static Title" to be selectable in the property - for completeness
Cheers!
Hi Keilo,
Thank you so much for trying and for the great feedback. I will change the example code as per your suggestions to:
This removes the error that you were getting.
Lastly - "Static Title" I was not and I am still not sure how to implement this. When it comes to me I will ammend :-)
Thanks once again :-)
Luke
is working on a reply...