Hot answers tagged

6 votes

Using multiple custom meta data keyword Criteria in a single query as LIKE operators

@Kris, I am assuming you have custom meta value as a comma separated string. You can use SQL like pattern %% to match the value. So your custom meta value criteria should be like: ...
Mukesh Kumar's user avatar
  • 4,074
5 votes

How to find pages using query criteria by last publish date?

Just a little enhancement to the accepted answer given by Hiren above.... Presumably, you're not looking for the exact date and time (including the exact second!) that an item was published, so you'...
Jonathan Williams's user avatar
4 votes
Accepted

Pushing custom Page metadata during publishing

Something like this was done before through the use of a Metadata Processor extension in CWA and the Tridion Delivery Framework, where the additional data was made available as part of the item and ...
Bart Koopman's user avatar
  • 29.6k
4 votes
Accepted

Query news component at WEB 8

I don't see that the ComponentPresentationFactory has any methods which accept an array of component IDs that would return you multiple ComponentPresentations. There are two methods which accept a ...
David Forster's user avatar
2 votes

Tridion Query Criteria AND + OR

So, I went back to my good old SQL Server, started Query Profiler on the Tridion DB and found my answer. When using multiple search terms, the SQL IN operator is used, and the Tridion Criteria.Like ...
maurocam's user avatar
  • 233
2 votes

Issues while querying Number type metadata fileds through JSP content broker query API

In general, the datatype Float has limited precision; it has a huge range, but it is not possible to represent every integer value within that range. So, in general, exact matches on float values are ...
Rick Pannekoek's user avatar
2 votes
Accepted

Given a TCM ID, how do I get that Component?

See DefaultContentProvider.PopulateDynamicList for an example of how to build DXA Entity Models out of a list of Component TCM URIs. Indeed, the first part of the solution is to get Component Meta. ...
Rick Pannekoek's user avatar
2 votes

How Could I search in Solr query inside a schema field a Date Type of CMS?

please refer to the Link for the solution to query based on the field.
Anand N S's user avatar
  • 1,926
1 vote

NumberFormatException in Content Service

SDL Provided a hotfix to us to resolve this issue. The hotfix was: CD_8.5.0.17761 and we confirmed that it resolved our issue.
Nicholas Wetmore's user avatar
1 vote

NumberFormatException in Content Service

I have seen this type of problem before. In our case the problem was due to schema changes. When a schema metadata field data type has been changed you must update all components using the schema ...
Chris Mills's user avatar
  • 2,221
1 vote

Retrieve page or pages that contain certain component on the component presentation list

What have you tried so far? I'm asking because this question is a "do my homework instead of me" type, so there is little chance that someone will write your code instead of you. Best we can do is ...
Atila Sos's user avatar
  • 6,280
1 vote

Retrieve page or pages that contain certain component on the component presentation list

I’m a bit confused by your comment “this is going to be on a TBB and run at the runtime. This code won’t run at the rendering time.” In general, TBB code runs at rendering time. And the reason why ...
Rick Pannekoek's user avatar
1 vote
Accepted

How to read linked Components TCM URI's from custom meta of a Component

It works , i got the solution :) ComponentPresentation cp = cpf.GetComponentPresentation(uri, templateUri); // check if component presentation is published to the broker if (cp != ...
Neelesh Raghuvanshi's user avatar
1 vote

In DXA site query a list of Components using the Content Query Schema

The predefined Content Query schema, associated ContentList View Model, ListController and DefaultContentProvider.PopulateDynamicList are currently functionally quite limited. However, they do ...
Rick Pannekoek's user avatar
1 vote
Accepted

Broker Query with sort criteria over optional field

Not sure, if you have already found the answer. A workaround would be not to include the optional field in the search criteria. ComponentFactory cpf = new ComponentFactory(); Query query = new Query();...
Anupam Baksi's user avatar
  • 1,690

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