0
Welcome Guest! Login
0 items Join Now

Total noob question: How to create a link to color chooser?

  • Total noob question: How to create a link to color chooser?

    Posted 13 years 10 months ago
    • I want to remove the color chooser from header f in Crystalline and create an image link from a module somewhere else on the homepage.

      I have searched high and low and cannot find a way to create a link to the color chooser popup. Please help!
  • Re: Total noob question: How to create a link to color chooser?

    Posted 13 years 10 months ago
    • Anyone? If this is possible I would think someone would know the answer off the top of their head. If it's not possible please let me know so I can choose a different template.
  • Re: Total noob question: How to create a link to color chooser?

    Posted 13 years 10 months ago
    • Andy? Kat? Anyone? Is it possible to create a standard image or text link to the color chooser, or to style the color chooser to suit a different module position (other than header f) in Crystalline or any templat with color chooser?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Total noob question: How to create a link to color chooser?

    Posted 13 years 10 months ago
    • hmmm you can edit the code in colorchooser.php in the features folder of the template.
      But the link

      <a href="#" id="preset-creator"> ... </a>

      needs to be there. You can style that via css if you like to.
      The position of the link can be st in the template settings.
  • Re: Total noob question: How to create a link to color chooser?

    Posted 13 years 10 months ago
    • Thanks a friggin' buttload Henning! That's all I needed to know...what the link is to the color chooser.

      Maybe I didn't do a good job of specifying what I needed, but for some reason I could not find it ANYWHERE.
  • Re: Total noob question: How to create a link to color chooser?

    Posted 13 years 10 months ago
    • Now a followup question...why doesn't it work in the sidebar position? I created a custom html module with that link in it. Published to drawer or header positions it works. Published to sidebar A and it stops working. Is there a technical reason for this?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Total noob question: How to create a link to color chooser?

    Posted 13 years 10 months ago
    • open presetcreator.php in the features folder of your template and add right after

      function isEnabled() {
      global $gantry;

      this line:
      return true;

      so it looks like:

      function isEnabled() {
      global $gantry;
      return true;
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Total noob question: How to create a link to color chooser?

    Posted 13 years 10 months ago
    • and be sure that only one id="preset-creator" is on that page. The colorchooser toggle in the template settings can stay disabled now ...
  • Re: Total noob question: How to create a link to color chooser?

    Posted 13 years 10 months ago
    • Thank you for your help. I am THIS close to finshing up the the changes I wanted thanks to your first reply. I have created a new class in template.css and am styling that with the necessary graphics.

      Regarding your second answer (so I understand it):

      function isEnabled() {
      global $gantry;
      return true;

      This will enable color chooser from a custom html module? If so, I will use it for sure...but as I said I am almost finished with styling the original color chooser to fit in a module position which will get me off the hook for this weekend and I can implement your second suggestion after the weekend. :)
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Total noob question: How to create a link to color chooser?

    Posted 13 years 10 months ago
    • you can have only one link to the colorchooser on a page ...

Time to create page: 0.059 seconds