Version: 1.0.0, by Dylanblitz
Developer Last Online: Nov 2023
Category: Administrative and Maintenance Tools -
Version: 4.0.8
Rating:
Released: 11-22-2010
Last Update: Never
Installs: 7
Uses Plugins
Additional Files Is in Beta Stage
No support by the author.
Not sure if anyone will need this. A friend asked me to make it for him so he could convert a lot of static pages from his old site into CMS Articles. So I figured I'd release it here in case it'll help anyone else.
This will take a url and convert it into a Static Page CMS Article. Depending on the layout of the original page and your understanding of regex you might get away with minor editing. If you are pulling from a Drupal site or something like it, it can be very easy to pull just the data. On the sample site I show I had to do no editing of the body text.
I am not the greatest with regex so please don't ask me to figure out the regex expression to get your content into the page. If you can't figure it out, I have the default set to use the body tags and you'll have to edit out the extra menu/banner/etc content.
I ran into one issue, not sure what causes it. When I was working with it on my site it worked no problem. When I installed a vanilla vB with the sample CMS data it wouldn't show any of the extracted articles on the All Sections view. Once I clicked the Verify and Repair Node Table it worked fine.
In Alfa1's case, I think he has his static pages in specific folders, and each folder is named for a specific category. With that said, could you loop it to convert every file in a specified directory?
In Alfa1's case, I think he has his static pages in specific folders, and each folder is named for a specific category. With that said, could you loop it to convert every file in a specified directory?
{runs and hides}
If it's on the same server and accessible with the current account it would be fairly easy. Walking a remote directory is harder, especially if you don't have ftp access.
So it depends really on how the server is setup.
Another way is to have a textbox where you can add several links at once, say a list of 200 of them, and cycle through those. But that's just easier on the coder
I'll play around and see if I can make it have several different options depending on how the site/server is setup.
In the case of multiple though I'd have to go with defaults on most of the options with the admin selecting the section to enter the new articles into. Then the admin would have to go through and modify the articles for their preview text, settings, etc.
Interesting, I'm wondering how this would work with the new editor and also is there a way to make it post the static pages as threads instead of articles?