Detail html page references

Tell us about your wildest feature dreams. Or just harmless suggestions for improvement.
Post Reply
drjohncmac
Captain
Captain
Posts: 22
Joined: Fri Feb 02, 2007 8:55 pm

Detail html page references

Post by drjohncmac »

Any way to generate detail pages which are "linked" to the specific movie? for example, Collection ID or other generic field.

Thus 325.html would be Collection ID 325 in the DVDPedia collection.

Changing the Cover.html template is very easy ... but I don't see a way to change the names of the generated detail html files. Using [Key:Collection] works in the cover.html template, with a reference to the collection id.html files, but each detail .html file is generated as Page1.html, Page2.html, ..., etc.

Looking for a way to generate detail html pages only once for the entire collection, and then other, smart collections, would only have to generate the cover.html referencing the detail html pages.

Thanks

John
User avatar
Conor
Top Dog
Posts: 5344
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Post by Conor »

Download DVDpedia again and you will be able to use a new meta tag command in your export template that will create the export based on the internal ID instead of sequentially, allowing you to link to the details page from any subsequent export.

In the details export template add this at the following line in the head to let it know you want the file named after the ID.

Code: Select all

<meta name="uidNaming" content="yes" />
In the main index pages (in your case the Covers template) to link to the details (assuming you export to a details folder) would be:

Code: Select all

<a href="details/[key:uid].html">details...</a>
Here is the [url=dvdpedia://www.bruji.com/download?temp/UIDWhite.zip]White template modified[/url] called UIDWhite, as sometimes it's easier to understand by seeing an example in action. Look for DRJOHNCMAC to find the two changes in the files.

P.S. You would also append details/ to the [Key:CoverImageURL] key in the covers template to reference the images exported by the details and not have several images folders.
drjohncmac
Captain
Captain
Posts: 22
Joined: Fri Feb 02, 2007 8:55 pm

Post by drjohncmac »

Thanks Conor!

This seems to be exactly what I'm looking for. Much easier than MySQL & php.

John
Post Reply