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  |  

The best choice for your web site host, email hosting, and domain registration.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


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
13747 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.

 


SINA101
WANT A SPECial sIte iN TAIWAN?
sina101.com
Web Development and Strategy Firm
The Risdall Interactive Agency s websites, strategies, branding, & promotion in digital space.
www.Risdall.net/
Windsor Management Group
Fund Accounting Software for K12 Education.
Infinitevisions.com

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