The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with cPanel install file generator

Discussion in 'User Experience' started by mm1250, Jun 25, 2008.

  1. mm1250

    mm1250 Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    I was at the cPanel conference and found the cPanel Install File genrator @ http://www.cpanel.net/plugins/devel/installgen.html .

    Well, there is a few questions I have.

    1. How do I create a custom display group? Instead of the current defaults, I want to have one created called "Promotions".

    2. What is the "On Click Event:"? What do I put there?

    I just want to make some icons that link to certain parts of my website such as billing and some promos I run.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I've been bringing this up in conversation about the possibility of allowing the Plug-in generator to permit this. However, for this to be done properly, much code would need modification in cPanel itself so it may be a while before we see this implemented. (Internal Case 6014)

    As a result, there is currently no good/ideal way to do this.

    One trick I used to use was to manually edit the file generated by the generator and replace the section with my own section. The downside to this is 1) it is not officially supported, and doesn't work as ideally as it could and 2) It doesn't display the actual name of the section you created in the cPanel interface. It just shows a blank bar.

    What I prefer to use is to edit the index.html of the style via the Branding Editor and place my code there. However, this loses the portability of the Plug-ins architecture since you're now hard coding something into a specific style. I have attached a screenshot of the slide that was in an earlier version of the presentation that I ultimately gave at the 2008 conference.

    That On Click event refers to the JavaScript OnClick event you can add to hyperlinks. We found that putting onClick code in the hyperlink itself was a bad idea in terms of consistency of the functionality of the interface. Having this in the generator will append your OnClick code to the code automatically generated by our APIs.

    An example of how you would use this is in the slides for my Advanced Guide to Branding presentation from the 2008 Conference: http://www.cpanel.net/conference/08/files/Branding.pdf
     

    Attached Files:

  3. mm1250

    mm1250 Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    Hello David,

    Any update to weather you guys will have implemented the internal case 6014 to allow sections to be added with the install file generator? this would be of great help. For now, I just place my custom icons in the Preferences area.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    There hasn't been any update about this yet. However, we are aware that this is an issue.
     
Loading...

Share This Page