tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/332-xslt-to-grab-dynamic-metadata-from-a-folder-and-contentdata-def-info-from-a-child-blockCascade CMS: Discussion 2018-10-18T20:36:11Ztag:help-archives.hannonhill.com,2010-02-09:Comment/51339782011-02-04T16:36:21Z2011-02-04T16:36:22ZXSLT to grab dynamic metadata from a folder and content/data def info from a child block<div><p>How do I write an XSLT format to grab not only a folder’s
dynamic metadata, but also the content/data def info from a block
that is a child of that folder? I can do each separately, but I
want their info united via a format.</p></div>Jamestag:help-archives.hannonhill.com,2010-02-09:Comment/51339782011-02-04T18:19:06Z2011-02-04T18:19:06ZXSLT to grab dynamic metadata from a folder and content/data def info from a child block<div><p>Is your question regarding how to create an index block that
includes both sets of information or how to write the format to
transform both sets of information that you already have in an
index block? If the latter, can you attach either XML from the
index block you're using or the format that you have so far? This
would help us better identify the problem you're having.</p>
<p>Thanks!</p></div>Amytag:help-archives.hannonhill.com,2010-02-09:Comment/51339782011-02-04T18:45:53Z2011-02-04T18:45:53ZXSLT to grab dynamic metadata from a folder and content/data def info from a child block<div><p>I have dynamic metadata attached to a folder.<br>
In side that folder, I have a Data Definition -based block that
renders<br>
the following XML:</p>
<p><?xml version="1.0" encoding="UTF-8"?><br>
<system-data-structure><br>
<highlighted_article><br>
<article_title>article title</article_title><br>
<article_ID>1</article_ID><br>
<start_date>1296799200000</start_date><br>
<end_date>1296799200000</end_date><br>
<article_summary>article summary</article_summary><br>
<article_content>article content<br>
</article_content><br>
</highlighted_article><br>
</system-data-structure></p>
<p>I am trying to write a format that can pull both the dynamic
metadata<br>
and name of the folder and the data from the XML above.</p>
<p>James "Jamie <a href=
"http://people.jmu.edu/johns2ja">http://people.jmu.edu/johns2ja</a>"
Johnson, BBA, MA, A+<br>
<a href=
"http://certification.comptia.org/a/">http://certification.comptia.org/a/</a>,
ACHDS<br>
<a href=
"http://train.apple.com/certification/achds.html">http://train.apple.com/certification/achds.html</a>,
HDA<br>
<a href=
"http://www.thinkhdi.com/certification/individualCertification/HDABootcamp.aspx">
http://www.thinkhdi.com/certification/individualCertification/HDABootcamp.aspx</a>,<br>
HDM<br>
<a href=
"http://www.thinkhdi.com/certification/individualCertification/hdm.aspx">
http://www.thinkhdi.com/certification/individualCertification/hdm.aspx</a>,
MOS<br>
<a href=
"http://www.microsoft.com/learning/mcp/officespecialist/default.mspx">
http://www.microsoft.com/learning/mcp/officespecialist/default.mspx</a>,<br>
W3S/HTML <a href=
"http://www.w3schools.com/cert/cert_html.asp">http://www.w3schools.com/cert/cert_html.asp</a><br>
JMU Information Technology Web Developer<br>
Browser Detection and Test<br>
<a href=
"http://isapps.jmu.edu/tutorials/browser/BrowserDetection.asp">http://isapps.jmu.edu/tutorials/browser/BrowserDetection.asp</a></p>
<p>/"Test everything. Hold on to the good."/ 1 Thessalonians
5:21<br>
<a href=
"http://www.biblegateway.com/passage/?search=1%20Thessalonians%205:21&version=NIV">
http://www.biblegateway.com/passage/?search=1%20Thessalonians%205:21&version=NIV</a></p></div>Jamie johnsontag:help-archives.hannonhill.com,2010-02-09:Comment/51339782011-02-04T19:04:00Z2011-02-04T19:05:39ZXSLT to grab dynamic metadata from a folder and content/data def info from a child block<div><p>You'll want to first create an index block that contains both
the dynamic metadata for the folder as well as the data definition
block before worrying about how to write the format.<br>
1. Create a new Index Block<br>
2. Select your folder as the "Index Folder", set "Depth of Index"
to 1 (or greater), and check "Blocks" for the "Indexed Asset
Types"<br>
3. Select "Render XHTML, XML, and Text block XML inline"<br>
4. For "Indexed Asset Content", select at least Regular Content and
User Metadata<br>
5. Click "Submit" to create this block<br>
6. Assign this block to your page or template region<br>
7. Write an XSLT format to style the XML information from your
index block and assign it to the same page or template region as
<a href="/discussions/news/6" title="Discussion #6">#6</a>
above</p>
<p>Please let us know if you need any further assistance.</p></div>Amytag:help-archives.hannonhill.com,2010-02-09:Comment/51339782011-02-04T19:07:25Z2011-02-04T19:07:25ZXSLT to grab dynamic metadata from a folder and content/data def info from a child block<div><p>Or would it just make more sense to do it all in a Data
Definition-based<br>
block?</p>
<p>James "Jamie <a href=
"http://people.jmu.edu/johns2ja">http://people.jmu.edu/johns2ja</a>"
Johnson, BBA, MA, A+<br>
<a href=
"http://certification.comptia.org/a/">http://certification.comptia.org/a/</a>,
ACHDS<br>
<a href=
"http://train.apple.com/certification/achds.html">http://train.apple.com/certification/achds.html</a>,
HDA<br>
<a href=
"http://www.thinkhdi.com/certification/individualCertification/HDABootcamp.aspx">
http://www.thinkhdi.com/certification/individualCertification/HDABootcamp.aspx</a>,<br>
HDM<br>
<a href=
"http://www.thinkhdi.com/certification/individualCertification/hdm.aspx">
http://www.thinkhdi.com/certification/individualCertification/hdm.aspx</a>,
MOS<br>
<a href=
"http://www.microsoft.com/learning/mcp/officespecialist/default.mspx">
http://www.microsoft.com/learning/mcp/officespecialist/default.mspx</a>,<br>
W3S/HTML <a href=
"http://www.w3schools.com/cert/cert_html.asp">http://www.w3schools.com/cert/cert_html.asp</a><br>
JMU Information Technology Web Developer<br>
Browser Detection and Test<br>
<a href=
"http://isapps.jmu.edu/tutorials/browser/BrowserDetection.asp">http://isapps.jmu.edu/tutorials/browser/BrowserDetection.asp</a></p>
<p>/"Test everything. Hold on to the good."/ 1 Thessalonians
5:21<br>
<a href=
"http://www.biblegateway.com/passage/?search=1%20Thessalonians%205:21&version=NIV">
http://www.biblegateway.com/passage/?search=1%20Thessalonians%205:21&version=NIV</a></p></div>Jamie johnsontag:help-archives.hannonhill.com,2010-02-09:Comment/51339782011-02-04T19:16:33Z2011-02-04T19:16:33ZXSLT to grab dynamic metadata from a folder and content/data def info from a child block<div><p>If you can move the dynamic metadata fields into the data
definition, that is certainly an option as well; It really depends
on how you want to organize your information, whether or not it
those fields make sense being attached to a folder more than being
attached to a block, and what they're used for.</p></div>Amytag:help-archives.hannonhill.com,2010-02-09:Comment/51339782011-02-04T19:46:32Z2011-02-04T19:46:32ZXSLT to grab dynamic metadata from a folder and content/data def info from a child block<div><p>Amy,</p>
<p>Thank you. That is very helpful!</p>
<p>James "Jamie <a href=
"http://people.jmu.edu/johns2ja">http://people.jmu.edu/johns2ja</a>"
Johnson, BBA, MA, A+<br>
<a href=
"http://certification.comptia.org/a/">http://certification.comptia.org/a/</a>,
ACHDS<br>
<a href=
"http://train.apple.com/certification/achds.html">http://train.apple.com/certification/achds.html</a>,
HDA<br>
<a href=
"http://www.thinkhdi.com/certification/individualCertification/HDABootcamp.aspx">
http://www.thinkhdi.com/certification/individualCertification/HDABootcamp.aspx</a>,<br>
HDM<br>
<a href=
"http://www.thinkhdi.com/certification/individualCertification/hdm.aspx">
http://www.thinkhdi.com/certification/individualCertification/hdm.aspx</a>,
MOS<br>
<a href=
"http://www.microsoft.com/learning/mcp/officespecialist/default.mspx">
http://www.microsoft.com/learning/mcp/officespecialist/default.mspx</a>,<br>
W3S/HTML <a href=
"http://www.w3schools.com/cert/cert_html.asp">http://www.w3schools.com/cert/cert_html.asp</a><br>
JMU Information Technology Web Developer<br>
Browser Detection and Test<br>
<a href=
"http://isapps.jmu.edu/tutorials/browser/BrowserDetection.asp">http://isapps.jmu.edu/tutorials/browser/BrowserDetection.asp</a></p>
<p>/"Test everything. Hold on to the good."/ 1 Thessalonians
5:21<br>
<a href=
"http://www.biblegateway.com/passage/?search=1%20Thessalonians%205:21&version=NIV">
http://www.biblegateway.com/passage/?search=1%20Thessalonians%205:21&version=NIV</a></p></div>Jamie johnson