Page 1 of 1

Detail html page references

Posted: Mon Jun 11, 2007 7:04 pm
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

Posted: Tue Jun 12, 2007 12:38 pm
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.

Posted: Tue Jun 12, 2007 2:39 pm
by drjohncmac
Thanks Conor!

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

John