 |

Dino
Novice
Apr 8, 2003, 10:07 AM
Post #1 of 4
(3325 views)
Shortcut
|
|
Main Frame Alignment
|
Can't Post
|
|
2 small requests. 1) How do I make the main frame align itself left? 2) By not entering a Title in the editor for the main page, it allows me to have the content on the page align at the top. However, I now have an empty space at the top of the navigation bar. How can I put a fixed "Home" link there and still retain the dynamic nature of the rest of the sections? This is the layout for both questions http://www.nicaso.com/pages/ Thanks, Dino Netwerx Communications ------------------------------------------------ For complete Website Hosting & Design, Merchant Account Services, Ecommerce Solutions, Domain Name Registration & Website Promotion Visit www.netwerx.com ------------------------------------------------
|
|
|  |
 |

Donna
Staff
/ Moderator

Apr 8, 2003, 3:37 PM
Post #2 of 4
(3308 views)
Shortcut
|
|
Re: [Dino] Main Frame Alignment
[In reply to]
|
Can't Post
|
|
Hi Dino, Thanks for posting! I'll answer your questions in order... 1. The basic problem with your frame not aligning is that the frameset is a bit too wide. Try editing the _doc_index.html template file and changing the 204 to something smaller. You may have to fiddle with it to find the right width for your needs. 2. To do this takes a little JavaScript, but I'm rather fascinated with the results! (This isn't something I've ever tried before.) What you can do is enter the following into the title: <a href="#" onclick="parent.window.top.location.href='http://www.nicaso.com'">home</a> Or, if you wanted it to load in the content frame, you could put this: <a href="#" onclick="parent.window.content.location.href='http://www.nicaso.com'">home</a> Basically, you can have any page you want pulled into the DocBuilder with this script by replacing the web site address. Hopefully this answers your questions! Let me know if you need any further assistance. Thanks, Donna Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

Dino
Novice
Apr 8, 2003, 4:37 PM
Post #3 of 4
(3304 views)
Shortcut
|
|
Re: [Donna] Main Frame Alignment
[In reply to]
|
Can't Post
|
|
Thanks Donna, it (the frame columns width) went right over my head. As for the second part, take a look now http://www.nicaso.com/pages/ Your suggestion puts the link in the content page. I would like to have it in the nav bar above profile and NOT in the content page (the opposite) Any ideas? Many thanks, Dino Netwerx Communications ------------------------------------------------ For complete Website Hosting & Design, Merchant Account Services, Ecommerce Solutions, Domain Name Registration & Website Promotion Visit www.netwerx.com ------------------------------------------------
|
|
|  |
 |

Donna
Staff
/ Moderator

Apr 8, 2003, 5:16 PM
Post #4 of 4
(3300 views)
Shortcut
|
|
Re: [Dino] Main Frame Alignment
[In reply to]
|
Can't Post
|
|
Hi Dino! No problem, we can go into further detail. :) Basically, what you need to do is edit the templates. You may want to make backups of the original files before you do this -- we're not making any huge changes, but it's a good habit to get into. (There's a little bit of advice I need to take more often myself!) Both problems can be solved by editing the templates. So, you'll want to get a text editor (like Notepad) and open up the file "_doc_index.html" in your DocBuilder templates directory. If you don't have a copy of this file on your home computer, you'll want to download it -- you'll find it on your server wherever it was installed. (Usually in a folder called "/db/templates/" or "/cgi-bin/db/templates/" but I can't be sure without looking at your exact configuration.) On line 6, you should see the following: <frameset cols="204,*" border="0"> The 204 stands for how many pixels wide the column on the left is -- the reason your text appears to not be aligned left is actually because the frame on the left is too wide. You'll want to change the 204 to something narrower... I usually go down in increments of 25 or so until I get the right width. That's sort of a case of trial and error until you get the page looking exactly how you want it. ---- The second problem is the link: It looks that aside from the link in the content, that's doing what you want it to. So, the best solution is probably to edit the template so that that doesn't show up. So, open the template file named _doc_page.html (in the same directory as _doc_index.html that we mentioned above.) On line 9, you'll see the placeholder tag $title$. Remove this and that will stop the page title from showing up on the content page. The catch is that it won't show up on ANY page, not just the main one. So if you want it to continue showing up on the other pages (Profile, Quotes, etc) you'll want to add that in by hand in the Document Manager. Once you've changed the two template files, upload them to the templates folder on your server. Does this help? Let me know if you're still having trouble. Thanks! Donna Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
(This post was edited by Donna on Apr 9, 2003, 9:25 AM)
|
|
|  |
 | |  |
|