![]() |
VBPG HTML Extractor - Convert URL to CMS Article
1 Attachment(s)
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. |
**Reserved**
|
Thanks for releasing this!
Does this convert it page for page or can I use this to convert my 200 html pages to vbCMS? If so then how does this handle category structure? |
Quote:
|
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} |
Quote:
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. |
Great mod. Tagged for later.
|
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?
|
Can it do RSS FEEDS and update it
|
Your criteria or the body tags did not return any valid content. Please press the back button and try again
any help what the reason? thanks cool mod |
All times are GMT. The time now is 02:27 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|