0
Welcome Guest! Login
0 items Join Now

New theme for Roksprocket Mosaic with two columns

  • New theme for Roksprocket Mosaic with two columns

    Posted 11 years 4 weeks ago
    • Hi.

      I'm looking for a way to make an additional new theme for Roksprocket Mosaic. I know how to make an override for Mosaic, that's not the problem.

      But I want more: I want to make an additional theme (simply copying the default folder and rename it doesn't seems to work). But the other thing is that I want a theme with two columns, and that's not in the list. So I have to add that parameter to the options.xml file.

      But this only seems to work when I do that in the options file which is in the components folder. Copying this file to my template folder doesn't seem to work.

      And in that case my options.xml will be overwritten when I update Roksprocket. Does anyone has an idea if this is possible? And if yes, how?

      Regards,
      Hans
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22281
    • Thanks: 3225
    • messin' with stuff

    Re: New theme for Roksprocket Mosaic with two columns

    Posted 11 years 4 weeks ago
    • The only request I see here is to make a 2 column view... you could set it to 3 cols and then override the sprocket-mosaic-columns-3 classes appropriately...
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
  • Re: New theme for Roksprocket Mosaic with two columns

    Posted 11 years 3 weeks ago
    • Hi Blam,

      Thank you for the suggestion but I don't want to do this the quick and dirty way, I want to keep the flexibility there is and, if possible, enhance it with extra column settings. That's why I asked if there is a way to make a new template for the Mosaic widget. And if that is not possible, the other solution would be extra settings in options.xml.

      But as said, if I change options.xml in the components folder, these settings will be overwritten with an update of RokSprocket.

      So if you know how to make an options.xml which is independent of that folder it would give me the flexibility I need.

      Hope to hear soon!

      Regards,
      Hans
  • Re: New theme for Roksprocket Mosaic with two columns

    Posted 11 years 3 weeks ago
    • Hi,

      Sorry for my English

      1. /your_site/components/com_roksprocket/layouts/mosaic
      2. Open file: options.xml
      3. Find this:

      <field name="mosaic_columns" type="containerlist" default="3" label="ROKSPROCKET_MOSAIC_COLUMNS"
      				   description="ROKSPROCKET_MOSAIC_COLUMNS_DESC" optionorder="54" class="layout layout_mosaic">
      				<option value="3">3</option>
      				<option value="4">4</option>
      				<option value="5">5</option>
      				<option value="6">6</option>
      			</field>

      4. Add:

      <option value="1">1</option>
      <option value="2">2</option>

      Hope this help.

      Greetings

Time to create page: 0.071 seconds