Custom Dojo module for complex file links

Vote:
 

Hi

I'm trying to figure out how to write a custom dojo uihint module for a bit more complex file links with metadata but the documentation isn't really... well, it doesn't exist.

In my example I may have a file list looking like this

<ul>
	<li>
		<div>
			<a href="~/link/52977bf151dd414985ead1a54a073aa7.jpg">File name</a>
		</div>
		<div>
			File description
		</div>
	</li>
	<li>
		<div>
			<a href="~/link/404590e9cc3b4f9ab58ed88951ad1619.jpg">File name</a>
		</div>
		<div>
			File description
		</div>
	</li>
</ul>

The obvious and only way to store this would be in a serialized object similar to this

public class FileList
{
	public string File {get;set;}
	public string Name {get;set;}
	public string Description {get;set;}
}

I've also added a property inheriting from PropertyLongString and a descriptor inheriting from EditorDescriptor.

None of the above are any problems, writing the dojo module however is. Where does one even start since this is EPiDojo?

If there are any tutorials out there how to build a list that implements a filepicker and two meta fields I'd like to know about them :)

 

Thanks

#82619
Mar 17, 2014 12:00
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.