Passing global variables through URL - Joomla! Forum - community, help and support
typically trying in com_contacts - want pre-fill subject input box via different links... when user clicks link, subject box text set depending on link.
could explain step step on joomla 1.5 ?
could explain step step on joomla 1.5 ?
mod note: topic split, please not hijack different topic.
you try this:
olaf
you try this:
- create folder in template folder called "html" (if doesn't exists)
- create folder in html folder called "com_contact" (if doesn't exists)
- create folder in com_contact folder called "contact" (if doesn't exists)
- copy file .../components/com_contact/views/contact/tmpl/default_item.php in .../templates/[your-template]/html/com_contact/contact/ folder
- open file
- add along lines:
code: select all
<?php if(jrequest::getvar('subject') == 'test15'): ?>
<!--- add code here --->
<?php else: ?>
<!--- add code here --->
<?php endif; ?> - save file
- use url parameter subject e.g. this:
code: select all
www.your-domain.com/index.php?option=com_contact&view=contact&id=1&subject=test15
olaf
Comments
Post a Comment