What's this block?
|
bigu_c
Joined: 2007-10-28
Posts: 265 |
Posted: Mon, 2009-09-07 11:01
|
|||
|
I want to add this feature to my current themes is: Carbon and NZDI but I still don't find out what's this block? Please help me, thank you!
|
||||

Posts: 22892
{g->block type="core.PhotoSizes" class="giInfo"}Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 265
Hi, thank you Dave
Can I change from dropdown menu to LIST VIEW like this:
(view attachment file).
Thanks!
Posts: 22892
Edit PhotoSizes.tpl
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 265
I saw /modules/core/templates/blocks/PhotoSizes.tpl
But I don't know how to edit for my idea
Can you help me?
Thanks!
Posts: 22892
Some knowlage of smarty and html forms are required to edit this file.
Start by removing some of the form info and going from there.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 265
I know some HTML but not smarty
Can you tell me in detail?
Posts: 22892
Sorry I don't have time to do the modification for you.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 265
Thank you,
Can you tell me this: http://gallery.menalto.com/node/90979
Thanks again!
Posts: 265
I have only 4 resolutions, I think this is ok:
<a href="xxx?g2_imageViewsIndex=1">Res 2</a>
<a href="xxx?g2_imageViewsIndex=2">Res 3</a>
<a href="xxx?g2_imageViewsIndex=3">Res 4</a>
Can you tell me what's XXX I need replace in this case if I will add to photo.tpl above codes by manually?
Hope you understand my question.
Thanks.
Posts: 22892
This should get you started:
{section name=imageView loop=$theme.imageViews} <a href="{g->url params=$theme.pageUrl arg1="itemId=`$theme.item.id`" arg2="imageViewsIndex=`$smarty.section.imageView.index`"}"> {if empty($theme.imageViews[imageView].width)} {if isset($theme.imageViews[imageView].isSource)} {g->text text="Source"} {else} {g->text text="Unknown"} {/if} {else} {g->text text="%dx%d" arg1=$theme.imageViews[imageView].width arg2=$theme.imageViews[imageView].height} {/if} {/section}All I did was take the exsisting code and changed the <select> to <a href>
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team