Hi

Can anybody give me a hint of how I can add php code so that I can show an small image in the teaser on the front page, and a large one in the main content page?

Meta code:

<? if (location == "front_page") {
echo "Only local images are allowed.";
else {
echo "Only local images are allowed.";
}

What should the If statement look like?

Thanx for any help.

Comments

Boletus’s picture

Ops. my code was stripped away :)

like this

I F (Location == first page )
show small image
e l s e
show large image.
E N D I F

Marc Bijl’s picture

Take a look here:
- http://drupal.org/node/61252
- http://drupal.org/node/58888

Module can be found here:
- http://drupal.org/project/excerpt

___________________
discover new oceans
lose sight of the shore

Boletus’s picture

Thanks! I will give it a try.

Boletus’s picture

Thank you. Splendid! :) Perfect.

Marc Bijl’s picture

Cheers mate :)

___________________
discover new oceans
lose sight of the shore

knugar’s picture

The teaser image module might be just what you are looking fore. I haven't tried myself but so please let me know if it it is of any help.



------------------------
Drupal makes a great job of hosting my site Nyfiken vital | om kost och hälsa.