Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Simple Website Menu Features to Copy and Delete Web CMS Pages

by
Meng Choon Tan
- 04/08/2015 20:34:14
Hi Markus,

It was quite a small piece of code and hence we did not try to modularise it :) Perhaps if we managed to implement more features, we can do that one of these days.

Please feel free to use the code - we found that the current web CMS did not have a delete and copy function - something which we believe the non-techical webpage designers will need.

-- Meng Choon

mobile : +65-91895981
email  : mengchoon.tan@dapoltd.com
web    : http://augury.dapoltd.com
cen    : 201201013M
support: support@dapoltd.com | +65-91851968


On Wed, Apr 8, 2015 at 10:01 PM, Markus Schneider <markus.schneider@initos.com> wrote:
this is a cool feature, can you provide this as a seperate module?

On 02.04.2015 12:06, Wang, Hee Shiong wrote:
> Hello,
> 
> To implement Page Copy and Page Delete menu options, changes have been
> made in following four files:
> 
> -- website/controllers/*main.py*
> Functions: pagecopy, pagedelete
> 
> -- website/models/*website.py*
> Functions: copy_page, delete_page
> 
> -- website/static/src/js/*website.contentMenu.js*
> Functions: copy_page, delete_page
> 
> To create entry points (menu options in top menu bar), following XML
> file must be changed to include two new lines:
> 
> -- website/static/views/*website_backend_navbar.xml *(line 56)
> 
>    
  • data-action="*copy_page*">Copy Page
  • >
  • data-action="*delete_page*">Delete Page
  • > > Please refer to following Github site: > https://github.com/dapoaugury/odoo/tree/website_edit > > Regards, > > ----------------------- > Wang, Hee Shiong > dev03@dapoltd.com <mailto:dev03@dapoltd.com> > ----------------------- > > _______________________________________________ > Mailing-List: https://www.odoo.com/groups/community-framework-62 > Post to: mailto:expert-framework@mail.odoo.com > Unsubscribe: https://www.odoo.com/groups?unsubscribe > -- Dipl.-Comp.-Math. Markus Schneider Softwareentwickler initOS GmbH & Co. KG An der Eisenbahn 1 21224 Rosengarten Mobil: +49 (0)172 2303699 Phone: +49 (0)4105 5615613 Fax: +49 (0)4105 5615610 Email: markus.schneider@initos.com Web: http://www.initos.com Geschäftsführung: Dipl. Wirt.-Inf. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke Haftende Gesellschafterin: initOS Verwaltungs GmbH Sitz der Gesellschaft: Rosengarten – Klecken Amtsgericht Tostedt, HRA 201840 USt-IdNr: DE 275698169 Steuer-Nr: 15/205/21402

    _______________________________________________
    Mailing-List: https://www.odoo.com/groups/community-framework-62
    Post to: mailto:expert-framework@mail.odoo.com
    Unsubscribe: https://www.odoo.com/groups?unsubscribe