[SOLVED] Joomla template override com_bwpostman/layouts/subscriber

25 Dec 2020 13:30 #1872 by Jasper

  • New Member
  • New Member

  • Posts: 5
  • Thank you received: 0
  • How do I make a HTML override within my custom Joomla template for com_bwpostman/layouts/subscriber?

    Please Log in or Create an account to join the conversation.

    26 Dec 2020 08:30 #1874 by Romana

    • Moderator
    • Moderator

  • Posts: 965
  • Thank you received: 86
  • Hello Jasper,

    that is not a great thing. This sub layout is called from tmpl at com_bwpostman/views/register/tmpl/default.php. At line You find 75

    Code:
    echo LayoutHelper::render( 'default', array('subscriber' => $this->subscriber, 'params' => $this->params, 'lists' => $this->lists), $basePath = JPATH_COMPONENT . '/layouts/subscriber' );

    You create Your own sub layout and replace the default here with the name of Your sub layout. That is all.If You place Your sub layout at another folder, You have to adjust the part with $basePath accordingly.

    Hth
    Romana

    Problem gelöst? Dann bitte auf gelöst klicken. Über ein Danke freue ich mich immer.
    Problem solved? Please click to solved.I am glad to every thank you.

    Please Log in or Create an account to join the conversation.

    27 Dec 2020 14:14 #1878 by Jasper

    • New Member
    • New Member

  • Posts: 5
  • Thank you received: 0
  • Ok, thanks. I understand how to do it.

    However how do I prevent this change from being overwritten on the fist BwPostman update?

    Please Log in or Create an account to join the conversation.

    27 Dec 2020 23:32 #1879 by Romana

    • Moderator
    • Moderator

  • Posts: 965
  • Thank you received: 86
  • Hi Jasper,

    for this store Your layout file wherever You want, i.e. at Your template, and adjust the $basepath variable to the path of Your layout file.

    Hth
    Romana

    Problem gelöst? Dann bitte auf gelöst klicken. Über ein Danke freue ich mich immer.
    Problem solved? Please click to solved.I am glad to every thank you.

    Please Log in or Create an account to join the conversation.

    28 Dec 2020 10:18 #1886 by Jasper

    • New Member
    • New Member

  • Posts: 5
  • Thank you received: 0
  • Please Log in or Create an account to join the conversation.

    Time to create page: 0.112 seconds

    Register to newsletter

    Hint: Your entered data are only used to register to and sending of the newsletter. Your data will be processed and stored by me. For more information have a look at my privacy policy.
    Your mailing list:
    BwPostman:
    Infos about Joomla! extensions of Boldt Webservice...

    () Mandatory fields

    Information

    ×

    Voluntary salary

    If you like Boldt Webservice then I would be glad about your backing:
    • Recommend Boldt Webservice.
    • If you want to support my work with a donation, please click on the following button - the donation will be handled via paypal.

    With your voluntary salary you also support the development of free software and extensions for the CMS Joomla.

    Enter your amount below and click on the following button:

     

    Register to newsletter

    Hint: Your entered data are only used to register to and sending of the newsletter. Your data will be processed and stored by me. For more information have a look at my privacy policy.
    Your mailing list:
    BwPostman:
    Infos about Joomla! extensions of Boldt Webservice...

    () Mandatory fields

    Information

    ×

    Voluntary salary

    If you like Boldt Webservice then I would be glad about your backing:
    • Recommend Boldt Webservice.
    • If you want to support my work with a donation, please click on the following button - the donation will be handled via paypal.

    With your voluntary salary you also support the development of free software and extensions for the CMS Joomla.

    Enter your amount below and click on the following button: