By jimmyg164 on
Hi all - still trying to figure this one out anyone
Hi
i am using the code to display an image - is there a way to display all rather than a new line for all (note 0,1,2,3,4,5) also for IE how can i display a null.
<div class="newssm">
<a href="<?php print $node_url?>"><?php print theme('imagecache', 'smallnews', $field_album [0]['filepath']); ?></a>
<a href="<?php print $node_url?>"><?php print theme('imagecache', 'smallnews', $field_album [1]['filepath']); ?></a>
<a href="<?php print $node_url?>"><?php print theme('imagecache', 'smallnews', $field_album [2]['filepath']); ?></a>
<a href="<?php print $node_url?>"><?php print theme('imagecache', 'smallnews', $field_album [3]['filepath']); ?></a>
<a href="<?php print $node_url?>"><?php print theme('imagecache', 'smallnews', $field_album [4]['filepath']); ?></a>
</div>
Comments
foreach?
You can always use a
foreachas an alternative to the lines written above--
Qasim Zeeshan
http://qasimzeeshan.com
foreach
Hi
do you have a code example
much appreciated
Example
Here is a rough example, I haven't executed it.
--
Qasim Zeeshan
http://qasimzeeshan.com
I would use l function to
I would use l function to generate the link tho
My personal blog | twitter:@sotak
Nice addition. Thanks
Nice addition.
Thanks
--
Qasim Zeeshan
http://qasimzeeshan.com
getting the following
Hi Thanks for the replies from both of you
i get the following error
Parse error: syntax error, unexpected '}' in /hsphere/local/home/jimmyg164/car99.net/sites/all/themes/inverness/node/node-news.tpl.php on line 129
kind regards
jimmy
can't see any problem with
can't see any problem with the code above, you might want to paste your whole .tpl.php file on drupalbin.com and share it with us
My personal blog | twitter:@sotak
node-news.tpl.php
Display on page.tpl.php
I am currently using this code in my page.tpl.php
I have 2 imagecache formet setup - "large" and "thumubnail"
I would like the first image to use the "large" format. And the remaining 3 images to use the "thumbnail" format.
How would I incorporate the imagecache format into the above code?
I found the solution
I found the answer here: http://drupal.org/node/274487