tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/13783-making-bulk-changes-to-all-pages-in-a-folderCascade CMS: Discussion 2014-08-20T14:20:09Ztag:help-archives.hannonhill.com,2010-02-09:Comment/340710032014-08-08T15:44:26Z2014-08-08T15:44:26ZMaking bulk changes to all pages in a folder<div><p>Hi Matt,</p>
<p>I believe there may be a few ways to accomplish this, see below.
The route you choose would depend on whether you want to allow
these default sidebars to be removed/ordered by the user.</p>
<p><strong>Index Block based on calling page context</strong></p>
<p>You could have an option in your Data Definition (probably a
checkbox) to include "standard sidebar items." Using a Velocity
Format, you could check if this option is selected and, if so, use
the page's location and the <a href=
"http://www.hannonhill.com/kb/Script-Formats/#locator-tool">Locator
Tool</a> to grab and display the corresponding sidebar items. Going
a step further, you could also display any user defined sidebar
items above or below these standard sidebar items.</p>
<p><strong>Custom Asset Factory Plugin</strong></p>
<p>You could create a custom <a href=
"http://www.hannonhill.com/kb/Asset-Factory/#writing-your-own-asset-factory-plug-in">
Asset Factory Plugin</a> that is applied to the page's Asset
Factory. Theoretically, this plugin would check the placement
folder and "pre-fill" sidebar items if none were added by the user
during page creation.</p>
<p>Note: these plugins are executed after asset creation (ie after
clicking submit), so you wouldn't be able to fill the sidebar items
in initially when the user uses the New menu.</p>
<p><strong>Create multiple Asset Factories</strong></p>
<p>Sort of the opposite of the Asset Factory Plugin, you could
create multiple <a href=
"http://www.hannonhill.com/kb/Asset-Factory/">Asset Factories</a>
for each "location" and use a base asset that has the desired
sidebar items filled in already. With this option, the sidebar
items will be pre-filled when your user selects the asset factory
within the New menu.</p>
<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/340710032014-08-08T18:37:23Z2014-08-08T18:37:23ZMaking bulk changes to all pages in a folder<div><p>Hi Matt,</p>
<p>Or you can use web services to plug in the sidebar items into
asset choosers of pages, depending on where the pages are. You can
also attach these items to regions at the page level.</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/340710032014-08-08T18:59:58Z2014-08-08T18:59:58ZMaking bulk changes to all pages in a folder<div><p>Thank you Ryan and Wing for the great responses!<br>
I’ll look into these.</p>
<p>Wing,<br>
Can you go into more details about what you mean when you say
“use web services”?<br>
It would be much appreciated.</p></div>matt.chappeltag:help-archives.hannonhill.com,2010-02-09:Comment/340710032014-08-08T19:06:44Z2014-08-08T19:07:26ZMaking bulk changes to all pages in a folder<div><p>Matt,</p>
<p>It seems that you do not know too much about web services. But
it is never too late to start. With web services, you can write
code (I use PHP) to communicate with Cascade and ask it to do
various things for you. For example, you can retrieve a page,
retrieve a block, and attach the block to a block chooser in the
page. This could be a whole new monster for you, but taming it will
bring you great power. See <a href=
"http://www.upstate.edu/cascade-admin/projects/web-services/oop/classes/asset-classes/page.php">
Page</a> for details. If you are interested in web services, my
site could be a good starting point.</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/340710032014-08-08T19:08:32Z2014-08-08T19:08:32ZMaking bulk changes to all pages in a folder<div><p>The links and advice are much appreciated!<br>
Thank you.</p>
<p>-Matt</p></div>matt.chappel