tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/18009-mass-edit-of-a-meta-fieldCascade CMS: Discussion 2015-06-30T18:37:39Ztag:help-archives.hannonhill.com,2010-02-09:Comment/367706012015-05-06T22:38:58Z2015-05-06T22:39:21ZMass Edit of a meta field<div><p>Is there any way to do a mass edit of a meta field? We created
one to show for a-z index, radio button for yes and no.</p></div>ssuhtag:help-archives.hannonhill.com,2010-02-09:Comment/367706012015-05-07T11:47:00Z2015-05-07T11:47:00ZMass Edit of a meta field<div><p>Hi,</p>
<p>I have two questions for you:</p>
<ol>
<li>
<p>Can you be more specific? Are you trying to edit a metadata
field associated with blocks or pages? Do you want to set the
value, say, by default to no on every page?</p>
</li>
<li>
<p>Can you handle web services? If you can, this is probably the
easiest way to do mass edit.</p>
</li>
</ol>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/367706012015-05-07T14:59:08Z2015-05-07T14:59:08ZMass Edit of a meta field<div><ol>
<li>
<p>We are trying to edit pages. Yes, we would like it to be No. We
also need to change all existing pages to have the value as No.</p>
</li>
<li>
<p>We have not used web services yet.</p>
</li>
</ol></div>ssuhtag:help-archives.hannonhill.com,2010-02-09:Comment/367706012015-05-07T15:14:14Z2015-05-07T15:14:14ZMass Edit of a meta field<div><p>As I pointed out, a web service program probably is the easiest
way to achieve this. For me, a few lines of code will do the trick.
If you are interested in web services, let me know. I will give you
some pointers.</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/367706012015-05-07T15:17:49Z2015-05-07T15:17:49ZMass Edit of a meta field<div><p>Sure, we are definitely interested.</p></div>ssuhtag:help-archives.hannonhill.com,2010-02-09:Comment/367706012015-05-07T15:31:24Z2015-05-07T15:31:24ZMass Edit of a meta field<div><p>I would suggest the following. Look at my <a href="http://www.upstate.edu/cascade-admin/projects/web-services/courses/introductory-course/index.php">
Introductory Course</a>. You don't have to go very far. Lesson 1
and Lesson 2 will do. After that, if you are still engaged in web
services, then download my library and try the exercises. When you
feel comfortable, you can tackle your problem with a single
page.</p>
<p>If you can handle a page, then you need something more
complicated. Look at my <a href="http://www.upstate.edu/cascade-admin/projects/web-services/oop/classes/asset-tree/index.php">
AssetTree</a> class. Eventually, you need to create an asset tree
hooked up with a Base Folder, traverse it, and modify all pages
inside. You can do one site at a time, or you can use
<code>$cascade->getSites()</code> to get all sites you have on
your Cascade instance and loop through them.</p>
<p>Good luck!</p>
<p>Wing</p></div>Wing Ming Chan