Hot answers tagged

11

Without knowing your full requirements, it is difficult to propose a specific solution. However, some options that you may want to consider are: Make the Schema field plain text. Obvioulsy this isn't an option if the text needs to be formatted after it has been pasted (as plain text). Use the browser's "Paste as plain text" functionality (CTRL + SHIFT + V ...


11

The reason that you get the namespace is because DWT outputs XHTML by default. I've usually just done the cleanup using a custom "find and replace" TBB as you've mentioned in your question. However, I believe Default Finish Actions has a TBB called Cleanup Template which cleans out the namespaces. So try this first.


11

By default SDL Tridion 2013 SP1 is not setup to be fully HTML 5 compliant (this is also still the case for Web 8 for that matter). You can extend the RTF field to allow HTML 5 tags, and this can be specified in the file TcmXhtml.Config at the path [Tridion]\web\WebUI\Core\Controls\FormatArea\TcmXhtml\ Depending on how you exactly want it to behave you can ...


7

When you switch views, the data is loaded into an XML document in order to allow the format area XSLT to be executed. When this happens, the serialisation format is lost, and you have an in-memory representation of your characters. When the XSLT executes, the data from your XML document is again serialised, and in this case, you get a byte-representation of ...


7

I am going to give it a shot... What I would do is to use a different syntax for the tag in the RTF: instead of < h:output >something< \h:output > I would do something like { h:output } something { \h:output }. That would solve the problem of not-allowed tags in the RTF, since this syntax would be considered text. Then if what you need is the ...


7

When the DXA publishes binaries (either linked from MM link fields, or embedded in RTF) it publishes the original full res image. When the image is rendered by a view, it will be resized according to the particular design requirements of the view - in this way we try to keep a clean separation of content and design. RTF fields are tricky as when you start ...


7

There are normally three places that I would check for character display issues such as this: Do the characters look correct inside of the Components in the Tridion Content Management Explorer (CME)? Can you open the published page (assuming that this is not a Dynamic Component Presentation) in Notepad++ or similar on the web server? Do the characters look ...


7

Mine too is greyed out if I choose a Component as the link type. However, the open button becomes enabled if using http:// as the link type, and can be used to open the linked page (e.g. The BBC website) in a new browser tab. Copying and pasting the TcmId of the Component (e.g. tcm:234-122967) into the search box is the only way I know of opening a linked ...


6

You won't need to flip anything for the content to work. The editing fields in Tridion support RTL languages just fine. You'll want to mark it as RTL in the HTML/CSS of the resulting web page, and of course ensure that you use a sensible encoding across the board. You might also want to use a font that displays Hebrew characters clearly. All told, I ...


6

I believe this is managed in the SchemaData of the schema your item uses, rather than the ItemFieldDefinitionData. If you don't know the schema ID your item will use you can use something like var schemaId = element.Attribute("SchemaId"); to retrieve it. Once you have this Schema ID, var schemaData = (SchemaData)client.ClientInstance.Read(schemaId, null)...


6

The Tridion Rich Text Field stores unicode characters using an encoding that it manages internally (I believe it's something like UTF-16), and then it converts the characters to an HTML-compliant encoding based on what you have set on your Publication Target. As you have noticed, in some scenarios this isn't what we want. However, also do notice that this ...


6

Yes, you can add your own fonts. See "Configuring system fonts" in the documentation. While you cannot replace the existing size options, you can add your own CSS classes - which then gives you full freedom of how you want to present the content. See the "Styles configuration" documentation page - and while you are there you might want to browse the related ...


5

Meta tag is meant for the head element. It's not something you normally let editors mess with in free form like RTF. Typically you render each field individually in you page template. By putting it in an RTF you are creating an invalid markup scenario because RTF is meant for content inside the body element. Hence, tridion tries to fix it by converting it ...


5

RTF field or any other field does not support it, also text in multi-column is a design requirement, don't try to achieve it through Schemas. In Tridion Design and Content is separate. you have to write your Page template(PT) and Component template(CT) for it. Page template gives structure of the page, as you said multicolumn, CT will give design to each ...


5

Ultimately, this was an encoding issue. I changed my serialization code from public static string Serialize<T>(T obj) { XmlSerializer xs = new XmlSerializer(typeof(T)); using (MemoryStream wr = new MemoryStream()) { XmlSerializerNamespaces ns = new XmlSerializerNamespaces(); ns.Add("", schemaNamespace); ...


5

In order to remove the namespace from the <p> element, all you have to do is apply a blank namespace attribute. The final (correct) filtering XSLT is the same as the original except for this line: <element name="p" namespace=""> Once I applied this change, I was able to get the correct output: <p>Test</p>


5

I've been looking at this issue today with Saurabh, he's pulling in content from a component into the middle of a <p> tag. when the content (which is from an RTF) contains a <p> - the result is a nested this isn't valid so the default building block doesn't resolve and clean it up. We've dropped in some code in our tbb to clean this up and ...


5

AFAIK, when you create component links in the RTF field, Tridion does not generates the binary link. You may refer the Process Download Links in Output extension for this purpose. This was written for SDL Tridion 2011, but hopefully may work for SDL Tridion 2013 as well.


4

You may try to put 'exclude-result-prefixes' in stylesheet header. There are so many links with explanation how to do this. I just picked up one as example. https://stackoverflow.com/questions/827600/how-can-i-prevent-these-redundant-namespaces-from-an-xslt-stylesheet


4

I am able to select tables and images in Chrome, but it works differently (and not as nicely) as it does in IE. Images In IE, you can click on an image to select it. The image now has 'anchors' so you can see that it's selected. Clicking the Image button opens the image popup which allows you to modify the image properties. In Chrome, you can select the ...


4

You can simply paste the absolute image URL in your rich text source. You also have the option to create MM components using an external image URL. I don't believe you will need to do anything custom here. As far as extending the Tridion GUI to use CK, you can, but IMHO it's over engineering.


4

Embeddable Schema A "Paragraph" embedded schema can create sets of author-friendly fields for templates by including: Subheading (Text) Body (Repeatable Rich Text Format area ) *"Section" or "Body" might be more appropriate since columns could have multiple <p> tags. Content Structure-Driven Layout Template this author-controlled content structure ...


4

The trick here is selecting the table, once the entire table is selected, you can edit the table and all its properties via the Table (editor) button. The best way to select the entire table is just click in any of its cells, and then go to the Current Elements dropdown in the Ribbon. It will currently be standing on Table Cell <td>, now you can ...


4

Look carefully at your design. It strikes me that you are approaching this in the wrong way. The point is that a Rich Text field is meant for allowing rich text editing by an end user. If you are hand-editing the source tab, that's already a sign that something's adrift. Tridion is a web content management system, so it won't surprise anyone to find that it'...


4

I strongly suspect there's no single answer here given this issue has been around for many years, so I'll post a few quick thoughts to keep the conversation going.... Adding the <p> tags in code You'd need to be careful of making an assumption that all content should be in a <p> tag - what if the RTF is to present just a xx - you'd have to ...


4

make following changes in the file "dd4t-core/src/main/java/org/dd4t/core/util/XSLTransformer.java " comment selected lines and restart server.


4

There is no configuration available for the fonts. The only thing you can set is the name of the font to be available in the the list of fonts, that the Editors can select for the rich text format fields. The selected font is translated to the following in the rich text field, <span style="font-family: FONT-NAME;">componente</span> So to ...


4

According to this website: https://www.w3.org/WAI/WCAG20/from10/diff.php, WCAG 2.0 differs from 1.0 primarily in how each acceptance criteria is explained when a test fails to meet a criteria (in WCAG 2.0 is much more granular/specific than 1.0), and I quote: "The fundamental issues of Web accessibility are the same, though there are some differences in the ...


4

If it is possible, I doubt it would be supported because there could be dependencies inside the CME that aren't tested against the latest Tidy. However, IIRC, Tidy is not used by Tridion or Web. It is a custom implementation. Also, very unofficially and not yet committed to the Web 9 release, is a new RTF editor on top of Textbox.io. This rumour has been ...


4

In DXA 2.0 (R2 Data Model), Rich Text Field processing is done on CM-side: see method DataModelBuilder.BuildRichTextModel https://github.com/sdl/dxa-content-management/blob/master/Sdl.Web.Tridion.Templates.R2/Data/DataModelBuilder.cs Indeed, only MM Component Links for img tags are "expanded" by the Default Model Builder. If you want to customize the Rich ...


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