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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:03:03+00:00 2026-06-14T21:03:03+00:00

Custom tags have an attributes scope. Cool. I’ve also seen some other apps (and

  • 0

Custom tags have an attributes scope. Cool.

I’ve also seen some other apps (and possibly ColdBox?) where the developer put everything into an attributes structure. For example in login.cfm:

<cfparam name="attributes.username" default="some value">

Is there a point to this besides having to specify attributes.foo which does improve readability, I’ll admit but why reuse a name of a full scope?

Is this personal preference or am I missing something profound with the attributes scope?

  • 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-14T21:03:04+00:00Added an answer on June 14, 2026 at 9:03 pm

    It’s nothing profound. A lot of frameworks (and individual developers) like to combine the form and url scopes into a single “event” object or something (ala your “attributes” example), but it doesn’t really buy you much.

    That said, naming a new object after an existing scope is misguided, and I’d recommend against it. What happens when you want something out of the attributes scope, not the attributes object?

    You could always reference the object via variables.attributes.foo for explicitness, but that’s a pain and a bit ugly. And of course, nothing stops you from accessing the attributes scope (scope priority would check attributes before variables.attributes), but then the person that has to read the code after you is more confused. It’s essentially created a problem instead of solving one.

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

Sidebar

Related Questions

I have a file with some custom tags and I'd like to write a
I have plain text with some custom tags. For example: I like C#. <code
I have a lot of strings containing custom tags: hello {RT|12} world {RT|465} this
I'm trying to implement some custom template tags to to a little more with
I need users to mark some section of text with custom tags, I can't
I have a need to add custom HTML attributes, specifically classes or styles to
I am currently working on a Wordpress site I have created some custom Post
I have an XML file with a bunch of data contained by custom tags.
My applications have previously used jsp 2.0 custom tags extensively. We preferred these over
I have several custom View s in which I have created custom styleable attributes

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.