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 ...


9

One approach i've used in the past is having two fields: the first field is a large text field (non rtf) where the users can past in html A second field allows repeating multimedia items of any type. if you wish to embed the path of one of the multimedia items in the content you simple reference the multimedia item by it's name, for example: <div style=...


7

The only option you have to my knowledge is to use different classes for the old and new design. But for generics like a font specification on the body there really isn't a solution, unless you think in terms of a UI extension that determines this based on the Schema (provided you have different Schemas for the old and new design).


7

In a Format Area (aka. Rich Text Editor) all content is stored as XHTML and thus it needs to be well formed. So this means that if you add this URL in the content, the & sign needs to be escaped into &amp;. Now technically that isn't necessary for the href attribute of your link, but SDL Tridion still seems to force that on to us. Nothing 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

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

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

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

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

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

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

The Design tab will show you all styles, provided you have added these in the FormatAreaStyles.css, see the documentation for details (requires login). You basically configure a system wide cascading style sheet for use with your format area fields. In the Schema you can then enable which classe/styles can be applied to text within a format area field. But ...


4

Tridion 2011 and later releases use Tidy to process RTF fields content. You can configure the characters set to be used there. Tidy configuration is located here: [TRIDION_HOME]\web\WebUI\Core\Controls\FormatArea\TcmXhtml\TcmXHTML.config Tidy documentation can be found here: http://tidy.sourceforge.net/docs/tidy_man.html


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

I'd argue the best place for referencing a style sheet is at the page level (or its template), regardless of CMS approach. Consider approaching the "embed an internal style sheet" requirement with page metadata or as an external link for components. I describe other RTF approaches in this post. If the HTML is maintained elsewhere and is simply copy/pasted ...


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'...


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