I seem to have trouble finding an answer to this, ...
# sdf
m
I seem to have trouble finding an answer to this, even though it seems like a simple google search should get me an answer: Is there a way to import advanced PDF/HTML templates into an SDF project? Not the XML definitions, but the actual source code so I can work on the HTML, CSS, and Freemarker needed for the template. I'm new to using the official SuiteCloud extension for VSCode and the Node CLI. I'm pretty sure I imported all objects and all files from each top-level folder in the file cabinet, but I seem to only have the XML definitions (the metadata/configuration) for each advanced template. Can you only import the metadata and the actual source code isn't supported? Or is there something I'm missing that'll allow me to import source code files?
1
m
Thanks @battk, I appreciate the link. Not sure how I missed that before. What I’m seeing still doesn’t quite match up with what that page says, though:
The template definition is also included when importing the
advancedpdftemplate
custom object into your SDF project.
[…]
For example,
custtmpl_paymentvoucher.template.xml
is the template definition for the custom object
custtmpl_paymentvoucher.xml
. The template definition file is located in the same objects folder as the advancedpdftemplate custom object file.
I’ve got all of the
advancedpdftemplate
XML definitions in my project, but none of the
.template.xml
template definitions. (I did a project-wide search for
.template.xml
and manually scanned over the files myself)
b
how did you import the object
m
Originally, I did: 1.
cmd+shift+p
2. "SuiteCloud: Import Objects" 3. select all object types 4. no filter 5. select all objects 6. "Yes" (import referenced files) I just re-did that process now specifically for
advancedpdftemplate
for step 3 to make sure that it was the same process I remembered from this morning, though, and now the templates are there after re-running. Thanks again for your help.