Skip to main content
Participant
March 10, 2023
Question

How to create a style sheet with custom fields?

  • March 10, 2023
  • 2 replies
  • 434 views

I want to create a style sheet (like paragraph style, text style, table style, etc.) which will hold certain values of attributes (like name, width, etc.). These values will be stored in the database and will be given a UID.

I should be able to access these values using that UID. 

 

Is there a way to create this? If so, how can I code this?

Is this information present anywhre in the InDesign SDK?

This topic has been closed for replies.

2 replies

m1b
Community Expert
Community Expert
March 14, 2023

Hi @user2307, can you please explain in more detail? For example, give a step-by-step description of an imaginary implementation of what you want, so that we can understand better. Such as "1. Log-in to [some server], 2. select styles to import (like CC libraries?)." Explain where the UID comes into that process, or tell us which database entity has the UID?

 

I have no experience with the SDK, so I can't help with that, but I'm pretty certain that no-one can help much without much more information. Depending on your requirements, maybe a scripting solution could be effective. Or even using CC Libraries to organize your styles.

- Mark

user2307Author
Participant
March 15, 2023

Hi @m1b , there is a sample plug-in in SDK called PersistentList which does what I want but in object level. I want it to be done in document level. Is there a way to achieve that?

Please refer the plug-in "PesistentList".

m1b
Community Expert
Community Expert
March 15, 2023

According to this answer there is a demo file "basicpersistinterface" that shows how to store data in the document.

Otherwise, we will have to wait for someone with SDK knowledge. I've never used it and don't have it so I won't be any help I'm afriad. Good luck.

- Mark

Community Expert
March 14, 2023

I'm not too sure on SDK and UIDs!

Maybe @m1b