Re: Lightbox plugin
Posted: Wed Apr 18, 2007 10:17 am
Hi!
I think the entry ID should be evailable in the $eventData array, within the 'Frontend_display' cycle where the preg_replace is executed. ($eventData['id']).
However, the current preg_Replace cycle cannot incorporate that in the $regex and $sub patterns, there needs to be a dynamic placeholder that is substituted with the entryid, either via printf or also via a second preg_replace. Of course that would impact performance by roughly 50%, if a second preg_replace is added for each entry call...
Best regards,
Garvin
I think the entry ID should be evailable in the $eventData array, within the 'Frontend_display' cycle where the preg_replace is executed. ($eventData['id']).
However, the current preg_Replace cycle cannot incorporate that in the $regex and $sub patterns, there needs to be a dynamic placeholder that is substituted with the entryid, either via printf or also via a second preg_replace. Of course that would impact performance by roughly 50%, if a second preg_replace is added for each entry call...
Best regards,
Garvin