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

Victor Franco Costa vfcosta at gmail.com
Tue Nov 5 20:16:44 BRST 2013


I also have this problem. For now, I'm solving with this:

https://github.com/SerproLivre/noosfero/commit/3c42961da48b8901b92a18ed949b4114ff3880b6


On Tue, Nov 5, 2013 at 7:02 PM, Rodrigo Souto <rodrigo at colivre.coop.br>wrote:

> 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/
>
> _______________________________________________
> Noosfero-dev mailing list
> Noosfero-dev at listas.softwarelivre.org
> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev
>
>


-- 
Victor Franco Costa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20131105/7b330d7a/attachment.html>


More information about the Noosfero-dev mailing list