0
Welcome Guest! Login
0 items Join Now

SOLVED: Removing FrontPage "Module"

    • Solrac The Jedi's Avatar
    • Solrac The Jedi
    • Newbie
    • Posts: 9
    • Thanks: 0
    • Military (Network Admin), School (Sports Psychology)

    Re: SOLVED: Removing FrontPage "Module"

    Posted 14 years 1 month ago
    • Hell I may not be able to fix this, but I'm sure learning a lot about css in the process! Ok, so I did as you said, but I'm still not able to fix the problem.

      I also went into "template/html/com_content/frontpage/default.php" and noticed that that file contains the pageclass_sfx codes, however, when I use firebug I don't see this or the componentheading tags. Could this be the problem?

      EDIT
      OK! I found my page class suffix in the html, it is in <div class="blog hideit"> now my question is! Now, I just need to know how to hide the object from within this class?
    • Obsessed is a word used often by the lazy, in order to describe the dedicated.
    • Solrac The Jedi's Avatar
    • Solrac The Jedi
    • Newbie
    • Posts: 9
    • Thanks: 0
    • Military (Network Admin), School (Sports Psychology)

    Re: SOLVED: Removing FrontPage "Module"

    Posted 14 years 1 month ago
    • OK, so I found out what the problem is. Because the Home menu item is of type Front Page, and uses the div class 'blog', the page index is added to the blog class. So if I have a page class suffix of " hideit" then this gets added to <div class="blog hideit">.

      However, what we need to hide is not the blog, but the actual front page component, which is created inside of the <div class="main-body-surround">. So I went into the "rt_sectionrows.php" file, which creates this div, and added :
      $this->joomla->params->get('pageclass_sfx');
      after id="spacer" so that what I should get is "<div class="main-body-surround" id="spacer hideit"> but instead it's returning a 0.

      Any idea why I'm getting 0 and not the pageclass_sfx value?
    • Obsessed is a word used often by the lazy, in order to describe the dedicated.
    • Solrac The Jedi's Avatar
    • Solrac The Jedi
    • Newbie
    • Posts: 9
    • Thanks: 0
    • Military (Network Admin), School (Sports Psychology)

    Re: SOLVED: Removing FrontPage "Module"

    Posted 14 years 1 month ago
    • So after hours of working on this, I realized that the reason that above code is returning a zero is because I was doing
      $this->maincontent = '<div id="section-row3" class="section-row"><div id="section-row3-inner"><div id="main-body-surround" class="spacer '+$this->joomla->get('pageclass_sfx')+'">';
      instead of
      $this->maincontent = '<div id="section-row3" class="section-row"><div id="section-row3-inner"><div id="main-body-surround" class="spacer '.$this->joomla->get('pageclass_sfx').'">';
      I didn't realize that to concatenation operand in php is a . and not a +, which is why I getting a 0 for the output. However get('pageclass_sfx') is now returning an empty value. This is better than the zero, but not what I need. I need to extract the actual pageclass_sfx value. Any idea why I can't get this when the default.php (html/com_content/frontpage/default.php) file can? I don't get it...
    • Obsessed is a word used often by the lazy, in order to describe the dedicated.
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: SOLVED: Removing FrontPage "Module"

    Posted 14 years 1 month ago
    • Solrac The Jedi's Avatar
    • Solrac The Jedi
    • Newbie
    • Posts: 9
    • Thanks: 0
    • Military (Network Admin), School (Sports Psychology)

    Re: SOLVED: Removing FrontPage "Module"

    Posted 14 years 1 month ago
    • FINALLY! Phew...Ok so what I did was create a session variable, insert that variable into rt_sessionrows.php, and then clear the session variable. This was definitely a learning experience for me...I'll edit with the exact details of how I did it incase anyone else runs into a similar problem, but first I need to get this excitement out of my system.

      EDIT
      Oh I didn't even see the link you posted, I had left this window open. cdavis you've been a great help, really appreciate it! That method is much cleaner than modifying three different files like I did :)
    • Obsessed is a word used often by the lazy, in order to describe the dedicated.
  • Re: SOLVED: Removing FrontPage "Module"

    Posted 13 years 1 month ago
    • Hello,

      I do have the same problem on the same template. Unfortunately I'm not authorised to see the link posted by cdavis. Is there a way do make the solution visible to me?

      Thanks,
      Matt
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: SOLVED: Removing FrontPage "Module"

    Posted 13 years 1 month ago
    • membership has it's benefits
  • Re: SOLVED: Removing FrontPage "Module"

    Posted 13 years 1 month ago
    • I was a member for quite some time. However, not at the moment. I hope there is still a way to solve this problem. I found a couple solutions but none of them worked because of the way the template is build.
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: SOLVED: Removing FrontPage "Module"

    Posted 13 years 1 month ago
    • please provide a detailed description of your issue and the url to the issue.
  • Re: SOLVED: Removing FrontPage "Module"

    Posted 13 years 1 month ago
    • I had the Affinity template installed before. Now I updated the PHP version to 5.3.6 and in order to keep the template working, I updated Affinity as well (to version 1.5.6). Previously I was able to set DISPLAY_FRONTPAGE to hide and the main content was not displayed on the frontpage. Now when I trie to do the same thing the content hides but the grey box with the white border still appears. See here: www.klaudia-henn-messmer.at .

      I also tried the menu class suffix and display:none but unfortunately that didn't work. I'm using Joomla 1.5.23.

      Thanks,
      Matt

Time to create page: 0.064 seconds