0
Welcome Guest! Login
0 items Join Now

Problem with "module" element

  • Problem with "module" element

    Posted 15 years 6 months ago
    • I am trying to make a link to an article. I only want the article itself to load and not the side bar, header etc. etc. So I am trying to use the "module" element of Rokbox to load only the div which contains the article, this is "maincol".

      Using the following code works fine:
       
      <a rel="rokbox" href="http://www.mysite.com/page.html" >Link</a>
       

      However, when I add the "module" element as below I have problems:
       
      <a rel="rokbox[module="maincol"]" href="http://www.mysite.com/page.html" >Link</a>
       

      When I do this, the box opens, but it does not open the "maincol" portion of "page.html", instead it simply loads the "maincol" portion of the existing page, (i.e. the page that is already open, the one with the link on it).

      HELP!
  • Re: Problem with "module" element

    Posted 15 years 6 months ago
  • Re: Problem with "module" element

    Posted 15 years 6 months ago
    • Thanks, that works but it removes the CSS styling. Do you know how to keep the styling?
  • Re: Problem with "module" element

    Posted 15 years 6 months ago
    • You can declare the template css and put it in this file
      <joomla-root>/templates/system/component.php

Time to create page: 0.063 seconds