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 7643595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:29:17+00:00 2026-05-31T09:29:17+00:00

I am using SDL Tridion 2011 SP1. I am creating the Dreamweaver TBB for

  • 0

I am using SDL Tridion 2011 SP1. I am creating the Dreamweaver TBB for a component. In my component some of the fields are empty. But in my component TBB, I want to check if the field is empty and I should not render it. If field is not empty then I should render and display the value.I am facing the problem when checking the content of subfield in embedded field.

On my component there is one multi-value embedded schema field with name “EMBFIELD”. The EMBFIELD schema has a text field with the name “text”. I want to check if the text field is empty or not. If it is not empty I have to iterate over the field to render the values.

I have to render the field by “RenderComponentField” only. When I tried rendering it is showing some error that the field doesn’t exist.

I thought that this can be done using If block.

 <!-- TemplateBeginIf cond="Component.Fields.EMBFIELD" --> 
     <!-- TemplateBeginRepeat name="Component.Fields.EMBFIELD" -->
           <!-- TemplateBeginIf cond="Component.Fields.EMBFIELD.text" --> 
                 <div>@@RenderComponentField("Component.Fields.EMBFIELD.text",TemplateRepeatIndex)@@</div>
            <!-- TemplateEndIf -->      
     <!-- TemplateEndRepeat -->
 <!-- TemplateEndIf -->

But it’s giving error like

Internal error: Context component Component does not have field Component.Fields.conditionalText.text

  • 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-31T09:29:18+00:00Added an answer on May 31, 2026 at 9:29 am

    You could use StringLength(object parameter) function, it will return 0 if the field is empty or if the string length of the parameter could not be determined. So all in all it should look like this:

    <!-- TemplateBeginIf cond="StringLength(Component.Fields.Field) > 0" -->
     <b>Value is not empty<b>
     <p>@@Component.Fields.Field@@</p>
    <!-- TemplateEndIf -->
    

    This might be the answer to your updated question:

    <!-- TemplateBeginIf cond="Component.Fields.EMBFIELD.text" --> 
         <!-- TemplateBeginRepeat name="Component.Fields.EMBFIELD" -->
                @@RenderComponentField("EMBFIELD[${TemplateRepeatIndex}].text", 0)@@       
         <!-- TemplateEndRepeat -->
     <!-- TemplateEndIf -->
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an XSLT TBB in Tridion 2011 SP1, using the XSLT
I'm using the Core Service to read Keyword information in SDL Tridion 2011. How
I am working on SDL Tridion 2011 SP1 with the XSLT Mediator from SDL
I am using XSLT mediator from SDL Tridion World to create an XSLT TBB.
Using SDL 1.3 I want to create fake fullscreen SDL_Window under linux. It is
I am trying to add a ribbon tool bar button in SDL Tridion 2011
I'm using SDL for a project of mine, and I want a shorter way
I'm writing a simple program using SDL, but I'm running into a strange problem.
I have an opengl program and I am using SDL for the window creating
I want to create an editor in C++ using SDL & OpenGL and have

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.