We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Coldfusion 9 Custom Tag -- Need help making my first one.

gr1z
gr1z asked
on
Medium Priority
347 Views
Last Modified: 2012-06-27
Greetings!  I'm really confused with the Adobe documentation on custom tags. I'm hoping someone can help me.

I have some code I use that determines if someone has permission to view a "section".  

<cfset findValue = session.dnet.permissions.indexOf('1')>
<cfif findValue GTE 0>
<cfoutput>
some code
</cfoutput>
</cfif>

I would like to do something like this... which would save a lot of code.

<cfsomething section=1>
some code
</cfsomething>

Could anyone help me with this?

Comment
Watch Question

CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.