Apollo Software Normal layoutMedium LayoutLarge Layout    Normal TextLarge Text
Home | DotNetNuke | About ... | Downloads | Forum | Blog
United States Netherlands
Register | Login

Forum Tags

 
boolean   error   file   help   just   language   menu   mlhtml   module   modules   need   object   page   pagelocalization   problem   site   skin   string   version   work  

  

Need live support?

Please feel free to add my support e-mail address to your MSN contacts. If you catch me online, I'll be able to solve your problems faster than through this forum. Please appreciate that I only give free support on our own modules!

My msn account: support@apollo-software.nl. Alternatively, you can click the botton below, it will open up a Live Messenger window (Windows Live ID required)

  

New module based on your pagelocalisation
Last Post 2006-09-27 09:04:27 by erikvb. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
ojooris
New Member
New Member
Posts:5

--
2006-09-26 21:20:59  

Hi,

i made a module based on your  Apollo.DNN_Localization dll.  But now i would like this module to be available to all users, so also the ones who did not buy your module.

is there a way in asp.net to say something like this:

Dim Tab As object

if exists("Apollo.DNN_Localization.dll")  then
Tab  = LocalizeTab.getLocalizedTab(CType(PortalSettings.DesktopTabs(i), TabInfo))

Else
Tab = Tab.getTab(CType(PortalSettings.DesktopTabs(i), TabInfo))

endif

Thanks for your time

Olivier

 

erikvb
Advanced Member
Advanced Member
Posts:718
Avatar

--
2006-09-27 09:04:27  

Olivier,

If you do it like this, it should work:

        Private Function LocalizeTab(ByVal objTab As DotNetNuke.Entities.Tabs.TabInfo) As DotNetNuke.Entities.Tabs.TabInfo
            Try
                Dim objLocalization As Object 'Apollo.DNN_Localization.LocalizeTab
                objLocalization = System.Activator.CreateInstance("Apollo.LocalizationApi", "Apollo.DNN_Localization.LocalizeTab").Unwrap ' New Apollo.DNN_Localization.LocalizeTab
                Return objLocalization.getLocalizedTab(objTab)
            Catch exc As Exception
                Return objTab
            End Try
        End Function

(you might need to set Option Strict to OFF for your project though). This function will always return a TabInfo object, wether PageLocalization is available or not. All you need to do further on is to pass your original TabInfo object to this function, and you will get the localized in return...

cheers,

Erik

Erik van Ballegoij,
a view from my attic, my personal blog

The personal blog of Erik van Ballegoij

You are not authorized to post a reply.

Active Forums 4.1
NOT LICENSED FOR PRODUCTION USE
www.activemodules.com
  

Copyright 2002-2007 Apollo Software
Terms Of Use  |  Privacy Statement
Page generated in 1.3355886 seconds.