Custom Data Handlers and v4 of Glass

46 views
Skip to first unread message

Thomas Paterno

unread,
Jun 12, 2015, 8:05:13 PM6/12/15
to glass...@googlegroups.com

I upgraded to Glass Mapper v4. I encountered: https://github.com/mikeedwards83/Glass.Mapper/issues/135

I then download the latest version of Glass from the develop branch on Github.

I have two custom data handlers. Neither works.

  1. I use the Monoco Link list field as shown in this blog: http://www.seanholmesby.com/sitecore-glass-mapper-data-handler-for-a-link-list-field/

The link list field now throws: https://groups.google.com/forum/#!topic/glassmapper/d7AXsl6pW5E
I am at a loss about how to proceed.

  1. I have a custom data handler for legacy Internal Link fields. This class does not throw an exception. Glass simply fails to map the data. I re-factored the GlassMapperScCustom.cs as shown here: http://www.glass.lu/Mapper/Sc/Documentation/UpgradingToV4

I added Sitecore Diagnostic Log message to the GetFieldValue and SetFieldValue methods of the class. The methods are never executed.

Any help is appreciated. Regards.

Tom

Michael Edwards

unread,
Jun 15, 2015, 11:57:39 AM6/15/15
to Thomas Paterno, glass...@googlegroups.com
Hi Thomas, 

I think we had a mistake in our documentation, can you see this issue:

https://github.com/mikeedwards83/Glass.Mapper/issues/145

Mike

--
You received this message because you are subscribed to the Google Groups "Glass.Mapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glassmapper...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thomas Paterno

unread,
Jun 15, 2015, 3:56:39 PM6/15/15
to glass...@googlegroups.com, tom.p...@xlgroup.com
Thanks Mike, you are the man!

Michael Edwards

unread,
Jun 15, 2015, 4:01:09 PM6/15/15
to Thomas Paterno, glass...@googlegroups.com

I am glad it fixed it. I should have checked my documentation.

Reply all
Reply to author
Forward
0 new messages