Doubts about how change a block plugin's position from an area to another

Rodrigo Souto rodrigo at colivre.coop.br
Tue Nov 5 20:02:51 BRST 2013


Hey Fábio,

Couldn't see any problem superficially. You might check this
merge-request which implements a block through the new block hotspot
infra and compare your codes:
https://gitorious.org/noosfero/noosfero/merge_requests/336

And as recommendation, try to write tests to confirm that your block is
being added whereever you want it to be added, so that you can verify it
easier and automatically.

Fábio Teixeira escreveu isso ai:
> Hello guys, we in UNB team are developing some block plugins, however this
> blocks cant move from an area to other.
> 
> So we take a look at the blocks code and saw that, if we put the block name
> in "Box.acceptable_center_blocks" and "Box.acceptable_side_blocks". It
> works but, its a plugin and we shouldn't insert this code on noosfero's
> core.
> Then we saw the method "extra_blocks" inside the plugin lib. That could
> make it, however it also didn't work.
> 
> We tried this first:
> 
>   def self.extra_blocks
>       {
>         <plugin name> => { :position => [1,2,3] }
>       }
>   end
> 
> Then this:
> 
>   def self.extra_blocks
>       {
>         <plugin name> => { :type => boxes_holder.class, :position =>
> [1,2,3] }
>       }
>   end
> 
> But any one worked.
> 
> So if someone could help us, we would be grateful.

> _______________________________________________
> Noosfero-dev mailing list
> Noosfero-dev at listas.softwarelivre.org
> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev


-- 
Rodrigo Souto <rodrigo at colivre.coop.br> :: 55 71 8131-7714
Colivre - Cooperativa de Tecnologias Livres
http://www.colivre.coop.br/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20131105/8f6df1ef/attachment.pgp>


More information about the Noosfero-dev mailing list