0
Welcome Guest! Login
0 items Join Now

Adding new site config features into Gantry Admin

  • Adding new site config features into Gantry Admin

    Posted 12 years 11 months ago
    • Hi there,

      I would like to add a few more configuration options in the Gantry Admin to control background image for, header, footer, background etc and also the images will work from a dropdown box, I am compairing Cystalline template to the gantry one but would appreciate a jump start from anyone who is more familiar with which files I need to look at editing,

      help would be greatly appreciated!

      after this I would like to go for config options for font colors, h1,h2 etc so it can all be done point and click rather than edting css, but would appreciate anyone who can give me a starting pint!

      Cheers
      Steve

      P.S. or has this already been done??
  • Re: Adding new site config features into Gantry Admin

    Posted 12 years 11 months ago
    • I've figured out that in Gatry Admin theme I can add color choosers and drop down etc by editing
      templateDetails.xml

      but don't know how to save these settings and then pick them up ad alter the style of the site, e.g. background image.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Adding new site config features into Gantry Admin

    Posted 12 years 11 months ago
    • XENZOR's Avatar
    • XENZOR
    • Newbie
    • Posts: 1
    • Thanks: 0

    Re: Adding new site config features into Gantry Admin

    Posted 12 years 10 months ago
    • Hi!

      Can you specify this thing?
      I want to make some changes in the css with admin feature but i can't figure out how can i make it..
    • Last Edit: 12 years 1 month ago by XENZOR.
    • XENZOR | professional IT Solutions
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Adding new site config features into Gantry Admin

    Posted 12 years 10 months ago
    • that example was for the nebulae-template.
      But perhaps it helps if I just pase the stuff her so you get an idea:
      Just as an example:
      I choose to add a selectbox-option. Because when you add a slider you would have to add a background image to the gantry.css for the "default-medium-small" option like "high-low-med". Not that hard to do but a selectbox is easier.

      1. add this to your templateDetails.xml:

      <param name="my-menusize" type="selectbox" default="default" label="MENUSIZE" description="" setbyurl="true" setinsession="true" setbysession="true" setincookie="true" setbycookie="true" isbodyclass="true">
      <option value="default">Size default</option>
      <option value="medium">Size medium</option>
      <option value="small">Size small</option>
      </param>

      you can add it right after the "backgroundlevel"-Parameter

      2. add this to your template.css (or demo.css or a custom css-file)

      /*Menusize feature*/
      .my-menusize-small .menutop li.root > a.item
      {font-size: 14px;padding: 0;height: inherit;
      line-height: 30px;text-transform: capitalize;}
      .my-menusize-small div.rt-menubar
      {margin-top: 80px;}
      .my-menusize-small .menutop li.parent.root a.item span .daddyicon,
      .my-menusize-small .menutop li.root a.daddy.item .daddyicon
      {top: 12px;}

      .my-menusize-medium .menutop li.root > a.item
      {font-size: 16px;padding: 0;height: inherit;
      line-height: 60px;text-transform: capitalize;}
      .my-menusize-medium div.rt-menubar
      {margin-top: 50px;}
      .my-menusize-medium .menutop li.parent.root a.item span .daddyicon,
      .my-menusize-medium .menutop li.root a.daddy.item .daddyicon
      {top: 27px;}

      3. clear your caches.
      This gives you a nice option for the menu-size in the template-settings
  • Re: Adding new site config features into Gantry Admin

    Posted 12 years 7 months ago
  • Re: Adding new site config features into Gantry Admin

    Posted 12 years 7 months ago
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Adding new site config features into Gantry Admin

    Posted 12 years 7 months ago
    • Radiance and Momentum HAVE Imagepickers. How to use them for your own template surely this goes beyond what we can provide in the forum herea and is considered advanced costum work. You may want to post in the marketplace forum where you can hire a developer to do this for you.

      The easiest way is to add a body class and use some css. (as shown above)
      Since all templates are very different I can't help you more with information available.
      Not sure WHY YOU PUSH A TOPIC YOU HAVEN'T EVEN STARTED YOURSELF.
  • Re: Adding new site config features into Gantry Admin

    Posted 12 years 7 months ago

Time to create page: 0.046 seconds