How can I move a sidebar block to another area of the page ?
SeesCandy
Joined: 2013-06-18
Posts: 26 |
Posted: Sat, 2013-06-22 23:34 |
I am trying to move a sidebar block module "IPTC" to under the large Photo. I read this 'how to' post; I cant' find on this post which file exactly I am supposed to edit. I'm using the GreyDragon theme. Can someone please tell me which file I'm supposed to edit ? Thank you. |
|
Posts: 3
Can I get a screen shot of where the item is you want to move and where you would like to have be shown? That would help very much, thanks.
Posts: 27300
Add:
<?= iptc_block::get("iptc", $theme) ?>
to last line in views/photo.html.php of the theme you are using.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 26
Thank you for your help.
Is this correct ?
views/photo.html.php, last section...
*Before*:
---------------------------
</div>
<? if (($theme->photo_descmode == "bottom") and ($_description)): ?>
<div id="g-info"><div class="g-description"><?= $_description ?></div></div>
<? endif; ?>
<?= $theme->add_paginator("bottom", FALSE); ?>
<?= $theme->photo_bottom() ?>
</div>
<?= $script ?>
*After*:
---------------------------
</div>
<? if (($theme->photo_descmode == "bottom") and ($_description)): ?>
<div id="g-info"><div class="g-description"><?= $_description ?></div></div>
<? endif; ?>
<?= $theme->add_paginator("bottom", FALSE); ?>
<?= $theme->photo_bottom() ?>
</div>
<?= $script ?>
<?= iptc_block::get("iptc", $theme) ?>
Do you think this might conflict with the below module ?;
Under Photo Text 1 Puts the description of an album or photo under that photo's thumbnail.
Posts: 27300
Looks good to me.
You can test by just placing some text to see how it works and its position with other data.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 26
Thanks so much.
I'm probably not going to be able to keep up with you regarding testing with some text, sorry.
I think you mean (at the bottom);
<?= "some test text here" ?>
And change the color, position with ? css from somewhere.
Thank you again.
Posts: 27300
No. Just add plain text, on a new line, to the view page to see where you want it to show. It is just HTML no need to add php.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 26
OK, thanks for your help floridave.
Where would you use css to set color, size, etc. ?
Regards.
Posts: 27300
since you are using the Gery Dragon theme:
http://codex.galleryproject.org/Gallery3:Themes:greydragon#Purpose_of_custom.css
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 26
OK, thank you much for your help floridave.
Cheers