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...Administration ...Administration ...Token Replacement IssuesToken Replacement Issues
Previous
 
Next
New Post
2/25/2008 10:35 PM
 

Hi Sebastian,

Ok, I have been working on this again, thanks for the answers - they helped a lot.

Could you explain what this line does please - "Me.UseObjectLessExpression = True" (from Announcements module).

It would seem that you cannot run the message through 2 different types (which is what I was trying to do). I was trying to parse the Event tokens, and then later parse the User Token. This didn't work as the first parse removed all tokens (I am working around this but was a little confusing at first).

 


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
2/26/2008 4:59 AM
 

One more question ;)

 

Is there any more info on how caching works?

        public CacheLevel Cacheability
        {
            get { return CacheLevel.notCacheable; }
        }

When would I set something to cachable?

 


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
2/26/2008 5:26 AM
 

Rodney Joyce wrote

Hi Sebastian,

Ok, I have been working on this again, thanks for the answers - they helped a lot.

Could you explain what this line does please - "Me.UseObjectLessExpression = True" (from Announcements module).

It would seem that you cannot run the message through 2 different types (which is what I was trying to do). I was trying to parse the Event tokens, and then later parse the User Token. This didn't work as the first parse removed all tokens (I am working around this but was a little confusing at first).

Rodney,

UseObjectLessExpression does use a different regexp, allowing to use tokens w/o an object specified, like the skinnning tokens in Announcements module. Tokenreplace is a single pass component, you might exclude default objects by setting accesslevel to scope.NoSettings or try to exclude user by passing an anonymous user (id=-1) to the creator.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/26/2008 5:35 AM
 

Rodney Joyce wrote

One more question ;)

 

Is there any more info on how caching works?

        public CacheLevel Cacheability
        {
            get { return CacheLevel.notCacheable; }
        }

When would I set something to cachable?

I apologize, that we haven't found time for documentation yet.

For an explanation of CacheLevel there is minimal doculentation included in the source code.

CacheLevel is used to specify the cachability of a replaced string, and is calculated as minimum value of cachability of all replacement objects available.

notCacheable: replaced string cannot be cached or might expose a security risk. Example: User data

secureforCaching: replaced string can be cached, but might return inaccurate data, Example: current Time

fullyCacheable:  replaced string can be cached without limitations.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/26/2008 8:53 PM
 

Thanks for the info...


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Token Replacement IssuesToken Replacement Issues


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