Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

Element Position Question

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


smith_t at denison

Jul 14, 2008, 8:47 AM

Post #1 of 2 (81 views)
Permalink
Element Position Question

So this might be kind of complicated, but I need to know how to obtain
the position of the element inside its parent within the utility
template that said element calls. This is because the utility
template is generating Javascript that I need to be uniquely
referenced and so if there is more then one instance of it then I need
to number it as such. IE I would like it to print out [element
position]_[unique subposition]. Thanks!

-Trevor


david at kineticode

Jul 14, 2008, 10:30 AM

Post #2 of 2 (76 views)
Permalink
Re: Element Position Question [In reply to]

On Jul 14, 2008, at 08:47, Trevor Smith wrote:

> So this might be kind of complicated, but I need to know how to obtain
> the position of the element inside its parent within the utility
> template that said element calls. This is because the utility
> template is generating Javascript that I need to be uniquely
> referenced and so if there is more then one instance of it then I need
> to number it as such. IE I would like it to print out [element
> position]_[unique subposition]. Thanks!

You want $element->get_place, IIRC.

Best,

David

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.