tag:help-archives.hannonhill.com,2010-02-09:/discussions/velocity-formats/201-macro-within-a-macroCascade CMS: Discussion 2018-10-18T20:36:33Ztag:help-archives.hannonhill.com,2010-02-09:Comment/164605022012-06-06T18:01:41Z2012-06-06T18:01:41ZMacro within a Macro?<div><p>I found the misplaced #end tag which truncated the listings to
one. (#1 above).</p></div>steelejtag:help-archives.hannonhill.com,2010-02-09:Comment/164605022012-06-06T18:17:38Z2012-06-06T18:17:38ZMacro within a Macro?<div><p>Updated script</p></div>steelejtag:help-archives.hannonhill.com,2010-02-09:Comment/164605022012-06-06T19:16:14Z2012-06-06T19:16:14ZMacro within a Macro?<div><p>Yes, I think a macro within a macro would be an efficient way to
do this. Is this what you're looking for?</p></div>Eric L. Eppstag:help-archives.hannonhill.com,2010-02-09:Comment/164605022012-06-06T19:35:45Z2012-06-06T19:35:45ZMacro within a Macro?<div><p>It's good to know that a macro within a macro is possible. I
tried this but it seems to be listing all under each departmental
heading. What I'm trying for is listing in the order of Dean,
Chair, Faculty, Staff under each department (dept-node).</p></div>steelejtag:help-archives.hannonhill.com,2010-02-09:Comment/164605022012-06-06T19:56:40Z2012-06-06T19:56:40ZMacro within a Macro?<div><p>Ah, right. The secondary select for dean, chair, etc., was
selecting relative to the root ('/system-index-block/....), not
selecting from the subset. These lines should work.</p>
<pre>
<code> #set ( $dean = $_XPathTool.selectNodes($list,'.[system-data-structure/staff[status="Dean"]]'))
#set ( $chair = $_XPathTool.selectNodes($list,'.[system-data-structure/staff[status="Chair"]]'))
#set ( $faculty = $_XPathTool.selectNodes($list,'.[system-data-structure/staff[status="Faculty"]]'))
#set ( $staff = $_XPathTool.selectNodes($list,'.[system-data-structure/staff[status="Staff"]]'))</code>
</pre></div>Eric L. Eppstag:help-archives.hannonhill.com,2010-02-09:Comment/164605022012-06-06T19:59:17Z2012-06-06T19:59:17ZMacro within a Macro?<div><p>Yes, I could see what it was doing and was working on the fix as
you sent this. It works great.</p>
<p>The knowledge of how to do the macro-in-macro will serve me
well.</p>
<p>Thanks for your help in getting this done.</p></div>steelej