tag:help-archives.hannonhill.com,2010-02-09:/discussions/velocity-formats/5293-getting-an-attribute-valueCascade CMS: Discussion 2018-10-18T20:36:56Ztag:help-archives.hannonhill.com,2010-02-09:Comment/282611622013-08-14T16:04:06Z2013-08-14T16:04:06ZGetting an attribute value<div><p>Hi,</p>
<p>Getting the value of an element's attribute is very similar to
getting the value of an element's child. Try the following and let
me know how it works out:</p>
<pre>
<code>## Assuming $page is a "system-page" element
#set ( $id = $page.getAttribute("id").value )</code>
</pre>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/282611622013-08-14T16:10:20Z2013-08-14T16:10:20ZGetting an attribute value<div><p>Thanks!</p></div>thugsb