anybody know a good way to randomly pick a picture from a file and display it into a mini panel (or block) i know there are some scripts but i just can seem to find one.
I have a homepage whose requirement is to show a carousel or a 300x300 image with headline and deck as my feature or hero content.
The editor will add either add images for carousel or add one 300x300 image, headline and deck. Editor also select from drop down box either "Carousel" or "300x300".
Now I have to create my homepage as per the value selected by editor.
function mytheme_preprocess_page(&$vars) {
if (arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2))){
echo 'test';
$vars['theme_hook_suggestions'][] ='page--company';
}
}
i want to the tag/vocabulary use the page--company.tpl.php template. i put the above code into my theme's template.php file. but it can't work. on the term page. it can output test. but it doesn't in invoke the page--company.tpl.php. it use the page.tpl.php. what't wrong with my code?
I read some discussions from this forum. I was impressed that, in ZEN theme. the column(sidebars) height can't be streched to the full height. It is bind with block height. If I want a sidebar with full height in ZEN theme, what is the easest way to do. Any update on full height sidebar?