OXID Community Forum

> International Forums > Modules > overriden template seems not to be touched
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: overriden template seems not to be touched


Reply
 
Thread Tools Search this Thread Display Modes
#Top   #1  
Old 08-24-2016, 03:42 PM
inuyasha1184 inuyasha1184 is offline
Junior Member
Join Date: Aug 2016
Posts: 3
inuyasha1184 is on a distinguished road
Default overriden template seems not to be touched

Hello everybody,
i'm new to oxid and having a problem, which I could not find out in google. I try to explain it because I don't know how to describe it as well

I have a module A and I extended it with B. A has a template which is located in head.tpl. This template should be overriden by B's template. In my metadata.php I have following information:
$aModule = array (
//...
'extend' => array ('oxViewConfig => B),
'template' => arary('template_from_A.tpl' => 'path_to_template_from_B.tpl'));

But the template from B seems not to be touched. Oxid still renders the template from A. I don't know where I did wrong.

Could anybody help me?

Thank you in advance!
Reply With Quote
#Top   #2  
Old 08-24-2016, 04:34 PM
foxido.de foxido.de is offline
Senior Member
Join Date: Jul 2013
Posts: 1,129
foxido.de is on a distinguished road
Default Re: overriden template seems not to be touched

I would set a block in template_from_A.tpl. Then you can overwrite the block with a template from module B.
__________________
Grüße

http://www.foxido.de/

- Modulentwicklung, Komplette Systeme, Beratung, Service

Tel: 02841-9161670

Deep-AutoSuggest, der neue Finder 4.6x 4.10.x und 90 weitere Module
Reply With Quote
#Top   #3  
Old 08-25-2016, 08:49 AM
inuyasha1184 inuyasha1184 is offline
Junior Member
Join Date: Aug 2016
Posts: 3
inuyasha1184 is on a distinguished road
Default Re: overriden template seems not to be touched

Thank you for your quick reply. Actually I think about it too, but the thing is, the module A should not be modified. Because the module A is a 3rd party module, and if there are some updates, all my modifies will be removed. Maybe I shoud find a way to use some private functions from module A.
Reply With Quote
#Top   #4  
Old 08-25-2016, 09:14 AM
foxido.de foxido.de is offline
Senior Member
Join Date: Jul 2013
Posts: 1,129
foxido.de is on a distinguished road
Default Re: overriden template seems not to be touched

http://forum.oxid-esales.com/showthr...e=2#post116231
__________________
Grüße

http://www.foxido.de/

- Modulentwicklung, Komplette Systeme, Beratung, Service

Tel: 02841-9161670

Deep-AutoSuggest, der neue Finder 4.6x 4.10.x und 90 weitere Module
Reply With Quote
#Top   #5  
Old 08-25-2016, 09:55 AM
inuyasha1184 inuyasha1184 is offline
Junior Member
Join Date: Aug 2016
Posts: 3
inuyasha1184 is on a distinguished road
Default Re: overriden template seems not to be touched

I've got a look at the link but don't really understand everything (my German is not good enough ). Actually I want to use the private functions from module A in my template B. And just right now I've tried to create a new object A to call private function with oxNew($class_name_A) but it doesn't work. Maybe I should think about another approach
Reply With Quote
#Top   #6  
Old 08-25-2016, 02:35 PM
foxido.de foxido.de is offline
Senior Member
Join Date: Jul 2013
Posts: 1,129
foxido.de is on a distinguished road
Default Re: overriden template seems not to be touched

Then show us the modules. Otherwise we are wasting too much time
__________________
Grüße

http://www.foxido.de/

- Modulentwicklung, Komplette Systeme, Beratung, Service

Tel: 02841-9161670

Deep-AutoSuggest, der neue Finder 4.6x 4.10.x und 90 weitere Module
Reply With Quote
Reply

Bookmarks

Tags
overriden, template, touched

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Azure theme_options.php overriden by Mobile tmikla Templates and Design 1 04-10-2014 03:28 PM
Slider aus Azure Template in Basic Template Nighteyes Newbies 4 07-17-2012 09:07 PM
neues Template erstellen und in ein anderes Template verlinken Soleil Allgemeines 1 08-12-2010 10:32 AM
Allow for hirarchical definition of language data between template and custom-template avenger Feature requests 1 01-08-2010 09:50 AM
Template override - Smarty compiled template filename avenger Feature requests 0 11-16-2009 05:29 AM

All times are GMT +1. The time now is 05:18 PM.