Română (România)English (United Kingdom)



 
The support for all extensions was moved to jVitals.com.

Please post there the new questions or suggestions you have with them.

This forum was set to be read-only so the information in it is still available.

If you use aiContactSafe, please post a rating and a review at the Joomla! Extensions Directory.

You can now also join aiContactSafe Fan Club on Joomla! People
http://people.joomla.org/groups/viewgroup/813-aiContactSafe+Fan+Club.html

Template override - How To

Template override - How To

Hi All

I would like to use template overrides to customize the default contact form layout; I tried copying the content of the directory "com_aicontactsafe\views\message\tmpl" to "mytemplate/html/com_aicontactsafe/message" with no luck: is this the right way to go?

Best Regards,
Moez

moez.selimi
useravatar
Offline
9 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

Re: Template override - How To

Hi,

Yes, that is the correct. I've just tested again and the output is overridden.

I don't know about this tutorials :
http://developer.joomla.org/tutorials/1 … oomla.html
http://docs.joomla.org/How_to_override_ … omla!_core

Alex Dobrin
useravatar
Offline
5886 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

Re: Template override - How To

Thank you very much Alex .
I used template overrides with other components (k2, com_content..) but with no success with aiContactSafe : I must be doing something wrong.
I'll check again.
Thank you smile

moez.selimi
useravatar
Offline
9 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

Re: Template override - How To

Hi again Alex
I want to modify the layout of the default contact form : is overriding the message view enough?
I deleted the components\com_aicontactsafe\views\message\tmpl\message.php file and yet the contact form (front end) is still working ??

Best Regards

moez.selimi
useravatar
Offline
9 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

Re: Template override - How To

Hi,

Yes, overriding that file is enough.
And no, if you delete that file the extension is not working.

Make sure you are making the modification on the same Joomla instance that you are testing. smile

Alex Dobrin
useravatar
Offline
5886 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

Re: Template override - How To

Hi Alex,

I have the same problem with the template override like moez. I tried to copy the file "message.php" from "..\components\com_aicontactsafe\views\message\tmpl\" to "..\templates\MY_TEMPLATE\html\com_aicontactsafe\views\message\" and did my amendment (In order to test it, I added in line 21 of the file the code "<p>test</p>"). Unfortunately nothing changed in the front end. I am using Joomla 1.5.23 and com_aiContactSafe_2_0_15.zip. Do you have any ideas what I am doing wrong? Thanks for your help.

Regards

Raphael Spiekermann
useravatar
Offline
3 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

Re: Template override - How To

Hi,

You placed the file in the wrong folder.
You should had being using the folder :

Cod:

"..\templates\MY_TEMPLATE\html\com_aicontactsafe\message\"

Notice the folder views is not used ( this is mentioned in the documentation about output overrides I've mentioned ).

Alex Dobrin
useravatar
Offline
5886 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

Informatii forum

Statistici forum:
 
Subiecte:
2281
Sondaje:
0
Mesaje:
10380
Inactiv:
Informatii utilizatori:
 
Utilizatori:
60164
Ultimul inscris:
KevinNeil
Utilizatori activi:
0
Vizitatori activi:
56

Activ: 
Nici un utilizator activ

Legenda forum:

 Subiect
 Nou
 Blocat
 Peren
 Activ
 Nou/Activ
 Nou/Blocat
 Nou/Peren
 Blocat/Activ
 Activ/Peren
 Peren/Blocat
 Peren/Activ/Blocat