Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

how to show and hide subcategory? at the table layout form

edited June 2015 in Vanilla 2.0 - 2.8

hide
image

click
image

it's mean is not panel and menu category.. i want to how to dropdown at table layout form like above two img

I searched for a solution for long time.. but i cant searched anyting else so and even i dont know php well

plz help me

Comments

  • hgtonighthgtonight ∞ · New Moderator

    A little custom JS should make this possible.

    Are you comfortable writing JS?

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • edited June 2015

    @hgtonight said:
    A little custom JS should make this possible.

    Are you comfortable writing JS?

    sure, if for example

    and i already made Themes style.. but i want to adding plugin style.. so at class.xxxx.plugin file how to call function?
    ex> PostController_Render_Before,Base_Render_Before..
    Where has it been definition or is there guide?
    i dont know vanilla standard function.

  • hgtonighthgtonight ∞ · New Moderator

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • ty but why erros Base_Render_Before function? even i tested it that css and js file is Blank.. omg
    can't my site(setting) after added Base_Render_Before function.

    class MarvelHeroes extends Gdn_Plugin {
    public function Base_Render_Before($Sender) {
    $this->_AddResources($Sender);
    }
    private function _AddResources($sender) {
    $Sender->AddJsFile($this->GetResource('js/marvelheroes.js', FALSE, FALSE));
    $Sender->AddCSSFile($this->GetResource('design/marvelheroes.css', FALSE, FALSE));
    }

    }

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    class MarvelHeroesPlugin extends Gdn_Plugin {
    
        public function Base_Render_Before($Sender) { 
    
         $Sender->AddJsFile($this->GetResource('js/marvelheroes.js', FALSE, FALSE));
         $Sender->AddCSSFile($this->GetResource('design/marvelheroes.css', FALSE, FALSE));
        } 
    
    }
    
Sign In or Register to comment.