How can I edit CSS-Templates?

Any trouble you encounter with the Pedias, here's the place to ask for help.
Post Reply
Nachtmensch
Contributor
Contributor
Posts: 6
Joined: Thu Jul 06, 2006 2:10 am

How can I edit CSS-Templates?

Post by Nachtmensch »

When I open the html-files (templates) in GoLive and save it under a new name they are demaged. I made no other changes, only the documentname. I think Golive saves it not as CSS. It is a normal html-document. So the new file is not longer connectet with styles in the imagesfolder. I speak about the iPhone template.

I don't know CSS, only html.

How can I open the MyiPhone.html file, make some changes, and save it in the right document format?

And the socond question would be: Were are the information hidden in CSS?
I mean things like [key:theatrical] [key:genre][key:rated]... In the nomal html-templates I found them easily in the html-code.
User avatar
Nora
Site Admin
Posts: 2155
Joined: Sun Jul 04, 2004 5:03 am
Contact:

Post by Nora »

Unfortunately the 'Edit' button in the export window only opens the iPhone.html template, not the connected iPhoneDetails.html template as well. So what you have to do is select the DVDpedia icon and ctrl-click it to bring up a contextual menu. From there navigate to Show package contents/Contents/Resources/Templates and make a copy of the 'iPhoneDetails.html' template, rename that copy to 'MyiPhoneDetails.html' and save the copy in the Templates folder in User/Library/Application Support/DVDpedia.
Now you'll have to open the MyiPhone.html template once more and change the link at the top from

Code: Select all

<meta name="details" content="iPhoneDetails.html" />
to

Code: Select all

<meta name="details" content="MyiPhoneDetails.html" />
.

The files are regular HTML files so that's what you want to save them as. The CSS file is separate and saved under Images/iphone.css. When you're viewing the HTML files in GoLive, the CSS will not be loaded because the link is different but you can still edit and modify the HTML without affecting the CSS file.

The CSS is just for layout, it tells the template how to display the information.
Nachtmensch
Contributor
Contributor
Posts: 6
Joined: Thu Jul 06, 2006 2:10 am

Post by Nachtmensch »

Thanks, this works great, also with the other templates.
Nachtmensch
Contributor
Contributor
Posts: 6
Joined: Thu Jul 06, 2006 2:10 am

Post by Nachtmensch »

One more thing for all the others. The edited files work also when they are still in the contents/Contents/Resources/Templates. But they are automaticaly deleted with the next DVDpedia update. So don't forget to copy them to User/Library/Application Support/DVDpedia !!!!
Post Reply