Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-15 18:17:05

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

More tag identifiers (admin side)?

For example <form id="articlesearch" method="get" action="index.php" class="search-form" >.

Might we see them? Articles, Images, Files, Links and Comments don’t have many ids yet..

Could be quite useful for plugins.


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

#2 2007-06-15 19:09:31

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: More tag identifiers (admin side)?

We are leaning towards a larger number of ids, but with the recent addition of jQuery as a DOM traversal vehicle to the backend, even with the current user interface one should be able to find a proper hook in the DOM for the greater part of the user interface elements.

Offline

#3 2007-06-15 19:46:15

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

Re: More tag identifiers (admin side)?

Ah, great. I’ve been using some DIY-hooks but they are painful maintain.. Time to boost my JS-skillz this summer then.

Hopefully we’ll see some basic tutorials to get, um, slow adapters like me started.


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

#4 2007-06-15 19:49:50

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: More tag identifiers (admin side)?

Offline

#5 2007-06-15 20:39:39

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

Re: More tag identifiers (admin side)?

Cheers, that was fast.

I just glimped at 15 days. Not that I totally got it yet but gave me quite a lot ideas..

So…

  • I need triggering jQuery code with dom_attach() at some point?
  • Examples favour <head> after jQuery load, does it matter?
  • How do I attach there if there’s no <head> with an id? Can I throw it elsewhere?
  • A new function based on dom_attach() but with .getElementsByTagName("head") perhaps?

You get what puzzles my little brains? O.o

EDIT: Insert into HEAD for admin side plugin

Last edited by anoke (2007-06-15 20:42:44)


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

Board footer

Powered by FluxBB