Hello.
I am trying to write a CS Module that will take a TextPart and turn it into a link. The problem is that, if I declare a TextPart as below
[tags: Linq, C#]
the TextPart is not recognized. If I do not use the # symbol, the TextPart is recognized. I believe that the # symbol is not the only character that crashes the parser.
Is there any workaround for this? I am running CS 2.1 SP2 on top of ASP.NET 2.0.
Thank you
Hi aghiondea,
Unfortunately, unless you want to get your hands dirty, the issue is in the code and would require a recompile.
If you look at the source of TextPartManager (line 235), you'll see there's a hardcoded regular expression which allows for alphanumeric characters and only a handful of others.
Hope that helps...
One is glad to be of service...
Hi Jose!
Thank you for your answer. I would not mind a recompile on my machine, but if I want to be able to distribute the CSModule, others might not want to do a recompile. Is this behavior going to change? Do you plan on removing the hardcoded regex from the code and into a config file?
Thank you,
Hi Jose.
I found another way of doing what I wanted (to create links to external categories sites based on post categories) and I was wondering how to post this module on the CS site for public use. Can you provide some information regarding the procedure of publishing a CS Module?
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com