0
Welcome Guest! Login
0 items Join Now

Page with modules only, no mainbody (apart from Home page)?

    • starlight's Avatar
    • starlight
    • Jr. Rocketeer
    • Posts: 31
    • Thanks: 0

    Page with modules only, no mainbody (apart from Home page)?

    Posted 13 years 1 month ago
    • I'm new to Joomla 1.7 and RT templates, having only had a little past experience with Joomla 1.13. I have no PHP knowledge and my other coding knowledge is minimal. I'm using the Modulus template. I can't provide an URL I'm afraid.

      I've spent the past several hours trying to search (and Joomla forums but they keep being temporarily unavailable) but can't find an answer, maybe my search expressions are wrong.

      How can one create a page with only modules and without mainbody? Not for all pages but just one or two? I think I used to be able to do it in Joomla 1.x by creating an empty article but 1.7 won't let me create an empty article.
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Page with modules only, no mainbody (apart from Home page)?

    Posted 13 years 1 month ago
    • The easy way is just CSS out the main body element with display:none. Firebug your pages and get the menu class tag from the body classes to do this for a specific page like
      .menu-class #rt-main{display:none;}
      Since you didn't specify which template you are using or provide a link I can't tell you exactly how to do it on your site.
    • The difficult we do immediately, the impossible takes a little longer.
    • starlight's Avatar
    • starlight
    • Jr. Rocketeer
    • Posts: 31
    • Thanks: 0

    Re: Page with modules only, no mainbody (apart from Home page)?

    Posted 13 years 1 month ago
    • Thank you Cliff :-)

      Wouldn't your CSS solution hide the mainbody from all pages? (which isn't what I want)starlight wrote:
      How can one create a page with only modules and without mainbody? Not for all pages but just one or two?
      Ummm, I did specify which template?starlight wrote:
      I'm using the Modulus template.
      There's nothing much on the test site yet as I need to find the solution to my question here first. So I'm not sure how a link could help even if I could provide it, when it should be basically the same as any Modulus template with little or nothing in it?

      What I want to achieve in this instance, is having one of the mainmenu links pointing to a page with only modules in it. On that page, one of the modules would be a sidebar module with another menu linking to several "category lists" and one or two articles.
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Page with modules only, no mainbody (apart from Home page)?

    Posted 13 years 1 month ago
    • Hi, sorry I missed your template info, I read too fast sometimes 8)

      The solution I listed is what you would do for a single page, to do it for all pages it would just be #rt-main{display:none;} - the ".menu-class" is information you need to get from the body tag of your page, each menu item has it's own body class, allowing you to apply the style to only one page. You just need to figure out the actual class name by looking at the body tag in the code and use it in place of .menu-class. I could tell you what the name is by looking at your site. Hope that makes sense.
    • The difficult we do immediately, the impossible takes a little longer.
    • starlight's Avatar
    • starlight
    • Jr. Rocketeer
    • Posts: 31
    • Thanks: 0

    Re: Page with modules only, no mainbody (apart from Home page)?

    Posted 13 years 4 weeks ago
    • Not to worry, Cliff (re reading too fast), I did it too as I didn't notice you said "for a specific page" :oops:

      Yes, it made sense and worked perfectly, thank you so much! :cheesy:
    • eparijs's Avatar
    • eparijs
    • Rocketeer
    • Posts: 88
    • Thanks: 0

    Re: Page with modules only, no mainbody (apart from Home page)?

    Posted 13 years 3 weeks ago
    • Hi Cliff,

      In the Momentum template, where and in which css file should I make these changes to achieve this ?

      Thanks
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Page with modules only, no mainbody (apart from Home page)?

    Posted 13 years 3 weeks ago
    • Put it at the very bottom of your template.css, that's always a good place.
    • The difficult we do immediately, the impossible takes a little longer.
  • Re: Page with modules only, no mainbody (apart from Home page)?

    Posted 13 years 2 weeks ago
    • I'm trying to do something similar here:
      www.nipponweb.de/joomla/

      The slideshow should only be shown on the homepage. Could you tell me which code I have to insert into the css file to get rid of it on this page:
      www.nipponweb.de/joomla/reisen

      I understand, that I have to hide the element like #rt-feature, but I don't know the exact code and how to identify the body class (item53?).

      Oh, and isn't this method inefficient regarding to page loading speed? Is the slideshow loaded and the hidden, or isn't it loaded at all?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Page with modules only, no mainbody (apart from Home page)?

    Posted 13 years 2 weeks ago
    • why don't you just publish it to home menu-item instead of all pages?
      Or am I missing something?
    • Last Edit: 9 years 8 months ago by Henning.
  • Re: Page with modules only, no mainbody (apart from Home page)?

    Posted 13 years 2 weeks ago
    • I tried to change that, but it didn't work.

      Menu Assignment was "all". I changed it and selected mainmenu -> Aktuelles, but the slideshow is still shown everywhere.

Time to create page: 0.053 seconds