-
☆ A M B ☆
- 24,524 Posts
Have you seen my articles on writing a database management module? I’ve also written an article on developing an extjs based front-end snippet to go with it; it would certainly be easy enough to modify the extjs grid to make it editable.
I tried that - doesn’t work. Everything looks the same as before :|
Even re-installed it. "refresh" doesn’t show anything.
-
☆ A M B ☆
- 2,475 Posts
TobyL -- I’ll give that edit a try at some point.
sottwell -- thanks! I hadn’t seen your articles on that.
ganeshXL -- I just recently discovered that post of yours. Very helpful! Thanks!
The topic of database access is huge... and even though I’ve put together a robust and extendable class for data objects and regular expressions, I keep finding other scripts that perform similar actions. I’m leaning towards more of a 2-script approach like phpMyEdit: 1 class file, and one setup file that generates a page (i.e. extends the class). phpMyEdit looks pretty good... but part of me freaks out when I don’t understand EVERYTHING in the code. I’m also not sure how to tie it into the MODx front end or use it for form processing.... whereas my code is fully intended to be used as a Snippet (or as a module). My brain is full I think...
Brilliant!
Was just about to start building one of these myself... with no experience!
You saved me a great deal of pain!
Thanks
Quick question...
Which script picks up the link attributes (eg. &ra=insert)? I want to add an extra link and direct it to a custom php page I have made.
Any advice or help would be appreciated, thanks in advance!
-
☆ A M B ☆
- 24,524 Posts
That’s not a link attribute; a link attribute is something that goes in the <a> tag, like target="_blank". What you want is a query string name-value pair. How you do it depends on whether you have friendly URLs or not.
<a href="[~xx~]?ra=insert...
if you have friendly URLs on (your URL has mypage.html),
<a href="[~xx~]&ra-insert...
if you don’t (your URL has index.php?id=xx).
@susan As we’re talking about a manager module which runs inside the manager the whole friendly urls story doesn’t apply here. For teh rest you are quite right.
Have a look inside the dbedit/index.php file. You should see a couple of switch statements that control which page or script is loaded The second (nested) switch block uses the $ra value. (Somewhere near line117)