Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-26 23:16:12

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

jQuery Admin UI Proof of Concept

Disclaimer: Do not use in production. This is just a proof of concept to see how I can begin to use jQuery in the admin area.

This is the release of 0.0. I went with this version because of a couple reasons. First, I don’t want anyone using this in production, and it’s by no means a plugin that is architected or complete.

You can grab it here
jQuery v1.2.1 is required.

Right now all it does is let you resize the body and excerpt field. It will affect your performance since it’s pulling the script and css from a remote location. Once I get more comfortable with jQuery I’ll be packaging all this together for you to upload to your own site.

Current features:
  • Resize body and excerpt field
Ideas (things I plan to see if possible):
  • Create a cookie/store data in db to remember changes made to interface
  • Drag and drop the interface
  • Remember expanded/collapsed areas (already available through other plugins)
  • Show/hide fields by sections
  • Include the ability to upload images and files directly from the write tab

So here we go, and as always I’m open to ideas, suggestions, and criticism.

Last edited by variaas (2007-12-27 03:04:49)

Offline

#2 2007-12-27 02:08:53

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: jQuery Admin UI Proof of Concept

Question – how should this look and behave on the admin side if it is operating as intended?

I have:
1. Installed the plugin and enabled it and it renders properly when viewed as source.
2. Moved the calls inside document.ready after the included script tags when I got no response, document.ready may be enough to structure the scripts that way but I’m in the habit of doing it otherwise.

and I still don’t see any change in normal behaviour when I select the write tab.

Offline

#3 2007-12-27 03:02:55

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: jQuery Admin UI Proof of Concept

So it should look like – with green bars to the right and below the textarea:

Can you check what version of jQuery you are using? This requires 1.2.1.

Offline

#4 2007-12-27 03:28:33

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: jQuery Admin UI Proof of Concept

Yes – that was the problem. Guess i need to watch versions on my sandbox sites. It works now and I will use it on my sites as I get comfortable with it. It’s a very nice idea!

Offline

#5 2007-12-27 04:15:59

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: jQuery Admin UI Proof of Concept

Well I wouldn’t recommend using this very on your sites just yet since I’m pulling all the js files remotely. I’m in the midst of getting drag/drop working, so once I get that good to go, I’ll release a version including all the js files in a zip.

Offline

#6 2007-12-27 07:27:50

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: jQuery Admin UI Proof of Concept

hey hey variaas very nice! i quickly looked at your plugin code and easily extended it to the form/page/style areas as well. i haven’t dabbled with jquery (or js for that matter) but i’m definitely looking forward to whatever else you bring to the table.

if there was a way you know of that would make “…the ability to upload images and files directly from the write tab” created more elegantly than what i currently have that would be sweet. right now this nasty iframe business is a pain in the ass..

Last edited by iblastoff (2007-12-27 07:28:05)

Offline

#7 2007-12-27 07:30:53

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: jQuery Admin UI Proof of Concept

I was actually just looking at that and had a couple ideas. I’ll post on your thread.

Offline

#8 2007-12-27 08:12:10

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: jQuery Admin UI Proof of Concept

What is really useful – it’s dragging areas and remebering their position (better to use db). And i think it should be author-sensetive, because different authors have different tastes and different monitors (I meen the ability to expand body and excerpt areas).


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

Board footer

Powered by FluxBB