AW: Moving/deleting blocks in the ecommerce layout

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

AW: Moving/deleting blocks in the ecommerce layout

c.schinzer
Start learning!
You need to modify ecommerce/widget/CommonScreens.xml and simply comment in the screen definitions for left and right column the screenlets you don't want.

You should be somewhat familiar with XML though, but I assume you are.


Enjoy.


Carsten

------Originalnachricht------
Von: Bernat Arlandis
An:ofbiz-user
Antwort an:[hidden email]
Betreff: Moving/deleting blocks in the ecommerce layout
Gesendet: 8. Mrz. 2012 18:48

Hi:

I want to hide and reorder some blocks in the left and right columns of
the main layout in the ecommerce site. Is there a way to do it without
modifying template files? I know it has to be easy to do in the
templates but I'm still new to ofbiz and I'd like to learn best practices.

In case I need to edit the templates, is there a way to override the
default ones so that I don't have to apply patches when I update ofbiz?

Thanks!

--
Bernat Arlandis<[hidden email]>
JPL TSolució S.L.



Gesendet mit BlackBerry® Webmail von Telekom Deutschland  
Reply | Threaded
Open this post in threaded view
|

Re: AW: Moving/deleting blocks in the ecommerce layout

Bernat Arlandis
On 08/03/12 20:22, [hidden email] wrote:
> Start learning!
> You need to modify ecommerce/widget/CommonScreens.xml and simply comment in the screen definitions for left and right column the screenlets you don't want.
>
> You should be somewhat familiar with XML though, but I assume you are.
>
>
> Enjoy.

Thanks! I had that solution in mind. Is there a way to override XML
resources and use custom ones without touching ofbiz?

--
Bernat Arlandis<[hidden email]>
JPL TSolució S.L.

Reply | Threaded
Open this post in threaded view
|

Re: AW: Moving/deleting blocks in the ecommerce layout

Pierre Smits
Hi Bernat,

If you want a specific ecommerce layout and design for webshops that is the
way to go. Either transform ecommerce or emcomclone to your liking.

Regards,

Pierre

2012/3/9 Bernat Arlandis <[hidden email]>

> On 08/03/12 20:22, [hidden email] wrote:
>
>> Start learning!
>> You need to modify ecommerce/widget/**CommonScreens.xml and simply
>> comment in the screen definitions for left and right column the screenlets
>> you don't want.
>>
>> You should be somewhat familiar with XML though, but I assume you are.
>>
>>
>> Enjoy.
>>
>
> Thanks! I had that solution in mind. Is there a way to override XML
> resources and use custom ones without touching ofbiz?
>
>
> --
> Bernat Arlandis<[hidden email]>
> JPL TSolució S.L.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: AW: Moving/deleting blocks in the ecommerce layout

c.schinzer
You could of course copy the entire ecommerce folder into your dedicated
application underneath specialpurpose.
However that will:
* require you to edit the ofbiz-component.xml to make sure you have unique
mount points
* require you to mass change all links pointing to "ecommerce" components
into "myapplication" in all widget/ screendefinitions and all ftls in the
webapp folder
...

So that's even harder.

I guess you are worried about loosing your "master copy". Well SVN is
always there to help.

I have chosen the have the ofbiz release branches 10-04 and 09-04 (and now
also 11-04) as master copies in my development area while I have exported
the base release I am using (10-04) and imported to my own SVN system in
order to have a trace of what I did change.

So after all, it all boils down to: Organize yourself to trace what you
changed (" ... and that's good advice in life as well" as my TomTom
navigation device would possibly say :D)

If you are worried to touch ofbiz and change/adapt to what you need, it
might not be the right solution for you anyways.

I've started with small things (like adapting views and creating themese) 3
years ago and I am now deeply into the system. If you're ready to learn,
you'll enjoy, sure!

brgds


Carsten

2012/3/9 Pierre Smits <[hidden email]>

> Hi Bernat,
>
> If you want a specific ecommerce layout and design for webshops that is the
> way to go. Either transform ecommerce or emcomclone to your liking.
>
> Regards,
>
> Pierre
>
> 2012/3/9 Bernat Arlandis <[hidden email]>
>
> > On 08/03/12 20:22, [hidden email] wrote:
> >
> >> Start learning!
> >> You need to modify ecommerce/widget/**CommonScreens.xml and simply
> >> comment in the screen definitions for left and right column the
> screenlets
> >> you don't want.
> >>
> >> You should be somewhat familiar with XML though, but I assume you are.
> >>
> >>
> >> Enjoy.
> >>
> >
> > Thanks! I had that solution in mind. Is there a way to override XML
> > resources and use custom ones without touching ofbiz?
> >
> >
> > --
> > Bernat Arlandis<[hidden email]>
> > JPL TSolució S.L.
> >
> >
>



--

Best

Carsten Schinzer

Plankstettenstr. 7
80638 München
Germany
Reply | Threaded
Open this post in threaded view
|

Re: Moving/deleting blocks in the ecommerce layout

Jacopo Cappellato-4
In reply to this post by Bernat Arlandis
Yes,

create a custom component and add it to the hot-deploy folder (there is an ant task that you can use to setup an empty component); then in the component override the ecommerce webapp and add to the controller.xml the view-map definition for yourcustom screen.
You should find an example of this in framework/exampleext (that extends framework/example)

Jacopo

On Mar 9, 2012, at 9:06 AM, Bernat Arlandis wrote:

> Thanks! I had that solution in mind. Is there a way to override XML resources and use custom ones without touching ofbiz?