Great ! I'll give that a try - thanks for all of your help. On Aug 18, 1:30 pm, Owen Winkler <[email protected]> wrote: > On 8/18/2010 11:38 AM, ACME Media Farm wrote: > > > Thanks Owen, I'm admittedly completely new to Habari - I've downloaded > > it from time to time to check out the progress but tha's about it (I'm > > a Textpattern/wordpress veteran). That being said can I bother you to > > explain to me how to do the following: > > >> Note that this doesn't check to see if the stylesheet file exists. You > >> can get the filename of the css file with Site::get_path() and check > >> that before adding the stylesheet. > > Something like this: > > <?php > if( > $request->display_entry > && isset($post) > && file_exists(Site::get_path( > 'theme', > '/entry-' . $post->id . '.css' > ) > ) { > Stack::add('template_stylesheet', > array( > Site::get_url( > 'theme', > '/entry-' . $post->id . '.css' > ), > 'screen' > ) > );} > > ?> > > Owen
-- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/habari-users
