0
Welcome Guest! Login
0 items Join Now

collapsing sidebar via css

  • collapsing sidebar via css

    Posted 6 years 4 months ago
    • I am building a site that has a very large catalog as oart of the site - i am using a component that creates the category page from the menu which displays a list of products in grid form ( where layout template is applied) and then generates the product pages automatically from the settings of the previous page.

      I need to have a right sidebar on the product page, but not on the product list page, even though they are both using the same template layout.
      Is there a way to make the sidebar disappear vis css, or is there any other method that i can use?
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: collapsing sidebar via css

    Posted 6 years 4 months ago
    • Well the easiest thing to do would be to not use the same layout - create another outline (you can always inherit from the existing outline layout to avoid duplication).

      I would not recommend collapsing the sidebar via CSS.

      If you can give me an example, I might be able to suggest something else too.

      Please would you post your URL, superuser id and pswd in the secure tab of your post and I'll have a look for you.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: collapsing sidebar via css

    Posted 6 years 4 months ago
    • Hi Mark - i have created a layout for both full-width and right-side bar - my issue is that i cant assign a unique template to the product page

      all the info is attached
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: collapsing sidebar via css

    Posted 6 years 4 months ago
    • Ok this is how Joomla works.... But you can work around it...

      When Joomla is told to load a component view (article, djcatalog, contact, etc etc) it looks to see if it has a menu item that covers that component... if it does it uses that when rendering the page. So, taking a "blog" as an example if you were to click on a "readmore" in an article in the blog list it would use the "blog" menu item to render those articles (maybe not always what you want). But you can get around this through use of the "hidden menu" technique...
      Create a MENU called "hidden" (no need to create a module to place it anywhere). In the hidden menu, create a MENU ITEM for each of the orphaned articles (single article type) and make sure these menu items are published. Now the hidden menu won't appear on any of your pages, but, the articles will now open in their own page. You can also use the same technique and create a hidden category blog menu item to pick up multiple articles too, thus saving having to create a hidden menu item for every article.

      So, getting back to your "DJCatalogue" it the same process, if you want Joomla to render the "item" (Product in djcatalog terminology) then you need to create a "hidden" menu item that point at that specific item. Once you have that you can assign any outline (template) you like to that menu item. I've created a "hidden" menu on your site and added a hidden menu item within it for the "Banqueting House | London SW1" item (product). You will now see that when you click on the item in the catalog list that item now opens in it's own menu item (to which you can then assign any outline you wish).

      Now, the problem with this is that it could mean you having to create a menu item for every entry in your catalogue. I am not too familiar but with Articles you can have the same type of issue and they way around that is to use a "category" menu item (i.e a menu item that picks up several component items all in one go) but that menu item does have to be more specific (at a lower level) than the initial component list. Again you can get around that by having nested categories.

      I hope that helps - as you can see there is a solution to work around this.

      Regards, Mark.
    • Last Edit: 6 years 4 months ago by MrT.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: collapsing sidebar via css

    Posted 6 years 4 months ago
    • Hi Mark - thank you so much for your time and patience - i have managed to get the sysyem to work for the catalogue component that i am using following your advice, but the same principle doesn't seem to work for normal category blogs (continued in secure area)
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: collapsing sidebar via css

    Posted 6 years 4 months ago
    • Login details no longer seem to work so I can't check anything.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: collapsing sidebar via css

    Posted 6 years 4 months ago
    • sorry - switched on again now
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: collapsing sidebar via css

    Posted 6 years 4 months ago
    • MrT wrote:
      ... I am not too familiar but with Articles you can have the same type of issue and they way around that is to use a "category" menu item (i.e a menu item that picks up several component items all in one go) but that menu item does have to be more specific (at a lower level) than the initial component list. Again you can get around that by having nested categories...

      I draw your attention back to what I said earlier. The hidden menu item that you create has to be more specific than any other menu item if it is going to be used. You already have a category blog menu item called "planning ideas & advice > wedding themes tutorials & DIY ideas" to it's no good creating another menu "hidden" menu item that is exactly the same (as you have done for menu item ID 394). Sometimes you have to "nest" categories like this...
      ... wedding themes & diy ideas
          - more specific category
              - article 1
              - article 2
              - etc
              

      So then you make your normal category blog point at "wedding themes & diy ideas"
      but your "hidden" menu item needs to use "more specific category" and it is this menu item to which you assign the outline (template) that you wish to use for the single articles.

      Regards, Mark.
    • Last Edit: 6 years 4 months ago by MrT.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.071 seconds