Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
in Search
Welcome to AspAdvice Sign in | Join | Help

New Vine Type website - centralaustindentist.com

Last post 12-01-2007, 7:48 PM by DougJoseph. 7 replies.
Sort Posts: Previous Next
  •  11-26-2007, 11:14 AM 36895

    New Vine Type website - centralaustindentist.com

    I launched a new Vine-Type powered website last week: centralaustindentist.com.

    It's a single-template site with some CSS magic to display the front page differently than the rest of the pages.  If you have any questions about how to accomplish anything you see on the site, just ask.

    -- Carl. 


    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
    Filed under:
  •  11-27-2007, 1:17 PM 36962 in reply to 36895

    Re: New Vine Type website - centralaustindentist.com

    Looks great!

    I'd love to learn a wee bit more about that "CSS magic to display the front page differently than the rest of the pages"...


    Sincerely,
    Doug Joseph
    Filed under:
  •  11-27-2007, 2:20 PM 36970 in reply to 36962

    Re: New Vine Type website - centralaustindentist.com

    The "magic" starts with this in my Vine Type template:

    < body class="$_nav_section" >

    When Vine Type generates the XHTML for each page, the navigation section name appears as a class name for the body element.  For the home page, Vine Type renders < body class="Home" >

    Disappearing act

    You'll notice that the three large boxes only appear on the home page.  If you look into the CSS file of that site you'll see among the CSS these two entries:

    
      #mainservices               {display:none;}
      body.Home #mainservices     {display: block;}
    

    Both of these lines of CSS appear on every page, but only the home page has XHTML that matches the second entry

    1. All pages see the first entry and remove the #mainservices div.  That's the div with the three faces on it
    2. All pages see the second entry that "brings it back" but none of the pages besides the Home page will apply this entry because their body's class name doesn't match "Home" so all pages besides the home page don't apply the second entry.

     In this way, I can apply default styling for the whole site, and then override some settings by starting off the CSS entry with body.Home

     


    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
    Filed under: ,
  •  11-27-2007, 2:59 PM 36975 in reply to 36970

    Re: New Vine Type website - centralaustindentist.com

    I see! I thought it had to be something like that, but I did not know the specifics (i.e. body.Home)

    Cool! I'm glad to learn that.


    Sincerely,
    Doug Joseph
    Filed under:
  •  11-27-2007, 3:03 PM 36977 in reply to 36975

    Re: New Vine Type website - centralaustindentist.com

    Thanks. And by the way -- www.dougjoseph.net is pretty good also!

    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
    Filed under:
  •  11-27-2007, 3:14 PM 36979 in reply to 36977

    Re: New Vine Type website - centralaustindentist.com

    Thanks! BTW: You gotta try those two holiday recipes on my blog! My bunch fixes those dishes at all holiday gatherings. They're out of this world!
    Sincerely,
    Doug Joseph
    Filed under:
  •  11-27-2007, 7:09 PM 37003 in reply to 36979

    Re: New Vine Type website - centralaustindentist.com

    Yeah, well, if you put a stick of butter and a pound of Velveeta on anything it's going to taste good.  Even broccoli. :-)

    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
  •  12-01-2007, 7:48 PM 37178 in reply to 37003

    Re: New Vine Type website - centralaustindentist.com

    This is true. I don't even like broccoli. It's just some hidden ingredient buried under the cheese, included in the name of the dish just to let you think I'm eating something healthy.  :-)
    Sincerely,
    Doug Joseph
    Filed under:
View as RSS news feed in XML