Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-10 21:26:23

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

[request] jQuery Portlet in admin

I’ve only done some limited research on this, but have found a plugin with jQuery that would be useful for TXP. I’m not sure if anyone’s looked into this yet, but the portlet is a pretty cool thing. With the growing popularity of glz_custom_fields having the ability to re-organize the admin interface would be awesome.

Anyone else looked into this?

Offline

#2 2007-12-11 05:37:06

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [request] jQuery Portlet in admin

Amit

I’m starting to look into this sort of thing with sed_section_fields. I’m starting on my jQuery learning journey at the moment by dissecting one of Wet’s, jQuery plugins.

I am also pulling some thoughts together about using asy_dashboard as a starting point for a jQuery’d interface — but I only pulled the code and started looking at it yesterday so I’ve not progressed very far. Thanks to some examples posted by iblastoff and others in this thread I’m well on the way and have solved a few of it’s initial niggles (giving it it’s own tab and making it the only one that’s highlighted in the tabset once you login)

Snapshot…

Dashboard Image

Initial inspiration was from txpnow! but making the “Shortcuts” into active portlets would be a good next step.

Last edited by net-carver (2007-12-11 05:42:00)


Steve

Offline

#3 2007-12-11 15:24:40

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: [request] jQuery Portlet in admin

The portlets are great, but you’d need to add a cookie process, because as it is now, the rearranged portlets stay where you want them for that one browser session. There’s no point in doing it if it doesn’t persist across visits.


TextPattern user since 04/04/04

Offline

#4 2007-12-11 15:48:44

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: [request] jQuery Portlet in admin

You could always serialize out the markup, store it and then use that as the basis to rebuild the page through an AJAX call.


Shoving is the answer – pusher robot

Offline

#5 2007-12-11 18:28:22

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

Re: [request] jQuery Portlet in admin

@net-carver – I’m excited to see what you come up with. I don’t want to duplicate efforts but I really want to see this to fruition, so let me know if I can help with dev, testing, or in other ways.

@reid/hakjoon – I agree that it needs to persist and I would think that hakjoon’s solution could be stored in that cookie session. I’m relatively new to jQuery and javascript security, but do we see any concerns with having the markup stored in the cookie? Granted we limit the cookie’s visiblity to just the textpattern backend.

Offline

#6 2007-12-12 04:02:30

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: [request] jQuery Portlet in admin

Ideally I would store it in the DB somewhere and it could then be called through a plugin in the write tab. A single $('#edit').load("/texpattern/index.php?event=myplugin"); could potentially redraw the whole write tab in one swoop.


Shoving is the answer – pusher robot

Offline

#7 2007-12-12 16:59:37

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

Re: [request] jQuery Portlet in admin

One other request would be to make it section aware. This way if you had an events section the layout would work better with adding events while your regular blog post section would have a different layout.

Offline

Board footer

Powered by FluxBB