Author Topic: Using different detaile templates for different file extension.  (Read 5310 times)

0 Members and 1 Guest are viewing this topic.

Offline nillo

  • Pre-Newbie
  • Posts: 2
    • View Profile
Hello!
How can I vary content of my "detailes.html" in case of file extension?

As examle it could be so:

{if image_avi}
XXXXXXXXXXXXXXXX
{endif image_avi}

I try to solve this problem by placing  {image_description} {image_keywords} {image_date} and etc. instructiones directly in media/avi.html, media/jpg.html, ...  - but they return data on randome images...

Help me ! :)

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Using different detaile templates for different file extension.
« Reply #1 on: July 12, 2005, 04:04:07 PM »
Hi,

i use this mod for different cat-templates and different details-templates:

http://www.4homepages.de/forum/index.php?topic=1847.0

You need for each cat a seperate details.html
In the new template you can delete now the:
{image_description} {image_keywords} {image_date} and etc.


Gruß
Kurt

Offline nillo

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Using different detaile templates for different file extension.
« Reply #2 on: July 12, 2005, 06:52:24 PM »
Tnank you! Its solve my problemes!