Snippets - SNIP CSR Create Resource Entry.cst
11-02-2008
Downloads: 172
File size: 33.2kB
Views: 1,524
This snippet creates a resource element in a Community Server Resources XML file. This snippet is executed inline as a CodeSmith Template, which I activate with "CSR." The two parameters--template properties follow. A usage example would be
csr MyAreaTitle The_Big_Title
followed by Ctrl-E, Ctrl-E, which would produce
<resource name="MyAreaTitle">The Big Title</resource>
Notice that the snippet converts underscores in the element value to spaces.
Property Descriptions
ResourcePropertyName: Name of the Resource Element.
ResourcePropertyValue: Value of the Resource Element.
Please
sign-in to post a comment or question about this template or topic