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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:10:59+00:00 2026-06-07T22:10:59+00:00

<cfparam name=attributes.mytestvalue default=0> <cfdump var=#attributes#> <!— Attributes are there. —> <cfdocumentSection> <cfdocumentitem type=footer> <cfdump

  • 0
<cfparam name="attributes.mytestvalue" default="0">
<cfdump var="#attributes#">

<!---  Attributes are there. --->

<cfdocumentSection>
   <cfdocumentitem type="footer"> 
      <cfdump var="#attributes#">
   </cfdocumentitem type="footer"> 
</cfdocumentSection>

<!---  Attributes are not there. --->

Why does this happen? Is this a known bug?

  • 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-06-07T22:11:00+00:00Added an answer on June 7, 2026 at 10:11 pm

    According to \WEB-INF\cftags\META-INF\taglib.cftld, cfdocumentsection and cfdocumentitem are implemented as custom tags themselves and therefore possibly have their own attributes scope, thereby masking the values you’ve put into attributes scope.

    You could try this:

    <cfdocumentSection>
       <cfdocumentitem type="footer" mytestvalue="#attributes.myTestValue#> 
          <cfdump var="#attributes#">
       </cfdocumentitem type="footer"> 
    </cfdocumentSection>
    

    Or perhaps this:

    <cfset attribs={type="footer", myTestValue=0}>
    <cfdocumentSection>
       <cfdocumentitem attributeCollection="#attribs#"> 
          <cfdump var="#attributes#">
       </cfdocumentitem> 
    </cfdocumentSection>
    

    Also, although I don’t think it’s the problem here, you’ve got the type=”footer” attribute on the closing tag of cfdocumentItem, which isn’t necessary

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<cfparam name=airInfo.leaving type=struct default=#structNew()#> <cfparam name=flightInfo.depart type=string default=departing> <cfparam name=flightInfo.arrive type=string default=arriving> <cfset flightInfo
<cfif ISDEFINED(CALLER.VARIABLES.STRFUNCNAME)> <cfparam name=strFuncName default=#EVALUATE(CALLER.VARIABLES.STRFUNCNAME)# /> <cfelse> <cfparam name=strFuncName default= /> </cfif> This code
Hi I have a CFC/component by name tsks_Session, that performs the session tasks. In
I need to pass a structure to a method, but it will not always
This seems simple enough, but I'm not able to figure out why this code
In a form, there are radio buttons for the user to select: <li> <label
There's a similar question on stackoverflow , but I wanted to ask it again
I am getting desperate here. I cant figure out why does this exception occur.
I'm working with ColdFusion trying to read the value stored in a session cookie
I have a facebook application that was using a CFC I had found on

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.