Hot answers tagged

12

You need two DB Broker DB - It is configured in httpUpload and your Delivery website Session Preview DB - it will be used by Session preview service and this service is consumed by XPM. No separate db for XPM. This db will also configured in storage config of your website. HttpUpload and Odata.svc would be separate websites


10

Take a look at my blog post http://yatb.mitza.net/2013/07/a-java-service-oriented-architecture.html. It explains a Service Oriented approach to consuming OData content from a web-application using Java (namely OData4J). There is an example of the actual OData call.


10

We have worked on a Platform (very much famous and has been featured in many of SDL Tridion Shows as a case study) where we had more than 80 websites sharing data from same broker. And this has been implemented in SDL Tridion 2009. The approach was as below: Any data that needs to be fetched from broker is fetched by using a WCF service based on a specific ...


10

There are several ways to get to an item with oData. For example, a component presentation can be retrieved by entering through the /ComponentPresentations entity, but you can also get to it via the /Component entity with the $expand option, or via the CustomMetas entity via the $expand option. You also have the options to $filter and $orderby, both ...


9

Like you mentioned, the protocol is this: You make a post request to the access token end-point to get a token (you need to provide here your client_id and your client_secret as headers or as query parameters); You get an answer similar to this: {"access_token":"sometoken","expires_in":300}; 2.1 Worth knowing is that the token is url encoded and in UTF-8 ...


9

As you found out, the maximum number of results is 25 by default, and that is controlled via the cd_webservice_conf.xml file. You can turn the limit OFF completely, by setting it to 0 <DefaultTop>0</DefaultTop> But I strongly advise against this, as you don't know who the next developer is on your server, and whether he'll understand that ...


9

The Tridion oData web service is used to query content, not to insert content in the CMS. If I understand correctly your question, you would like to be able to retrieve the Keyword Metadata by querying the oData web service. This is possible by querying the CustomMetas oData entity with for example this C# Expression query in Linqpad http://www.linqpad.net/...


9

I'm not sure you have the right level of expectations there, as it seems that you would want Java/Eclipse to provide you the same benefits that Microsoft / .NET / LINQ provide when working with OData services. The webservice and its capabilities are exactly the same independently of the client you use - .NET, Odata4j, JayData - but the client itself will ...


8

Tridion Content Delivery does not expose the content fields, it exposes something called a "Component Presentation", which is the result of rendering the components with your Component Templates. A very common approach for fully dynamic application models (like DD4T) is to render the content of the component as structured data (using XML or JSON) and then ...


8

I'd say both are technically possible, although for the additional data you may have to store the data on your own if it isn't already available. You could do so with a publisher extension. It's definitely possible to create your own methods in the existing web service -- you just have to implement a couple of interfaces. We did that to expose Promotions ...


8

Found it (thanks to Andrey G @ SDL) The webservice ambient framework cartridge was commented out in cd_ambient_conf.xml. <Cartridges> <Cartridge File="cd_webservice_preview_cartridge.xml"/> </Cartridges>


7

OData is a self-descriptive service, meaning that if you look at http://blah.net/odata.svc/ you will see a list of entities that the service will return: The collection of entities you're interested in is the last one in the list above, i.e. 'Templates'. I think this is the query you're looking for: http://blah.net/odata.svc/Templates(PublicationId=18,...


7

Try the below OData query to get the Parent and Child keyword hierarchy details. /odata.svc/Publications(362)/Keywords/?$expand=Children,Parent This is one web service call and once you have the results, use LINQ to query for a specific keyword. The above using OData expand option to get Parent and Child node details. e.g; expand=Node1 --> expands ...


7

Do you get this message in all browsers? If it's just IE, you may just need to change the settings here: This was first explained in Nuno's article on setting up the oData Web Service here.


7

The problem turned out to be the pre-packaged WAR file missing the cd_preview_web.jar. Simply copy this Jar from the install location's lib folder to your app's deployment location.


7

Considering you want the component presentations your main query should be for that and then filter on the presence of specific custom metas like odata.svc/ComponentPresentations?$filter=(TemplateId eq 40) and (PublicationId eq 1) and (Component/CustomMetas/any(m: m/KeyName eq 'Rank' and m/StringValue eq 'A'))&$expand=Component/CustomMetas which should ...


7

It seems like I missed this step in the manual: <ExcludedPaths> <Path>/access_token.svc/</Path> </ExcludedPaths> In the ADF config file


7

The easiest way to find out the endpoint URL is to check the Windows environment variable on the CM server using the following PowerShell command: get-item env:tridion_ttm_serviceurl This should give a value such as: http://localhost:81/ttm201601 Here's some code that I used recently on my Tridion Sites 8.5 environment for getting the Client: ...


6

When you say "1 Broker per website" do you mean per publication or would several language publications of a website share 1 Broker? At the moment we're running 5 websites (language publications) on DD4T from a single broker - with CCS + DD4Ts caching + ASP.NET Output caching our site(s) are (were!) running pretty well - albeit its not a high demand website.


6

The max number of results to return is configurable in cd_webservice_conf.xml. It contains the element DefaultTop which controls this: <!-- OData specific settings. The default top value that will be used if the client doesn't specify one. The fixed publication id to use in the friendly URL, this allows only one publication to be queried through the ...


6

Tridion has a loosely coupled architecture that means that the CD side it not tight to the CM side, there is no information about the dynamic component path in the CD side. If it is necessary to use the path in your web application I would suggest to use custom metadata for it. There are few ways to do it. Add a path field in the metadata section of your ...


6

If you do not need to manage the product data as content in anyway (edit it, translate it, link to it, put it through workflow etc.) there is no reason to put it in a Content Management System like Tridion at all - particularly if it runs to thousands of items. Tridion just becomes a middleman sitting between your web application and Product Information ...


6

It depends on the roles you have installed in your system. In the HR2 comes all the jars that must be updated depending on your initial setup. It seems that you don't have UGC installed, then you don't need to include the ugc_webservice in your update. You can see this url (login required) to see the list of jars needed to be included, in case you have ...


6

I assume you know DD4T for Java is an MVC application (Spring MVC). It uses factories to read Tridion content and metadata and to transform it into DD4T class model. The factories work with different providers, which actually read the content/metadata from the Content Delivery database. One of such providers would be the OData provider. Now funny enough, ...


6

Session Preview is a feature of Experience Manager that allows editors to make, and then view, updates to content across multiple pages without having to continually check-in and republish the content. It also ensures that if Editor B updates (a different piece of content on) the same page that Editor A is working on, then this is also reflected in what ...


6

After going through all possible API's, I got a solution to retrieve component template based on component template names. Mainly you need to use ItemTitleCriteria to retrieving the component templates by names. Thanks to @NickoliRoussakov for the clue given. using (ItemTypeCriteria mItemTypeCriteria = new ItemTypeCriteria(32)) { using (...


6

Linking service is moved to root of the content service. You can access it like http://my.sdlweb8.server:86/linking For example to get Component link http://localhost:8081/linking/componentLink?sourcePageURI='<id>'&targetComponentURI='<id>'&excludeTemplateURI='<id>'....


6

You could create a (dummy) Page based on a Page Template which collects and renders the required CT metadata of all CTs (in JSON or XML format). Publishing the metadata of all CTs can be achieved by publishing that single (dummy) Page. Likewise, retrieving the metadata of all CTs can be achieved by requesting that single Page.


5

It looks like you need to brush up on your "read the documentation" skills. This functionality was added with Tridion 2011 SP1. Read all about it in this topic in Live Content "Forwarding Claims to a WebService" (login required). Short answer: yes, you can. How to do it is described in the documentation.


5

If you look at http://myserver.com/odata.svc/Keywords you'll see a linear collection of Keyword entities. Keywords that are nested within other Keywords (i.e. Children) will have a <link href=".../Parent" /> property point to the parent keyword, while any Keywords that have nested Keyword (i.e. Parents) will have HasChildren=true and <link href="......


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