Upgrading to Naked Objects 5.0 - some icons not showing

Oct 10, 2012 at 10:12 AM

Hi there.

I am in the process up upgrading our application to MVC 4.

So far there are no major snags.

I notice, however, that the title is now always prefixed with the name of the entity in table and list views. How can I prevent that?

Oct 10, 2012 at 11:07 AM

Not sure how to post an image in this forum, so used a third party image host.

I have this in my entity.

		public string IconName ()
		{
			return "Person.png";
		}

When I delete the IconName method, then the default icon is rendered instead of the text "Individual".
So behavior seems a bit strange.
However, Person.png is in my run projects Content folder.

 

Coordinator
Oct 10, 2012 at 11:43 AM

Ah, yes.  Icons should now be in the Images folder (directly within the MVC project, not the Content folder.  This is a Microsoft change (with MVC 4) rather than ours.  When creating a new Naked Objects MVC project we install the generic icons into the Images folder, but you presumably copied your icons across from the previous project

(I'll rename this discussion thread, to help anyone else seeing this issue).

Oct 10, 2012 at 11:56 AM

Ok thanx.

However, your manual still specifies they should be in the Content folder. :)

Coordinator
Oct 10, 2012 at 8:43 PM

"your manual still specifies they should be in the Content folder."

Sorry about that  -  I thought I'd done a thorough update of the documentation, but must have missed that one.  I'll fix it.

Oct 11, 2012 at 5:59 AM

No hassle at all. :)