House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Is this a bug?

  << Previous Post |  RSS |  Subscribe to this Group Next >> 

Is this a bug?

Hi, Claude_Schnéegans 01/17/2012 04:59 PM

01/17/2012 04:59 PM
Author: Claude_Schnéegans Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63647#349519 Hi, According to CF docs for GetBaseTagData(tagname [, instancenumber ]), "instancenumber =  (Optional) Number of ancestor levels to jump before returning data. The default value is 1 (closest ancestor)." Then, suppose I call the function from a custom tag with its own name in parameter (I want to know if this tag is at level 0 or if it is embeded inside another one) If instancenumber EQ 1, I expect the function will jump 1 of ancestor levels to jump before returning data, then OUTSIDE the custom tag, right? But instead, the function seems to return the tag itself as it's "closest ancestor" As far as I know, I'm not my own ancestor. (Genealogically, I'm my own parent, at level 0, but I'm not my ancestor) Try tis code: 1º in some template (don't call it test.cfm): <CF_test> 2º in test.cfm <CFSET tagData = getBaseTagData("CF_TEST", 1)> <CFDUMP var="#tagData#"> In my book, this should throw an error since there is no ancestor "CF_TEST" Instead, it returns a structure for CF_TEST
<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

June 19, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
             1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30             

Designer, Developer and mobile workflow conference