Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Upgrading to Dnn5 wrong page icon referenceUpgrading to Dnn5 wrong page icon reference
Previous
 
Next
New Post
12/13/2009 11:19 PM
 

Reported at issue 11228 - I can confirm the problem exists with DNN 5.2.

I also suggested a fix in a different forum post:

  ALTER VIEW dbo.{objectQualifier}vw_Tabs
  AS
    SELECT    
        T.TabID,
        T.TabOrder,
        T.PortalID,
        T.TabName,
        T.IsVisible,
        T.ParentId,
        T.[Level],
        CASE WHEN I.FileID IS NULL THEN T.IconFile
             ELSE '~/' + P.HomeDirectory + '/' + I.Folder + I.FileName
        END AS IconFile,
        CASE WHEN L.FileID IS NULL THEN T.IconFileLarge
             ELSE '~/' + P.HomeDirectory + '/' + L.Folder + L.FileName
        END AS IconFileLarge,
        T.DisableLink,
        T.Title,
        T.Description,
        T.KeyWords,
        T.IsDeleted,
        T.SkinSrc,
        T.ContainerSrc,
        T.TabPath,
        T.StartDate,
        T.EndDate,
        T.Url,
        CASE WHEN EXISTS (SELECT  1 FROM dbo.Tabs T2 WHERE T2.ParentId = T.TabId) THEN 'true' ELSE 'false' END AS HasChildren,
        T.RefreshInterval,
        T.PageHeadText,
        T.IsSecure,
        T.PermanentRedirect,
        T.SiteMapPriority,
        T.CreatedByUserID,
        T.CreatedOnDate,
        T.LastModifiedByUserID,
        T.LastModifiedOnDate
    FROM dbo.{objectQualifier}Tabs AS T
        LEFT JOIN dbo.{objectQualifier}Portals AS P ON P.PortalID = T.PortalID
        LEFT JOIN dbo.{objectQualifier}Files AS I ON I.FileID = CASE WHEN LEFT(LOWER(T.IconFile), 7) = 'fileid=' THEN CAST((RIGHT(LOWER(T.IconFile), LEN(T.IconFile) - 7)) AS int) ELSE -1 END
        LEFT JOIN dbo.{objectQualifier}Files AS L ON L.FileID = CASE WHEN LEFT(LOWER(T.IconFileLarge), 7) = 'fileid=' THEN CAST((RIGHT(LOWER(T.IconFileLarge), LEN(T.IconFileLarge) - 7)) AS int) ELSE -1 END
 
New Post
1/18/2010 5:54 AM
 

Hi Sebastian,

Where is that option set? I can't see it: neither in Site nor Host settings. When I go into file manager, the images folder does not appear, even though it exists on the server. All other folders below the relevant portal root are displayed.



Paul Taylor
Dotcom Software Solutions Ltd
DotNetNuke, ASP.NET and SQL Server Development
 
New Post
1/18/2010 6:14 AM
 

file manager does not display /images folder, only associated /portals subfolder.

In DNN 5.1+ above the file selector, there is an option group to specify appropriate location.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/18/2010 3:06 PM
 

Hmm. Found that if I used the Synchronise Files button, the images (and other) folders became visible. Not sure if it's supposed to work like that (nor why), but there we are.



Paul Taylor
Dotcom Software Solutions Ltd
DotNetNuke, ASP.NET and SQL Server Development
 
New Post
4/22/2010 3:22 AM
 

Synchronize files didn't do the job for me with DNN 5.4.0 - the problem still exists for non-root portals.

DNN 5.4 has a new view definition, so you'll need to use the updated script below:

ALTER VIEW {databaseOwner}{objectQualifier}vw_Tabs
AS
    SELECT    
        T.TabID,
        T.TabOrder,
        T.PortalID,
        T.TabName,
        T.IsVisible,
        T.ParentId,
        T.[Level],
        CASE WHEN I.FileID IS NULL THEN T.IconFile
             ELSE '~/' + P.HomeDirectory + '/' + I.Folder + I.FileName
        END AS IconFile,
        CASE WHEN L.FileID IS NULL THEN T.IconFileLarge
             ELSE '~/' + P.HomeDirectory + '/' + L.Folder + L.FileName
        END AS IconFileLarge,
        T.DisableLink,
        T.Title,
        T.Description,
        T.KeyWords,
        T.IsDeleted,
        T.SkinSrc,
        T.ContainerSrc,
        T.TabPath,
        T.StartDate,
        T.EndDate,
        T.Url,
        CASE WHEN EXISTS (SELECT  1 FROM {databaseOwner}{objectQualifier}Tabs T2 WHERE T2.ParentId = T.TabId) THEN 'true' ELSE 'false' END AS HasChildren,
        T.RefreshInterval,
        T.PageHeadText,
        T.IsSecure,
        T.PermanentRedirect,
        T.SiteMapPriority,
        CI.ContentItemID,
        CI.Content,
        CI.ContentTypeID,
        CI.ModuleID,
        CI.ContentKey,
        CI.Indexed,
        T.CreatedByUserID,
        T.CreatedOnDate,
        T.LastModifiedByUserID,
        T.LastModifiedOnDate
    FROM {databaseOwner}{objectQualifier}Tabs AS T
        LEFT OUTER JOIN  {databaseOwner}{objectQualifier}ContentItems AS CI ON T.ContentItemID = CI.ContentItemID
        LEFT JOIN {databaseOwner}{objectQualifier}Portals AS P ON P.PortalID = T.PortalID
        LEFT JOIN {databaseOwner}{objectQualifier}Files AS I ON I.FileID = CASE WHEN LEFT(LOWER(T.IconFile), 7) = 'fileid=' THEN CAST((RIGHT(LOWER(T.IconFile), LEN(T.IconFile) - 7)) AS int) ELSE -1 END
        LEFT JOIN {databaseOwner}{objectQualifier}Files AS L ON L.FileID = CASE WHEN LEFT(LOWER(T.IconFileLarge), 7) = 'fileid=' THEN CAST((RIGHT(LOWER(T.IconFileLarge), LEN(T.IconFileLarge) - 7)) AS int) ELSE -1 END
GO

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Upgrading to Dnn5 wrong page icon referenceUpgrading to Dnn5 wrong page icon reference


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out