0
Welcome Guest! Login
0 items Join Now

Page Class Suffix - No ContentPane

    • Noxbane's Avatar
    • Noxbane
    • Jr. Rocketeer
    • Posts: 45
    • Thanks: 0

    Page Class Suffix - No ContentPane

    Posted 15 years 6 months ago
    • All the tutorials for using a page class suffix (including Rocketheme's www.rockettheme.com/tutorial-files/jooml...age-class-suffix.php ) make reference to contentpane and contentpaneopen. However, no Rockettheme template I have used has any of those classnames in the source. Whenever I try to add a page class suffix to the Home Page menu item (I'm using Akiraka but this can refer to any template), only one single div on the page receives the classname and it is not a parent div for the content I am trying to change on a page level, so there is no way to select it.

      Is there a way to add the page class suffix to specific elements instead of relying on Joomla to determine which ones to add it to?
  • Re: Page Class Suffix - No ContentPane

    Posted 15 years 6 months ago
    • Yes,

      You can add the elements to your template.css if they are not in there.
    • Noxbane's Avatar
    • Noxbane
    • Jr. Rocketeer
    • Posts: 45
    • Thanks: 0

    Re: Page Class Suffix - No ContentPane

    Posted 15 years 6 months ago
    • Alright I think I found this on my own.

      For those interested go to this link: docs.joomla.org/Using_the_Page_Class_Suffix_in_Template_Code

      You can dynamically extract the page class suffix for any page, based on either itemid or active menu item, and then apply it to any element on the page you want. Then specific elements can look different on specific pages.

      It doesn't make any sense why Joomla by default doesn't just apply the page class suffix to the Body tag at least.
    • Noxbane's Avatar
    • Noxbane
    • Jr. Rocketeer
    • Posts: 45
    • Thanks: 0

    Re: Page Class Suffix - No ContentPane

    Posted 15 years 6 months ago
    • Mike VanKirk wrote:
      Yes,

      You can add the elements to your template.css if they are not in there.

      Hi Mike. You posted your reply at the same time I was posting my followup.

      I don't understand what you are suggesting in your solution and wonder if you misunderstood what I was looking for. I wanted to be able to add page class suffixes to specific elements in order to alter specific elements on a page by page basis. I can't do that through template.css alone without altering all elements on all pages.

      The link I posted above was exactly what I was looking for. Hope it helps someone else.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Page Class Suffix - No ContentPane

    Posted 15 years 6 months ago
    • I agree with that ... I found the page suffix pretty useless ... until i discovered how to add the page-suffix as a class to the body, I suggested already some time ago to add this as an option in templateparameters in RT-templates. (use page suffix as acbody-class Y/N) Sadly I got no response.

      Funny thing is that James was involved in this:
      forum.joomla.org/viewtopic.php?f=466&t=307363&start=30

Time to create page: 0.056 seconds