Questions tagged [code-generation]
Question related to use of Code Generation tools such as TDS or Leprechaun to Item and Template create model classes
7 questions
1
vote
1
answer
83
views
Leprechaun custom field mapping not working, always outputs field type as string
I'm using Leprechaun for code generation and the custom field mapping I'm trying to implement isn't working. The field is generated as type String in every case, so I know the custom mapping is ...
0
votes
1
answer
300
views
Code generation in Sitecore 10.2 apart from TDS [closed]
Recently we have upgraded Sitecore to 10.2. For code generation we have implemented 'Leprechaun' and code is being generated fine. But I want to know if 'Leprechaun' is recommended by Sitecore. If no, ...
2
votes
1
answer
354
views
Could not find a part of the path in TDS
I am trying to sync items in TDS during sync some items I am getting this error.
Could not find a part of the path
'D:\Projects\WebsiteProject\TDS\Intranet\TDS.Master.Templates\sitecore\templates\...
2
votes
1
answer
217
views
Passing Code Generation Properties to TDS T4 templates
I want to pass some additional parameters to my T4 code generation templates in my TDS projects. In the TDS Projects Code Generation properties tab, there is a field for passing additional code ...
1
vote
0
answers
201
views
How do I configure Leprechaun field/type mapping at a feature level?
I've added the below configuration to a CodeGen.config file at the Feature level. The code is generated and put into the feature Template.cs file, but the mapping I've added isn't picked up. If I add ...
1
vote
1
answer
313
views
What should my Leprechaun Configuration look like in a non-Helix project?
I'm trying to configure Sitecore Leprechaun to generate Glass models for my project, but no matter what I do, I can't seem to get it to work.
My project folder structure looks like:
/sitecore
/...
1
vote
1
answer
410
views
TDS Re-Generate Code only for one target Item
TDS allows to Re-Generate Code for all Items by clicking appropriate TDS project in VS Explorer. This process also is executed during item creating/changing (any synchronization stuff).
Question - ...