I am working on Dreamweaver TBB in SDL Tridion 2011.
Say my component has a field “aaa” with this content.
"hi hello <bbb name='abcd_efgh_ijkl'>MRJJJJ</bbb> how are you"
I want to write a DWT TBB such that i will produce the output as
"hi hello MRJJJJ how are you".
So I want to strip out some part of the Content in a field (here field name is aaa) when I render for display purposes.
I am new to this and got stuck here.
You could extract the value of that field and place it in your template package using either a C# Fragment or a Microsoft.NET Assembly TBB. You can then manipulate the value using C#, and output the modified value using DWT by using @@NameOfModifiedValueInPackage@@. The other suggestions of Function Sources or a different type of Mediator are equally valid. However, most projects require some sort of .NET TBB anyway, so this should not be much additional work.