• Page:
  • 1

TOPIC:

Joomla template override com_bwpostman/layouts/subscriber 25 Dec 2020 13:30 #1872

  • Jasper
  • Jasper's Avatar Topic Author
  • Offline
  • 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.

Joomla template override com_bwpostman/layouts/subscriber 26 Dec 2020 08:30 #1874

  • Romana
  • Romana's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 783
  • Karma: 6
  • Thank you received: 55
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

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.

Joomla template override com_bwpostman/layouts/subscriber 27 Dec 2020 14:14 #1878

  • Jasper
  • Jasper's Avatar Topic Author
  • Offline
  • 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.

Joomla template override com_bwpostman/layouts/subscriber 27 Dec 2020 23:32 #1879

  • Romana
  • Romana's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 783
  • Karma: 6
  • Thank you received: 55
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.

[SOLVED] Joomla template override com_bwpostman/layouts/subscriber 28 Dec 2020 10:18 #1886

  • Jasper
  • Jasper's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Problem solved.

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

  • Page:
  • 1
Powered by Kunena Forum

Newsletter Subscription

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:

Standard
Infos about Joomla! extensions of Boldt Webservice, especially BwPostman. The newsletter will only be sent if there are any news.

Please help us prevent spam, and solve this little math question!

captcha

() 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: