Chris, Kevin, thanks for feedback.
On Jun 28, 2009, at 9:04 PM, Chris F-2 wrote:
> If you allow a block to be displayed in multiple areas, is there a
> way for a
> block to say "only display in sidebar if im not displayed in
> content"? Or
> another might be display in both. If you create a module where a theme
> blocks a certain location, you may want an alternate location to be
> displayed? Would this logic be better handled in the module through
> code or
> through the admin UI?
Initially, at least, I doubt that we'll allow duplicate block
placement. I can see, however, how this might be required at some
point. Perhaps, at some point, block duplication through the admin UI
would be allowed. I'll defer how this is handled to Bharat and Tim.
> Are blocks always square shaped by nature? (as in a full sized div).
> If you
> would like to place icons directly above an image for example, would
> you use
> a block or not? Just thinking in addition to this - maybe the
> creation of an
> "icon" block that is displayed directly above an image that other
> modules/blocks can add their icon to the list?
Blocks are rectangular in shape. Blocks are not intended to be placed
within the album or photo content region. I'm not sure what you intend
to do here by placing icons.
> In terms of zones/views (home, album, photo, etc). Are you able to
> define
> custom zones? If i created a page for example that is called exif
> which is a
> full screen representation of the exif details of an image - how
> would i
> define a block to show on this page?
I'm using the term region, rather than zone. If a module or G3 core
provides a view then yes, it would have regions. Regions are defined
across all views, you cannot assign a region to just one view.
> In terms of writing a block module, will there be data passed easily
> to
> this? Eg album/photos, is there easy access to both of those bits of
> data?
Not sure I understand what you mean here. Modules can provide blocks.
What do you mean by a "block module"?
> I guess also in the calling of a block module, the location will be
> passed
> through to it so it can display differently depending on location -
> will
> this be the case?
No. My thinking is that blocks can be added to views, ordered within
template regions, and that's it.
> Also i'm guessing that for this bit a lot of the internal
> functionality in
> g3 can be exposed as block modules to allow turning this on/off,
> changing
> location and easy customisation by authors if the block doesnt
> exactly suit
> their needs.
The template system in G3 already allows theme developers to override
a module's default block template within the theme (
http://gallery.menalto.com/node/88326#comment-311328
).
> Chad Kieffer wrote:
>>
>> Hello,
>>
>> I've posted a draft block administration UI spec on the codex and
>> have
>> added a link to this spec in the related Trac ticket. The UI takes
>> queues from both Wordpress and Drupal block admin interfaces.
>>
>> Feedback is welcome.
>>
>>
http://codex.gallery2.org/Gallery3:Block_Management_UX>>
>> thanks,
>> Chad
------------------------------------------------------------------------------
__[ g a l l e r y - d e v e l ]_________________________
[ list info/archive -->
http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download -->
http://gallery.sf.net ]