Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  HTML / Text Mo...  Token replace ModuleName not working
Previous Previous
 
Next Next
New Post 3/19/2008 10:09 AM
Unresolved
User is offline sobots
3 posts
10th Ranked


Token replace ModuleName not working 

Hi All,

I'm desperatly trying to insert a token to display ModuleTitle inside the content of Text/HTML module. As this blog http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/1547/Default.aspx seems to suggest all you have to do is put:

[Module:ModuleName]

But after i do that i receve this message

Error accessing [Module:ModuleName], Module is an unknown datasource

What is the problem?

This should be the most basic and widley used token

My DNN version is 4.08.01 and Text/HTML 04.06.01


Fedja Nikolic

Sobot Software

 
New Post 3/19/2008 2:18 PM
User is offline Sebastian Leupold
13694 posts
www.deutschnetnuke.de
1st Ranked












Re: Token replace ModuleName not working 

Hi Fedja,

you are right, this is an oversight. To fix this, please open /desktopModules/HTML/HtmlModule.ascx.vb in an text editor and look for

   Dim tr As New DotNetNuke.Services.Tokens.Tokenreplace()

(line 77). Simpy replace the text by

   Dim tr As New DotNetNuke.Services.Tokens.Tokenreplace(ModuleId)

and reload the page :-))


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  HTML / Text Mo...  Token replace ModuleName not working
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


ExactTarget Email Marketing Software and Solutions
ExactTarget delivers on-demand email software solutions for permission-based email marketing. ExactTarget offers solutions that meet the needs of all industry verticals and all size organizations, including SMB, corporate divisions, not-for-profits, large retail/direct marketers, agencies and enterprises.
ExactTarget.com
Sunset Hill Solutions - Consulting and Development
We offer general DNN consulting services - including custom module development and commercial module integration/setup.
www.sunsethill.ca
MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP