Converting the data from htmlpages to the pages module was quite easy with the following query, assuming your pages-module has no data in it before the conversion:
Code
insert into pn_pages (pn_pageid,pn_title, pn_content,pn_counter,pn_displaywrapper,pn_displaytitle, pn_displaycreated,pn_displayupdated, pn_displaytextinfo,pn_displayprint,pn_obj_status, pn_cr_date,pn_cr_uid,pn_lu_date,pn_lu_uid) select pn_pid,pn_title,pn_content,'0','1','1','1','1','1', pn_printlink,'1',pn_timest,pn_uid,now(),pn_uid from pn_htmlpages
I use file-based short urls. To keep my existing links working I added
Code
# htmlpages to pages
RewriteRule ^module-htmlpages-display-pid-([0-9]+).p?html?$ module-Pages-display-pageid-$ 1.html
RewriteRule ^module-htmlpages-display-pid-([0-9]+).p?html?$ module-Pages-display-pageid-$ 1.html
just after the basic entry rules.
Above query doesn't set the category though.
Edited by bvdbos3 on Sep 23, 2011 - 04:35 PM.
