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!

AttachmentSize
block.jpg18.02 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Mon, 2009-09-07 16:39

{g->block type="core.PhotoSizes" class="giInfo"}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bigu_c

Joined: 2007-10-28
Posts: 265
Posted: Mon, 2009-09-07 17:03

Hi, thank you Dave

Can I change from dropdown menu to LIST VIEW like this:

(view attachment file).

Thanks!

AttachmentSize
list-view.jpg21.66 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Mon, 2009-09-07 17:37

Edit PhotoSizes.tpl

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bigu_c

Joined: 2007-10-28
Posts: 265
Posted: Mon, 2009-09-07 17:42

I saw /modules/core/templates/blocks/PhotoSizes.tpl

But I don't know how to edit for my idea :(

Can you help me?

Thanks!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Tue, 2009-09-08 00:45

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

 
bigu_c

Joined: 2007-10-28
Posts: 265
Posted: Tue, 2009-09-08 02:20

I know some HTML but not smarty :(

Can you tell me in detail?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Tue, 2009-09-08 03:01

Sorry I don't have time to do the modification for you.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bigu_c

Joined: 2007-10-28
Posts: 265
Posted: Tue, 2009-09-08 03:11

Thank you,

Can you tell me this: http://gallery.menalto.com/node/90979

Thanks again!

 
bigu_c

Joined: 2007-10-28
Posts: 265
Posted: Sun, 2010-01-17 16:11

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.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Sun, 2010-01-17 18:08

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