Welcome Guest, Not a member yet? Register   Sign In
Best practice to including sidebar on some pages, but not all?
#8

[eluser]ELRafael[/eluser]
what i do in my projects:
use js to check if there is sidebar content. in jquery, something like this
Code:
var has_sidebar = $('div.sidebar_class').html();
if (has_sidebar.length > 1)
{
  $('div.sidebar_class').addClass('some_class');
  $('div.right_content_of_sidebar').addClass('some_other_class');
}

but there are a thousand solutions! even with ci.

the js maybe wrong, i don't check nothing Big Grin


Messages In This Thread
Best practice to including sidebar on some pages, but not all? - by El Forum - 11-06-2009, 03:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB