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



 
Message
  • You are now subscribed to the topic Template override - How To
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 Posts
User info in posts
Administrator has disabled public posting

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 Posts
User info in posts
Administrator has disabled public posting

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 Posts
User info in posts
Administrator has disabled public posting

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 Posts
User info in posts
Administrator has disabled public posting

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 Posts
User info in posts
Administrator has disabled public posting

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 Posts
User info in posts
Administrator has disabled public posting

Re: Template override - How To

Hi,

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

Code:

"..\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 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
2281
Total Polls:
0
Total Posts:
10380
Dormant:
User Info:
 
Total Users:
60329
Newest User:
wheeteryday
Members Online:
1
Guests Online:
99

Online: 
wheeteryday

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked