Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Custom FileType Images
Last Post 11/17/2010 4:35 PM by Chrickel. 8 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Chris Smith
New Member
New Member
Posts:68


--
10/18/2010 5:15 PM

Peter,

 

It would appear that custom FileTypes images are not rendering any longer. Some of these FileTypes have been in DMX for years and now no longer appear. Adding new FileTypes has the same result. Also, custom FileTypes do not appear in the FileType admin view for editing nor do they in File Upload controls dropdown list. Please advise.

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
10/21/2010 11:29 AM
This will be fixed in DMX 5.3.2
Chrickel
New Member
New Member
Posts:44


--
10/22/2010 9:07 AM
Hi Peter,

I just installed DMX 5.3.2 and it works! Really nice.
But now I'm afraid I have found a "hidden feature" aka bug in What's New 2.2.0:

It seems its omitting a leading slash for the Icon16 field in DMX_Extensions in generating the path for the image.
The img tag looks like:

src="https://www.bring2mind.net/technetDesktopModules/Bring2mind/DMX/images/Mail16.png" border="0"

...where technet is our site folder on the webserver.


-Chris
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
11/02/2010 5:01 PM
Hi Chris,

Thanks. I'll make a note of it.

Peter
Chrickel
New Member
New Member
Posts:44


--
11/15/2010 4:09 PM

As a workaround I replaced

IconHtml(Container, "DataItem.Icon16")

with this construction:

IIF(InStr(IconHtml(DataBinder.Eval(Container, "DataItem.Icon16")),"" )

and it works perfectly :-)

-Chris

Chrickel
New Member
New Member
Posts:44


--
11/15/2010 4:11 PM

Waaahhhh... code highlighting should be on highest priority :-)

Again the replacement:

IIF(InStr(IconHtml(DataBinder.Eval(Container, "DataItem.Icon16")),"[div"), IconHtml(DataBinder.Eval(Container, "DataItem.Icon16")), "[img src=" & Chr(34) & DotNetNuke.Common.ResolveUrl("~/" & DataBinder.Eval(Container, "DataItem.Icon16")) & Chr(34) & "]" )

...all rectangular brackets to be replaced with their corresponding > and < :-)

Chrickel
New Member
New Member
Posts:44


--
11/15/2010 6:31 PM

...and just found another issue in What's New:

Just because there's enough space, I switched from DataItem.Icon16 to DataItem.Icon32 - my custom icons show perfectly - the builtin icons do not show at all.
The img tag now shows "icon-16-file-adobe-acrobat-big-gif" instead of "/technet/File-Adobe-Acrobat-Gif" which was working perfectly in 16px...

Best

-Chris

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
11/16/2010 6:09 PM
Thanks Chris ... WhatsNew deserves an update it seems.

Peter
Chrickel
New Member
New Member
Posts:44


--
11/17/2010 4:35 PM

Hi Peter,

I just installed What's New 2.2.1 and icons are rendering now as expected.
But still the 32px versions don't :-(

-Chris

You are not authorized to post a reply.