Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How are SPS-generated primary keys configured for the SPS Content Administrator?

0
Posted

How are SPS-generated primary keys configured for the SPS Content Administrator?

0

To configure an SPS-generated primary key, simply change the method to “SPS” and omit the description of the primary key from the set of s. For example,

NAME=Contacts … PRIMARY_KEY=contactId DB_TABLE_NAME=Contacts PRIMARY_KEY_GENERATE=SPS INDEX_SQL=SELECT contactId, lastName FROM Contacts ORDER BY lastName …
The Contacts table will automatically generate a new, invisible identifier for each contact; this will allow users to enter multiple contacts with the same name. Since the primary key is automatically generated, there is no need to create a section for it; it will be invisible in the SPS Content Administrator. How do I configure primary keys for the SPS Generator Primary keys are used in the SPS Generator mainly for file naming. In each module, simply enter a line listing the primary key field, i.e. NAME=MyModule … PRIMARY_KEY=contactId … This field (contactId, in the example) will then be used to generate unique page names

0

To configure an SPS-generated primary key, simply change the method to “SPS” and omit the description of the primary key from the set of s. For example,

NAME=Contacts … PRIMARY_KEY=contactId DB_TABLE_NAME=Contacts PRIMARY_KEY_GENERATE=SPS INDEX_SQL=SELECT contactId, lastName FROM Contacts ORDER BY lastName …
The Contacts table will automatically generate a new, invisible identifier for each contact; this will allow users to enter multiple contacts with the same name. Since the primary key is automatically generated, there is no need to create a section for it; it will be invisible in the SPS Content Administrator. How do I configure primary keys for the SPS Generator Primary keys are used in the SPS Generator mainly for file naming. In each module, simply enter a line listing the primary key field, i.e. NAME=MyModule … PRIMARY_KEY=contactId … This field (contactId, in the example) will then be used to generate unique page names

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123