0
Welcome Guest! Login
0 items Join Now

You are not authorized to access that page, please login...

module not on the homepage...SOLVED

    • V-man's Avatar
    • V-man
    • Sr. Rocketeer
    • Posts: 109
    • Thanks: 0

    module not on the homepage...SOLVED

    Posted 17 years 7 months ago
    • Hi guys,

      I know some of you out there know the answer to this, and some others want to know. How do you place a module on all pages except the homepage? Some previous answers have been to simply delete mos_pathway, but this method removes it from everywhere. I once saw code to the effect:

      if frontpage > load mos_pathway

      This could be used for any module of course, but i don't know the syntax.

      Cheers,
    • Last Edit: 17 years 6 months ago by V-man.
  • Re: module not on the homepage...SOLVED

    Posted 17 years 7 months ago
    • I just use the module manager, click on the module I want and on the list on the right I highlight what pages/menu items I want the module to appear on, this gets tricky sometimes depending on your site nav layout, but usually works for me.
    • Do not go where the path may lead, go instead where there is no path and leave a trail.
    • V-man's Avatar
    • V-man
    • Sr. Rocketeer
    • Posts: 109
    • Thanks: 0

    Re: module not on the homepage...SOLVED

    Posted 17 years 7 months ago
    • Thanks for the quick response. Actually, my question was regarding how to edit index.php to make a module position collapse only on the homepage (that wasn't very clear above, my bad). I found the solution. In the example below, i want to remove the pathway module position from the frontpage.

      Original index.php Code:
      <?php mospathway() ?>

      New index.php Code:
      <?php if ($option != 'com_frontpage') { ?>
      <?php mospathway() ?>
      <? } ?>

      If i wanted the pathway to only be on the homepage, i would only need to change the operator:
      <?php if ($option == 'com_frontpage') { ?>
      <?php mospathway() ?>
      <? } ?>
  • Re: module not on the homepage...SOLVED

    Posted 17 years 7 months ago
    • Hello, V-man

      Replace
      $option == 'com_frontpage'

      With
      mosGetParam( $_REQUEST, 'option')&nbsp; == "com_frontpage"

      Will make the code more secure, I think.

      Please correct me if I am wrong.

      Best Regards,

      Arifin
  • Re: module not on the homepage...SOLVED

    Posted 17 years 7 months ago
    • I just use the module manager

      I don't think that option is available on the Pathway module.
    • V-man's Avatar
    • V-man
    • Sr. Rocketeer
    • Posts: 109
    • Thanks: 0

    Re: module not on the homepage...SOLVED

    Posted 17 years 7 months ago
    • Arifin FinLy wrote:
      mosGetParam( $_REQUEST, 'option')&nbsp; == "com_frontpage"

      Well, I don't know about more secure, but it workd fine. In my case, i used the following to prevent something from showing up on the homepage:
      mosGetParam( $_REQUEST, 'option')&nbsp; != "com_frontpage"

      Thanks Arifin

      BTW, did u hear anything about this Boulder move of the RT headquarters? Is Andy just moving :)
    • Last Edit: 17 years 6 months ago by V-man.
  • Re: module not on the homepage...SOLVED

    Posted 17 years 7 months ago
    • I guess I shouldn't read/reply to posts while sleeping any more ;D V-Man
    • Do not go where the path may lead, go instead where there is no path and leave a trail.
    • V-man's Avatar
    • V-man
    • Sr. Rocketeer
    • Posts: 109
    • Thanks: 0

    Re: module not on the homepage...SOLVED

    Posted 17 years 7 months ago
    • haha, no worries mate. To be honest, I don't know why the pathway isn't a module by default.

Time to create page: 0.058 seconds