Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7634993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:19:39+00:00 2026-05-31T07:19:39+00:00

I got answer from the SDL Tridion forum that we can enable inline editing

  • 0

I got answer from the SDL Tridion forum that we can enable inline editing for embedded schema “paragraph” that has “text” field in it.

It would be verty helpful if someone helps me to enable it for simple field.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="/">
        <xsl:for-each select="//*[local-name()='paragraph']">
            <div>
                <tcdl:ComponentField name="paragraph[{position() -1}].text" index="0">
                <xsl:apply-templates select="./*[local-name()='text']"/>
                </tcdl:ComponentField>
            </div>
        </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>

This code loops through each embedded paragraph field, outputs the text field’s value and wraps it with the appropriate SiteEdit TCDL syntax.

I am using Tridion 2011 SP1 and the XSLT mediator from SDLTridionworld.com.

Say my component has a field named “pageHeader”. How can we enable inline editing in XSLT TBB.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:19:40+00:00Added an answer on May 31, 2026 at 7:19 am

    Off the top of my head I think the following should work:

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
        <xsl:template match="/">
            <xsl:for-each select="//*[local-name()='pageHeader']">
                <div>
                    <tcdl:ComponentField name="pageHeader[{position() -1}]" index="0">
                        <xsl:apply-templates select="."/>
                    </tcdl:ComponentField>
                </div>
            </xsl:for-each>
        </xsl:template>
    </xsl:stylesheet>
    

    Or if it is a single value field:

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
        <xsl:template match="/">
            <h1>
                    <tcdl:ComponentField name="pageHeader" index="0">
                        <xsl:value-of select="//*[local-name()='pageHeader'"/>
                    </tcdl:ComponentField>
            </h1>
        </xsl:template>
    </xsl:stylesheet>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this question is based on answer got from another SO question, can be found
This is a CSS related question, I got one good answer from my previous
The comment to this answer got me wondering. I've always thought that C was
I asked this question on the SCB forum but got no answer I'm trying
I've seen many questions about this, but i've never really got the answer that
I got this answer from Kjensen and read the answers, but this is a
I didn't see a clear answer from the same question How can I figure
Just got this answer from a previous question and it works a treat! SELECT
I got this answer from somebody on another Q before, but I would like
I have got an answer from my last question about translating an XML file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.