Results 1 to 5 of 5

Thread: Contact Us Menu Link

  1. #1
    Join Date
    Feb 2009
    Posts
    4

    Question Contact Us Menu Link

    I've managed to change the page titlebar, but cannot seem to find where it generates the "Contact Us" plugin link titled "Contact Us" in the menu.

    I changed the form to an application form and would like to change the title of the link in the header's menu to "Hosting."

    The theme I am using is portal_dir, however feel its beyond the theme.

    Where would I go to change the linked text?

    Site: simcoenet.ca


    PS: Changed link title in menu.html but didn't change in the site's menu. Not pulling from that file and not suuure where to go.
    Last edited by esto; 09-01-2010 at 11:26 PM. Reason: see PS

  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    This plugin using hook called hook_html_top_menu1_end in template file.

    Where would I go to change the linked text?
    The file is /plugin/contact_us/template/menu.html, notice the red colored text below:
    Code:
    <li style="display:inline;margin-left:2px;"><a href="<%$site_url%>/plugin_action.php?f=PL_ContactUs"  style="color:inherit;float:"><%t%>Contact Us<%/t%></a></li>

  3. #3
    Join Date
    Feb 2009
    Posts
    4

    Default

    That's where I meant when I changed the link title in menu.html. I've also changed the url there (added an extra 'n' in action) to see if that would alter the linked url in the menu, however it did not even change that. Could it be due to the template cache?

    Lol yup it was due to the cache. I recalled seeing the clear template cache link and just tried it, it's all good now! It now reflects the changes made to menu.html

    Thank you.

  4. #4
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Ah .... yes. The cache is the problem. The plugin doesn't work very well with smarty template. It is because smarty compile template to php. While the plugin template is stored in variable, not template file. So smarty doesn't recognize it when it is changed.

    So to force smarty compile template again, there is need to clear template cache. Actually it is not cache, but compiled smarty files (from html to php in folder templates_c).

  5. #5
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Ah .... yes. The cache is the problem. The plugin doesn't work very well with smarty template. It is because smarty compile template to php. While the plugin template is stored in variable, not template file. So smarty doesn't recognize it when it is changed.

    So to force smarty compile template again, there is need to clear template cache. Actually it is not cache, but compiled smarty files (from html to php in folder templates_c).

Similar Threads

  1. create a category in the menu but link to another category?
    By mxwebsites in forum Blocks and Modification
    Replies: 6
    Last Post: 06-23-2009, 12:03 AM
  2. Contact Us Mod
    By Mitchell in forum Blocks and Modification
    Replies: 3
    Last Post: 09-05-2008, 06:10 PM
  3. error: when selecting contact link owner
    By leoa in forum INDEXU DELUXE v1.x
    Replies: 5
    Last Post: 06-09-2008, 11:15 AM
  4. Detail Link - Tab Menu
    By CEC in forum Blocks and Modification
    Replies: 6
    Last Post: 07-04-2006, 07:20 PM
  5. popup menu in submit link forum
    By persut in forum v5.x
    Replies: 2
    Last Post: 05-14-2003, 06:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •