Hot answers tagged

10 votes

Schema Hiding while creating the component

To hide schema from specific users or groups, place them in a folder and apply security which reduces the read permissions to specific groups. When the drop down is generated in the create component ...
user avatar
10 votes
Accepted

CME error when saving components with required metadata

It appears that having a keyword field in the metadata of a component causes this problem after HR1. Hotfix CME_2013.1.1.88649 available https://www.sdltridionworld.com/downloads/hotfixes/...
user avatar
9 votes
Accepted

Component's schema missing values using CoreService

In your screenshot, notice how the "Content" attribute is null. For each component, you need to call: ComponentData component = (ComponentData)coreServiceClient.Read( ...
user avatar
8 votes
Accepted

How to Query Schema and where it is used in Tridion

The first thing that strikes me about your question is that there is already a tool to do most if not all of those things - The Content Manager Explorer! "Don't re-invent the wheel!" (just playing ...
user avatar
8 votes

Error when synchronizing a component against a schema with optional embedded fields which have mandatory embedded fields

In SDL Tridion 2013 (SP1), the same error persists when you try to send the same structured content via the Translation Plugin. To fix (in Translation Manager) we used the hotfix TT87682 part of the ...
user avatar
8 votes
Accepted

how to Limit a Schema to a particular folder?

The nearest to an out of the box solution you have available is described by Alvin in the comments - and as Alvin indicates - it's not a good solution. You could interact with the Event System and ...
user avatar
8 votes
Accepted

How to get schema's where used list?

CoreService: var list = ClientAdmin.GetList("tcm:1-1-8", new UsingItemsFilterData()); var listXml = ClientAdmin.GetListXml("tcm:1-1-8", new UsingItemsFilterData()); Tom.NET: schema....
user avatar
7 votes

Where to Create schemas in multi brand blueprint

When you are talking about best practice in the WCM space it is very vague as this entirely depends on the Business Context and End User experience. Also, above what you are saying may be correct ...
user avatar
  • 15.9k
7 votes
Accepted

Finding Mandatory fields

To elaborate on Rob's answer, the code to add to yours would be something like: SchemaFieldsData schemaFieldsData = Client.ReadSchemaFields(txtSchTCMURI, true, null); foreach (var schemaField in ...
user avatar
7 votes
Accepted

Not able to delete a Component of a test Schema

There are a number of reasons why you can't delete a Component, for example: it could be used by some other items, it is published, checked-out, the deletion is not attempted from the owning ...
user avatar
  • 6,120
7 votes

How to find a Tridion Schema using the Namespace Uri

We were able to find the schema that caused issues by using the powershell modules provided by Peter Kjaer (https://github.com/pkjaer/tridion-powershell-modules). With this module, we were able to ...
user avatar
6 votes

Dynamic fields from Schema

The only way to build such a Schema would be with a GUI Extension and complex metadata against each field. It would be much easier to have a "Green Schema", "Red Schema" etc... and a shared Embedded ...
user avatar
  • 7,307
6 votes

Finding Mandatory fields

I think you need to look at the MinOccurs and MaxOccurs on each field. MinOccurs will be 1 for mandatory fields. Remember the Schema is an XSD. There's probably a simpler way but I've never done ...
user avatar
6 votes

How to find a Tridion Schema using the Namespace Uri

The Core Service has a method called GetSchemasByNamespace, which returns all Schemas with a given Namespace URI (and optionally a Root Element Name).
user avatar
5 votes
Accepted

How to create MetaData Schema using Core Services?

There is a purpose property in SchemaData class, to define purpose(type) of schema. By default it's set to the value SchemaPurpose.Component. That's why, if you are creating with the root element '...
user avatar
5 votes

How to design a recursive menu schema?

I'm seeing this pattern again with the popular "slide out" type navigation (from the hamburger menu) and can offer two follow-up considerations. The nested items are editorial (manually curated), not ...
user avatar
  • 12.6k
5 votes

How to add an attibute to a element in design view?

"Simple Schemas" don't support attributes, only elements. You can modify the Source tab of the Schema to add the attribute, but be aware that it will change it to a "Complex Schema" - meaning you ...
user avatar
  • 19.8k
5 votes
Accepted

How to add an attibute to a element in design view?

SDL Tridion Schemas can be divided in two categories, a Tridion Web Schema and a W3C Schema. The first variant (also known as a Simple Schema) does not allow attributes and only accepts certain data ...
user avatar
  • 29.6k
5 votes

Schema Hiding while creating the component

In addition to Chris' answer, you could also set the Linked Schema on the Folder, and set this as Mandatory. This will force all Components created in that Folder to use that Schema, and will not ...
user avatar
5 votes
Accepted

Can an optional embedded field be omitted, even when a mandatory dropdown field is included?

If you have flexibility to switch the field types, you might consider changing the dropdown to a radio button since it also only allows one value to be selected, as in a dropdown, but isn't ...
user avatar
  • 2,512
5 votes

SearchQueryData returns top 1000 reults

You don't have to use Search for this. A where used query will also work, and might be the better choice. Here's a powershell snippet to illustrate how you might do this: $core = Get-...
user avatar
  • 18.5k
5 votes
Accepted

Schema Namespace UUID Issue New Components

The issue was with how I was creating the new components. When selecting a schema for a new component I was opening the schema dropdown and typing the letter "i" to get to the schema I wanted (...
user avatar
5 votes

Is it possible to set permissions on schema fields to restrict editing of them to certain users?

No, not out of the box. There were several extensions floating about. http://yabolka.com/gui-extension-readonly-and-hidden-fields-in-tridion-2011-and-up/ was an original from 2011, with a couple of ...
user avatar
4 votes

Number of Fields in Schema

The is an excellent discussion surrounding this subject on John Winter's Creating translatable website labels in SDL Tridion post over on Tridion Developer. There are lots of interesting opinions ...
user avatar
4 votes
Accepted

Error on creating list Field in Schema?

Edit: Chrome 38 reversed the changes and so a hotfix is no longer required. Simply update your Chrome instead. Original answer: Are you using Chrome? They recently released an update which broke ...
user avatar
  • 19.8k
4 votes
Accepted

How to create a List type field in schema using core service?

You need to use singleLineTextFieldDefinitionData.List to have list type field SingleLineTextFieldDefinitionData singleLineTextFieldDefinitionData = new SingleLineTextFieldDefinitionData(); ...
user avatar
  • 4,324
4 votes

Unable to create-edit components with specific schema

The Tridion GUI can sometimes cache very aggressively. Try closing your browser entirely, then opening it up and flushing the cache completely before returning to Tridion. Then perhaps you will see ...
user avatar
  • 18.5k
4 votes

Where to Create schemas in multi brand blueprint

I always placed them at the top of the Blueprint and then used security to ensure schemas were used in the right place by the right people. It always seems to pay off compared to having to "move up" ...
user avatar
  • 28.9k
4 votes

Where to Create schemas in multi brand blueprint

BluePrinting best practices suggest separate items for different parts of the CMS. As definitions for content rather than the content itself, I've always suggested a single Schemas publication to ...
user avatar
  • 12.6k
4 votes

Default value of parameter schema text field does not appear in Template Builder

This is a known limitation in Template Builder. It doesn't look at the default value defined in the Schema, so you'll need to handle the default in the TBB itself.
user avatar
  • 19.8k

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