Re: Order of nodes for <?cs each ?>

Brandon Long <[email protected]>
Newsgroups gmane.text.clearsilver.general
Organization Fiction L Networks
Message-ID <20070312224750.GC10457@bl1>
I'm not sure what you mean by "handler".

Essentially, a clearsilver cgi consists of:

cgi_init
cgi_parse
your functions here (handler?): some combination of hdf_read_file and
  hdf_set_value
cgi_display

cgi_init and cgi_parse do add hdf variables, and so does your own code
(handler).  Obviously, you'd have to call the hdf_sort_obj method
somewhere after the hdf is added.

Its also possible to add hdf variables in cgi_display via cs set: calls
in your templates.  There would be no way to call hdf_sort_obj on those
variables.

Brandon

On 03/12/07 hugo_krapf uttered the following other thing:
> About ordering of nodes shown by 'each'.
> 
> I know this topic isn't new, it was first mentioned in msg #16 (with 
> follow ups in #18 and #19). And I realize hdf_sort_obj() is in the 
> sources.
> 
> My problem is *when* to run such function. I've tried it in a handler, 
> but the handler doesn't seem to receive the nodes I'm interested in! 
> (even though 'each' does list them, unsorted!)
> 
> Mr. Long said...
> > maybe it'll be a function on HDF that will have to be run prior to
> > the template stage.
> ...when exactly is that "prior to the template stage" phase?!
> 
> Thanks in advance,
> Hugo.


-- 
 "Isn't it amazing how much fun two people can have just by taking off 
  their clothes?" -- David Gerrold
                                           http://www.fiction.net/blong/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.