XSitePro Website Design Software Message Board

The online forum dedicated to XSitePro users. Get help with website design in general and using this popular and incredibly powerful website software
It is currently Fri May 24, 2013 12:16 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sat Feb 11, 2012 11:16 am 
Offline

Joined: Wed Dec 31, 2008 6:47 pm
Posts: 25
Been away for awhile on some contracting projects. Am trying to blow the dust of XSitePro for the third time (hey, isn't the third time supose to be the charm?). I wanted to check in and see if anyone had come up with a code generator for Tabbed Content/Containers. I really wish that XsitePro would consider putting this into their program as a script writting widget or something.

I am looking for this style setup:
http://www.p2sys.com/Detail.aspx?ID=1

When you have a ton of product details it will allow you to really clean the page up and make it not so busy. Has anyone on the board built a site (please post the link) of something similar?

I found this tutorial but have not yet tried it out. Part of the issue I'm having is knowing how to put it into the page correctly.
http://fearlessflyer.com/2012/01/how-to ... ontainers/

Thanks for any help folks can offer!

Andrew


Top
 Profile  
 
PostPosted: Sun Feb 12, 2012 11:49 am 
Offline
User avatar

Joined: Fri Feb 24, 2006 1:53 pm
Posts: 3448
Location: Vancouver, BC, Canada
Hi, Andrew,

I have that tabbed container working on this test page: http://kidskitchenplaysets4u.com/test-tabs.html. I edited it to match the grey background on my page. I also changed the left padding for the tabs from 40px to 25px which works better on my site. Otherwise, it's right out of the box.

Note that there's an edit you need to do for IE. It's in the Comments section of the page the original script is on: http://fearlessflyer.com/2012/01/how-to ... ontainers/.

**** AND you have to change the DOCTYPE to a Standards mode, like<!DOCTYPE html>, in XSitePro (Other > Global Scripts > Before anything else in the file) so it will work in Internet Explorer. Note: This doesn't actually change the DOCTYPE, it puts it before XSP's default Quirks mode DOCTYPE and that's one reason the XSitePro support team won't approve of this. The other reason is that there are certain things in XSP that will work a little bit differently once you add a Standards mode DOCTYPE. So, this is normally not recommended, but there are times when it's the only way to get certain CSS to work in IE.

Even with the DOCTYPE change, it's not working as elegantly in IE.

_________________
Andrea Wilson

1. Custom XSitePro Templates. XSitePro Consulting and Training. FREE TIPS!

2. Off-the-Shelf XSitePro Templates! Versatile designs. Easy to manage and maintain!

3. AllWebMenus Pro and XSitePro Work Perfectly Together! NEW!

Image


Last edited by ablewebs on Mon Feb 13, 2012 11:57 am, edited 2 times in total.

Top
 Profile  
 
PostPosted: Sun Feb 12, 2012 5:28 pm 
Offline

Joined: Wed Dec 31, 2008 6:47 pm
Posts: 25
Thanks for the info Andrea. However, I am a true newbie at this. Can you please assist me with where information gets coded within XSP. I know that certain items have to go in under the custom scripts section while some go into the source code section. I am working from the http://fearlessflyer.com/2012/01/how-to ... ontainers/ site to do this.

Any and all help would be most welcomed!

Andrew


Top
 Profile  
 
PostPosted: Sun Feb 12, 2012 10:12 pm 
Offline
User avatar

Joined: Fri Feb 24, 2006 1:53 pm
Posts: 3448
Location: Vancouver, BC, Canada
The CSS and the JavaScript go in Other > Global Scripts > HEAD section. The HTML goes in the Source view of the page you want the tabs to show up on. CSS has to be in style tags, as follows:
Code:
<style type="text/css">

#tabs {
   border:1px solid #ccc;
   height:28px;
   background:#eff5f9;
   padding-left: 40px;
   padding-top:45px;
   -moz-box-shadow: inset 0 -2px 2px #dadada;
   -webkit-box-shadow:inset  0 -2px 2px #dadada;
   box-shadow: inset 0 -2px 2px #dadada;
   border-top-left-radius:4px; 
   border-top-right-radius:4px;
}
#tabs li {
   float:left;
   list-style:none;
   border-top:1px solid #ccc;
   border-left:1px solid #ccc;
   border-right:1px solid #ccc;
   margin-right:5px;
   border-top-left-radius:3px; 
   border-top-right-radius:3px;
   -moz-box-shadow: 0 -2px 2px #dadada;
   -webkit-box-shadow:  0 -2px 2px #dadada;
   box-shadow: 0 -2px 2px #dadada;
}
#tabs li a {
   font-family:Arial, Helvetica, sans-serif;
   font-size:13px;
   font-weight:bold;
   color:#000000;
   padding:7px 14px 6px 12px;
   display:block;
   background:#FFFFFF; 
   border-top-left-radius:3px;
   border-top-right-radius:3px;
   text-decoration:none;
   background: -moz-linear-gradient(top, #ebebeb, white 10%); 
   background: -webkit-gradient(linear, 0 0, 0 10%, from(#ebebeb), to(white)); 
   border-top: 1px solid white;
   text-shadow:-1px -1px 0 #fff;
   outline:none;
}

#tabs li a.inactive{
   padding-top:5px;
   padding-bottom:5px;
   color:#666666;
   background: -moz-linear-gradient(top, #dedede, white 75%); 
   background: -webkit-gradient(linear, 0 0, 0 75%, from(#dedede), to(white)); 
   border-top: 1px solid white;
}

#tabs li a:hover, #tabs li a.inactive:hover {
   border-top: 1px solid #dedede;
   color:#000000;
}

.container{
   clear:both;        
   padding:10px 0px;
   width:664px;
   background-color:#fff;
   text-align:left;    
}

</style>
Change the width of the tabbed container in the container class in the CSS.

The JavaScript looks like this (I have edited it with the right code for IE):
Code:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
$(document).ready(function() {   

$('#tabs li a:not(:first)').addClass('inactive');
$('.container').hide();
$('.container:first').show();

$('#tabs li a').click(function(){
    var t = $(this).attr('href');
    $('#tabs li a').addClass('inactive');      
    $(this).removeClass('inactive');
    $('.container').hide();
    $(t).fadeIn('slow');
    return false;
})

if($(this).hasClass('inactive')){ //this is the start of our condition
    $('#tabs li a').addClass('inactive');      
    $(this).removeClass('inactive');
    $('.container').hide();
    $(t).fadeIn('slow');   
}

});
</script>
Put the JavaScript before or after the CSS.

Add this Standards mode doctype to Other > Global Scripts > Before anything else in the file:
Code:
<!DOCTYPE html>
Be warned that XSitePro will no longer work as expected in certain areas. In general these are minor and will not affect your site, but it may confuse you if you are used to the way XSP works in Quirks mode. Note: The default Lightbox won't work properly, so you'll have to use a third party Lightbox like Slimbox.

_________________
Andrea Wilson

1. Custom XSitePro Templates. XSitePro Consulting and Training. FREE TIPS!

2. Off-the-Shelf XSitePro Templates! Versatile designs. Easy to manage and maintain!

3. AllWebMenus Pro and XSitePro Work Perfectly Together! NEW!

Image


Last edited by ablewebs on Mon Feb 13, 2012 11:58 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Feb 13, 2012 6:15 am 
Offline

Joined: Wed Dec 31, 2008 6:47 pm
Posts: 25
Thanks for the help and clarification on this. I ran a quick test but am still having issues with it. It shows up all in one frame. It does not give me any of the styling of the tabs either. I'll keep playing with it to see if I can make it work.

I really wonder why this is not a more standard drop-in feature. Seems like folks could really use it in their designs in order to keep pages really clean looking but still offer a ton of information.

Thanks for your help,
Andrew


Top
 Profile  
 
PostPosted: Mon Feb 13, 2012 9:35 am 
Offline
User avatar

Joined: Fri Feb 24, 2006 1:53 pm
Posts: 3448
Location: Vancouver, BC, Canada
If you're willing to pay for some consulting time, I'm pretty sure I can get it working for you. You'd need to export your site and email it to me if it's a small site, or send it via DropBox.com or YouSendIt.com (use their FREE version!).

_________________
Andrea Wilson

1. Custom XSitePro Templates. XSitePro Consulting and Training. FREE TIPS!

2. Off-the-Shelf XSitePro Templates! Versatile designs. Easy to manage and maintain!

3. AllWebMenus Pro and XSitePro Work Perfectly Together! NEW!

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: Google [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group