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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryItemIDItemID
Previous
 
Next
New Post
3/12/2008 5:29 PM
 

I also just noticed that [TITLE] actually inserts a span tag and not just the text... is there any way to make the tokens just insert the text and not any markup?  I need this for some javascript templating work I am trying to do... am I doing something wrong...

When I insert [TITLE] I just need the TITLE.. not any markup.. make sense?

 
New Post
3/12/2008 5:48 PM
 

[FILEURL] and [IMAGEURL] will give you the raw URL to the file and image respectively.

there's no way to get the title in "raw" format without doing a little javascript coding. You might be able to use [TITLE] in a javaascript function, then strip out the markup on the client side.

 
New Post
3/12/2008 6:25 PM
 

Any chance we can get alternate tokens to supply the value without the markup around them?
Is the source for the latest build anywhere where we can see it?

Thanks

 
New Post
3/12/2008 11:48 PM
 

I have looked into doing this... as far as I can tell there isnt a way to do it client side either.... the reason is that the class has " in it and this is causing me problems because I cant escape it because I cant control what is being written by the token.. which of course if I could do that we would be having this conversation... : )

Any help you can offer is greatly appreciated... I think that tokens like [TITLE-RAW] [PERMALINK-RAW] would be an excellent addition to this module.. at the moment I can work around the PERMALINK but I cannot get around the title and this is making it very difficult to continue using the module for this project.

Thanks

 
New Post
3/13/2008 12:48 AM
 

 

 

I think this is the code that needs to be added in Repository.vb the trouble is I have never actually built a module in DNN... anyone know how to setup a dev machine so I can build the repository module?  This shouldnt be a complicated change... I just cant seem to get the module to build... this goes in the Repository.ascx.vb page in teh case statement to work with the tokens... I obviously cant test this... can anyone advise how to download and test

 

Thanks

 

Case "TITLE-RAW"
Dim strTitle As String = objRepository.Name.ToString()
objPlaceHolder.Controls.Add(New LiteralControl(strTitle))
Case "PERMALINK-RAW"
Dim strPermalink As String
strPermaLink = DotNetNuke.Common.ApplicationPath & "/Default.aspx?tabid=" & TabId & "&id=" & objRepository.ItemId.ToString()
objPlaceHolder.Controls.Add(New LiteralControl(strPermalink))

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryItemIDItemID


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