Thursday, October 18, 2012

Block Rendering

How can I render a view block if the request is not ajax?

 

I have a main nav which requests standard html call and loads a page with a sidenav block.

The sidenav requests for each mainnav section are all ajax, but when it loads the pages for any of the sidenav links it loads the sidenav block again since its defined in the view.

 

I need to only load the sidenav if the request is not ajax.

 

Any ideas?

 

Thanks,

Dave

No comments: