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 ?

mod note: topic split, please not hijack different topic.

you try this:

  1. create folder in template folder called "html" (if doesn't exists)
  2. create folder in html folder called "com_contact" (if doesn't exists)
  3. create folder in com_contact folder called "contact" (if doesn't exists)
  4. copy file .../components/com_contact/views/contact/tmpl/default_item.php in .../templates/[your-template]/html/com_contact/contact/ folder
  5. open file
  6. add along lines:

    code: select all

    <?php if(jrequest::getvar('subject') == 'test15'): ?>
    <!--- add code here --->
    <?php else: ?>
    <!--- add code here --->
    <?php endif; ?>

  7. save file
  8. 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

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい