6

I am using Tridion User Interface 2011. Tridion UI related tags are coming from the user defined compound TBB Component Finish Actions which is associated with all the CTs, which internally holds the OOB TBB Enable inline editing for content. Following are the parameters for Enable inline editing for content TBB.

        <CPHtmlTag>uicp</CPHtmlTag>
        <FieldHtmlTag>uicpfield</FieldHtmlTag> 

By using this TBB in every Component template result in Tridion UI tags in the rendered content.

The requirement is if the Enable for inline editing check box in CT is cleared for a particular component, Tridion UI related tags should not rendered in the output content.

I given a try by clearing the check box, publishing the CT and previewing the content, still I can find the Tridion UI related tags in the source.

Provide me an approach whether to pass any extra parameters? If so please provide the parameter which need to be set. Through some light how can i find the existing the parameters for the OOB TBB.

4

A few hints:

  • There is no OOTB "Component Finish Actions", this seems to be something that was added by the implementer(s)
  • Disabling inline editing for a CT will just stop Experience Manager from showing editable areas (borders and so on), not stop the tags from being output - this allows you to turn it on or off without republishing, which is a good thing!

If you don't want tags in the CT's output then you should not use the Enable inline editing TBB in your Component Template.

EDIT

Here's how I would "solve" this issue:

  1. Create a new TBB, call it "Standard Component Finish Actions Without Inline Editing"
  2. Add all TBBs of your current "Component Finish Actions" TBB to this new one except for Enable inline editing
  3. Modify the existing "Component Finish Actions" to include the new TBB, and the Inline Editing TBB

Now you have successfully decoupled Enable Inline Editing from your Component Finish Actions without having to modify any existing CT. In a CT where you don't need to enable inline editing, use the Standard Component Finish Actions Without Inline Editing TBB, and for all other CTs continue using the current Component Finish Actions.

EDIT 2

This checkbox prevents content rendered with this Component Template from being edited. It does not remove the tags nor does it remove the borders. If you are trying to remove this information from the rendered component presentation then you must not use the "Enable inline editing" TBB in your Component Template.

| improve this answer | |
  • Thanks for hints. I modified the question. But the "Component Finish Actions" is a compound template designed in such way that it is useful in every CT. So is there any way to restrict the tags from output without modifying the "Component Finish Actions" compound TBB? – P.Muralikrishna Apr 18 '13 at 7:25
  • As far as I know, no. If you include the inline editing TBB and the current target is configured for inline editing, the tags will be added. – Nuno Linhares Apr 18 '13 at 8:10
  • Is there any way to add the "Enable inline editing for content" TBB dynamically based on the state of "Enable for inline editing" check box? – P.Muralikrishna Apr 18 '13 at 8:15
  • Again - not that I know of. You are going in circles around the easy solution... editing my answer. – Nuno Linhares Apr 18 '13 at 8:32
  • Nice idea Nuno. That's thinking outside the (check) box! – Rob Stevenson-Leggett Apr 18 '13 at 8:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.