We already use the Bob Swift CLI.
Now I want to remove some content of plenty pages.
I suppose the removeContent is the right action for that, but documentation is minimalistic.
Is there some examples out there how to remove content from pages via CLI?
Thanks,
ciao
ryder
Hello @ryder - The way to remove content from many pages at once is to use the runFromPageList action with removeContent as the common action.
Here's an example where you would remove all of the pages that have a certain label:
--action runFromPageList --labels "my-label" --common "--action removeContent --id @pageId@"
BTW - I'm the product manager for the Bob Swift CLI apps.
thanks for that example. But this is not what I need.
And sorry for my bad explenation.
This is what I need and I thought, removeContent is the right action. But it seems, it is not.
I have on a set of page a special heading. This heading is always the same. And I want to remove this heading on every page. So I know how to find my pages with runFromPageList, but I do not understand how to remove the heading from pages.
ciao
ryder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No worries. In that case try storePage with the findReplace or findReplaceRegex parameter to change or remove the heading.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for this hint. Pls. let know, there is no explizit action for delete or remove page content, right?
I had to use findReplace for finding the text content and when I want to remove this content. I had to replace it with nothing, right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that's the correct way to do it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.