Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-05-01 20:11:22

juliane
Member
Registered: 2009-02-08
Posts: 33

jquery toogle categories list

how can I toogle the categories list? so it will only appear the list when I click ‘categories’.

could work also for the archive list.

thanks.

Offline

#2 2009-05-01 21:26:41

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: jquery toogle categories list

jmd_admin_js will allow you to run custom javascript in the admin.

Using that plugin and it’s dependency, stm_javascript., you can create a javascript snippet called “article” containing something like

$().ready(function(){
var content='<h3 class="plain"><a href="#write_sort" id="cat_display">Category</a></h3>';
$("#write-sort").before(content);
$("#cat_display").click(function(){
toggleDisplay('write-sort');
});

Last edited by MattD (2009-05-01 21:38:06)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB