Not all of the content from the old system matches the wireframes of the new system.
- The div with the class "deviceName" must be moved into the div with the class "deviceDetails".
- The div with the class "deviceInfoBlock" and one h4 that says "Device Description" must be partially relocated. The h4 and paragraph tags must be moved to the div with the class "deviceDetails", but the ul and li tags must remain.
- Other migrations of content also need to be moved. At this point, I would recommend visual inspection.
Two JavaScript files are included at the bottom of each device page. These should be removed. The following regular expression should find the two JavaScript tags.
<script[\s]*type="text/javascript"[\s]*src="[\s\S]*"><\/script>
The includes are now meaningless. The following regular expression will find all template tags that need to be replaced.
<!--#include[\s\S]*-->
The entire first half of the device files are loaded with all sorts of random metadata. Liferay interperets most of it as line breaks, which is not good. This could be fixed by creating some css selectors that change them to display: none
, but I'd recommend deleting the metadata entirely. From what I can tell, this can all be stripped out during the import to Liferay. The following regular expression will find a majority of this metadata.
<!--\?RDFA-START\?-->[\s\S]*<!--\?RDFA-END\?-->
That still leaves a pretty significant portion of the metadata on top, which can mostly be found with the following regular expression.
<p>[\s]*<meta[\s\S]* \/>[\s]*<\/p>
Another way to remove all of the metadata would be to strip all content before the first <div id="fncontainer">
, which should also work.