tag:help-archives.hannonhill.com,2010-02-09:/discussions/xslt-formats/118-page-chooserCascade CMS: Discussion 2012-03-30T17:29:28Ztag:help-archives.hannonhill.com,2010-02-09:Comment/148488402012-03-28T19:49:10Z2012-03-28T19:49:10ZPage Chooser<div><p>Through a Page Choose, only the page itself is going to be
available. So unfortunately the parent folder Metadata is not going
to be available.</p>
<p>What's the situation (if you don't mind)? Maybe I can make
another suggestion.</p></div>Charlie Holdertag:help-archives.hannonhill.com,2010-02-09:Comment/148488402012-03-28T20:03:20Z2012-03-28T20:03:20ZPage Chooser<div><p>I am building a video aggregate site. The main page has a list
of thumbnails and links to a detail page where the video is
embedded. The detail pages are contained within a folder which
contains metadata with the name of the collection. I want to be
able to put the collection name in once, then be able to pull this
name in on the main page along with the thumbnail associated with
the page that has been chosen. I have successfully pulled it in on
the pages located within the directory.</p></div>jvienneautag:help-archives.hannonhill.com,2010-02-09:Comment/148488402012-03-28T22:10:36Z2012-03-28T22:10:54ZPage Chooser<div><p>Let me see if I understand correctly:</p>
<ul>
<li>You have a main page that aggregates all videos and shows
thumbnails of each video.</li>
<li>The main page also links to each individual video page.</li>
<li>Each individual page has a unique video embedded on it.</li>
<li>The individual video pages are stored in different folders to
help categorize them.</li>
<li>The folder has Metadata data which describes the category.</li>
</ul>
<p>Is this correct?</p>
<p>Where in this structure are you using the Page Chooser? Are you
hand picking which videos should be displayed on the main page? And
because of that you also need the category?</p></div>Charlie Holdertag:help-archives.hannonhill.com,2010-02-09:Comment/148488402012-03-29T13:20:25Z2012-03-29T13:20:25ZPage Chooser<div><p>This is correct. The main page highlights certain videos, and
these are hand picked using a page chooser. The goal is to have a
link under the thumbnail on the main page which displays the
category from where the video is located. I am using the display
name for the category from the containing folder. On the individual
pages, I have an index block that indexes the current folder and
uses the display-name of the containing folder. It is used for
breadcrumb navigation as well as the title.</p>
<p>Thanks for your help.</p></div>jvienneautag:help-archives.hannonhill.com,2010-02-09:Comment/148488402012-03-29T22:15:55Z2012-03-29T22:16:17ZPage Chooser<div><p>I can make two recommendations -- the first would require more
work IMO:</p>
<p>One -- Start tagging the categories on the video files. This is
probably not an ideal transition because depending on how many
video pages you have, you'll have to add a dynamic metadata field
to the shared metadata set and then go back and update them all.
Though that process could be automated easily through web
services.</p>
<p>Two -- Use an Index Block to compare page paths to folder paths
for pulling the Display Name off the Category folders.</p>
<ul>
<li>Add a Block Chooser to your main page. This field would be in
the Data Definition. (You could use the "Restrict to Group"
advanced field to hide it from anyone that's not an admin.) The
block that you would select would be an Index Block -- a new Index
Block that you'd create just for this purpose.</li>
<li>This new Block would render normally, a depth of 1, have an
"Index Folder" of whatever the parent folder of your category
folders is, and select "Regular Content" and "User Metadata" for
the other indexed content.</li>
</ul>
<p>Example Asset Tree structure for explaining:</p>
<pre>
<code>- Base Folder
- images
- internal
- categories (choose this folder)
- category1
- category2
- category3
- category4</code>
</pre>
<ul>
<li>The depth of 1 would index JUST the folders and not the videos
inside. You would have a list of XML nodes, along with their
associated Metadata (ie path and display name).</li>
<li>As you process the calling-page data (what's on your edit
screen in your data definition) you're linking to certain videos
but you'll also have access to this list of folders. As you loop
through the videos for output, see which folder's name is found
within the path to the video.</li>
<li>When you find which folder the video is in, you should be able
to access the folder's display name.</li>
</ul>
<p>I think number 2 would be pretty easy to implement and not
require any additional metadata values or re-updated existing
assets.</p>
<p>Now that I've explain (and thoroughly confused), please let me
know if I can clarify this or answer any follow up questions.<br>
Thanks.</p></div>Charlie Holdertag:help-archives.hannonhill.com,2010-02-09:Comment/148488402012-03-30T14:45:53Z2012-03-30T15:24:35ZPage Chooser<div><p>Cool. I think I got it. I'm going to try out the second
option.</p>
<p>I haven't tried accessing an index block from a data definition
before.</p>
<p><xsl:value-of select="folders/content/node()"/><br>
This doesn't seem to be working...</p>
<p>When I select the index block it appears all the folder data is
there. When I select it with a block-chooser the content node is
empty. Not sure why...</p>
<p>I'm running ver 6.10.7. This seems to be a bug in older versions
but I thought this had been resolved.</p></div>jvienneautag:help-archives.hannonhill.com,2010-02-09:Comment/148488402012-03-30T17:24:04Z2012-03-30T17:24:04ZPage Chooser<div><p>I'm sorry for leaving this part out, my mistake. For the
<code><content></code> node of the block chooser to render
the actual content of the block, you'll need to set the "Render
Content Depth" to be 2. This setting is made on the Data Definition
itself and found under the advanced options for the Chooser.</p></div>Charlie Holdertag:help-archives.hannonhill.com,2010-02-09:Comment/148488402012-03-30T17:27:47Z2012-03-30T17:27:47ZPage Chooser<div><p>No worries. I tried 1 and 0. 2 works perfectly. Thanks for your
help. I really appreciate it.</p></div>jvienneautag:help-archives.hannonhill.com,2010-02-09:Comment/148488402012-03-30T17:29:26Z2012-03-30T17:29:26ZPage Chooser<div><p>Cool. Feel free to reopen this if you need more help but it
sounds like you've got a good grasp. I'm glad I could suggest
something that would help solve the situation and not add any
additional content repurposing.</p></div>Charlie Holder