Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[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…
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
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
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
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
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
Offline