Hot answers tagged

5

Try adding a customMeta under the filter section: customMeta: { key: "ishtype.object.value", value: "ISHIllustration" } You may also be able to do this in code, using the Public Content API (PCA) client. Something like this: var client = ApiClientFactory.Instance.CreateClient(); InputComponentPresentationFilter inputFilter = new ...


5

The GraphQL result sorting currently supported the following fields only, It's possible to extend GraphQL extension in sites 9.1. CREATION_DATE INITIAL_PUBLISH_DATE ITEM_ID ITEM_TYPE LAST_PUBLISH_DATE NAMESPACE_ID OWNING_PUBLICATION_ID PUBLICATION_ID TITLE UPDATED_DATE Example: { items( filter: { customMeta: {scope: Item, key: "mykey", value:...


4

Hotfix CD_11.0.0.13730.zip is now available for this issue (via FTP or it can be requested from Support as well).


4

GraphiQL comes "out of the box" with Tridion. If you can locate your api endpoint, just add /graphiql and you should find that it works. So for example, on my local test setup, the API is at http://cd.local:8081/cd/api and graphiql is at http://cd.local:8081/cd/api/graphiql You can use GraphiQL straight from the browser but you'll need to arrange for OAuth ...


3

Well, I did some PoC in the past on this topic, you can read more about this, and to answer your question YES, you can have PCA api working with WEB 8.5. You need to follow below steps. Create new Broker and state_store DB with Tridion Sites 9 DB scripts. Install Sites 9 Discovery,Deployer and Content service. Create new Topology Type and mappings and map ...


3

added InputSortParam inputSortParam = new InputSortParam(); inputSortParam.setOrder(SortOrderType.Ascending); inputSortParam.setSortBy(SortFieldType.LAST_PUBLISH_DATE); this fixed the problem. based on error i figured out both fields order and sortBy on are required InputSortParam.


3

Unfortunately, the DD4T JSON (or DXA R2 JSON for that matter) is basically just a blob of text for the Content Service. Indeed, the GraphQL Content Service provides a feature to return JSON content as JSON within the GraohQL result (rather than an escaped JSON string), but that is as far as it goes; it is not really structured data which can be filtered or ...


3

I get similar results in my Sites 9 setup. It could be a bug because I also cannot filter on keyword title, only on keyword key. However you can request the Keyword key to be part of the response: { categories(namespaceId: 1, publicationId: 5) { edges { cursor, node { itemId, title, itemType, children { edges { cursor, ...


2

It works for me, I'm able to reproduce this issue my side. if the graphql query used variables in parameters then always expected to send the value of the query variables to be {}. if we pass query variables value to be null then this issue occurs. Expected Request: {"query":"query myquery($uri: String = \"tcm:5-394-64\") \n{ \n page (cmUri:$uri) {\...


2

Rick already answered to clarified. Indeed!, there is no OOTB way to retrieve individual components fields values of published DCP and page JSON outputs, but It's possible to do a Graph-QL extension using the ‘CDGraphQLSchemaExtension’ extension point. This is available in Sites 9.0 but with limited support as it is currently not documented. It will fully ...


2

Saurabh - I believe you can filter on schema ID or Title too? schema: { title: SCHEMA_TITLE }


2

Per the error and this example in the documentation, the argument contextData.type probably isn't a valid ClaimValueType. Perhaps you meant type: STRING instead of type:"STRING"?


2

AFAIK - and I can say officially it is not supported and tested, but I can’t think of anything which would break it. this is all unofficial Note: As long as you don’t have SmartTarget in there, as in 8.5 SmartTarget was the Fredhopper version. From Sites 9.0 - officially we support CM's first upgrades. On the positive side, the java version on 8.5 and 11.0 ...


2

The error shown in the logs says 'could not locate the root of the configuration'. Could this have anything to do with this (I know it's a different version, but the issue might still apply to 9.1) https://gateway.sdl.com/CommunityKnowledge?articleName=000005260


1

you can try to delete all configuration without parent item, Only the DefaultEnvironment should have no parent. Query for the same would be like this. ""delete from CONFIGURATION_VALUE where ITEM_ID in (select ID from CONFIGURATION_ITEM where ID not in (select LINKED_ITEM_ID from CONFIGURATION_ITEMS_LINKS) and ID != 'DefaultEnvironment') delete from ...


1

The error is caused by the fact that customMeta/valueType = null


1

There are two different types of component presentations, dynamic and embedded. Embedded templates are used when a component is added to a page and published only in the context of that page. Dynamic means that the component can be published out to the broker, where it can exist as its own entity without the context of a page Since you're saying it shows up ...


1

As noted in below KB article, a page(...) query and a componentPresentations(...) query can be used to fetch needed component presentations and then combine results on client. It is possible to filter by page url only on the page(...) query and there is no filtering on the containerItems child element. But it would be possible to filter on ...


Only top voted, non community-wiki answers of a minimum length are eligible