Hi, i want to ask about put the li galleries into a div with some id or specifical class to make a better css formating of the gallery.

Many thanx in advance

Comments

Phillip Mc’s picture

you can open up your page.tpl.php file, rename it page-image.tpl.php and put a new div before the <?php print $content ?> line.

for example:

<div class="mygallery">
  <?php print $content ?>
</div>
picans’s picture

Priority: Normal » Minor

I do it but it doesn't work. Maybe a problem with the template ( foliage ).

<div id="outerColumn">
		<div id="innerColumn">
			<div id="soContainer">
				<div id="content">
					<div class="inside">
						<?php if ($mission) { ?><div class="mission"><?php print $mission ?></div><?php } ?>
						<?php if ($header) { ?><div class="intro"><?php print $header ?></div><?php } ?>
						<?php print $breadcrumb ?>
						<?php if ($tabs) { ?><div class="tabs"><?php print $tabs ?></div><?php } ?>
						<?php if ($title) { ?><h1 class="title"><?php print $title ?></h1><?php } ?>
						<?php print $help ?>
						<?php if ($show_messages) { print $messages; } ?>
						<div class="galeriestocss">
						<?php print $content; ?>
						</div>
						<?php print $feed_icons; ?>
					</div>
				</div>
...

renamed as you say

Phillip Mc’s picture

(please delete this. I accidentally double posted)

Phillip Mc’s picture

d'oh. maybe renaming it as page-gallery.tpl.php might work...if that doesn't, you can use an IF statement...

i.e. in your page.tpl.php file add this in,

<?php if (arg(0) == 'image') { ?>
<div class="galeriestocss">
<?php }?>
<?php print $content ?>
<?php if (arg(0) == 'image'){ ?>
</div>
<?php }?>

note: 'image' might not be the right arg(n) to use...when you click on the link to your gallery..just use what your site is using. e.g. www.example.com/image means that Arg(0) is 'image'.

Phillip Mc’s picture

another option is to use this handbook page which is marked for 5.x but may work with 6: http://drupal.org/node/41257

sun’s picture

Category: feature » support
Status: Active » Closed (won't fix)

Sorry, unfortunately this request is way too specific. Please have a look at the issue queue - Image maintainers are buried already. You might want to try to get further support at http://drupal.org/support. Additionally, the answer to your question might be covered in the handbooks at http://drupal.org/handbook/modules/image already.
If you were able to solve this issue on your own in the meantime, you might want to add the involved steps to this closed issue, so other users searching for a similar solution might find it.