This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > December 2005 > SSI Menus





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SSI Menus
Baz J

2005-12-06, 11:05 pm

Hi I have an SSI menu problem, the menu works but i have to have all my files
in the root directory. Is there a way to to have a SSI menu bar that points to
individual files and folders and still work?
Regards Baz

Al Sparber- PVII

2005-12-06, 11:05 pm

Yes. Use Site root relative paths in the include file.

--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/




"Baz J" <webforumsuser@macromedia.com> wrote in message
news:dn4bgm$7uc$1@forums.macromedia.com...
> Hi I have an SSI menu problem, the menu works but i have to have all
> my files
> in the root directory. Is there a way to to have a SSI menu bar that
> points to
> individual files and folders and still work?
> Regards Baz
>


Baz J

2005-12-06, 11:06 pm

Have tried this but then the index file in my root directory dose not work. How do i make all the links in the include file root relitive? I think i am missing the big picture here.
Thanks Baz
NeilPeartRocks

2005-12-06, 11:06 pm

Here- have a look at one of my SSI maybe this will help

<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
</tr>
<tr>
<td valign="top"><table width="100%" border="0" cellpadding="0"
cellspacing="0">

<tr>

</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>

</table>
</td>
</tr>
<tr>
<td valign="bottom" align="left"><a
href="../../asp/course_tool/courseToolTest.asp"id="nav5"><img
src="../../images/courseFinder2.gif" alt="Course Finder Tool Rockwell Institute
" width="125" height="31" border=0> </a>
<p class="rightNavHomeText">Click here to find the right course for you.</p>
</tr>
<tr>
</tr>
<tr>
<td ><a href="../../asp/rockwell_career/realestatecareer.asp"id="nav5">
<span class="rightNavHomeSubtitle">Interested In a Career In Real
Estate?</span><br></a>
<p class="rightNavHomeText"><a
href="../../asp/rockwell_career/realestatecareer.asp"id="nav5">» Is a
Career in Real Estate Right for Me?</a></p>
<p class="rightNavHomeText"><a
href="../../asp/rockwell_career/realestatecareer.asp#working"id="nav5">»
Working as a Real Estate Agent</a></p>
<p class="rightNavHomeText"><a
href="../../asp/rockwell_career/realestatecareer.asp#expect"id="nav5">»
What to expect during your first year (?)</a></p>
<p class="rightNavHomeText"><a
href="../../asp/rockwell_career/realestatecareer.asp#other_opps"id="nav5">»
; Other Career Opportunities in Real Estate</a></p>


</td>
</tr>


<tr>
<td ><a href="../../asp/rockwell_career/exam_tips.asp"id="nav5"> <span
class="rightNavHomeSubtitle">Exam Anxiety?</span><br></a>
<p class="rightNavHomeText"><a
href="../../asp/rockwell_career/exam_tips.asp#tips"id="nav5">» Tips from
the Pros </a></p>
<p class="rightNavHomeText"><a
href="../../asp/rockwell_career/exam_tips.asp#day"id="nav5">» Day of the
Exam</a></p>
<p class="rightNavHomeText"><a
href="../../asp/rockwell_career/exam_tips.asp#improve"id="nav5">» Improve
your score</a></p>

<p class="rightNavHomeText"><a
href="../../asp/rockwell_career/exam_tips.asp#pass"id="nav5">» I Passed
the Exam! Now What?</a></p>
<p class="rightNavHomeText"><a
href="../../asp/rockwell_career/exam_tips.asp#finding"id="nav5">» Finding
a job/choosing a Broker</a></p>

</td>
</tr>
<tr>
<td ><a href="../../asp/company/answers.asp"id="nav5"> <span
class="rightNavHomeSubtitle">Rockwell Quick Answers</span><br></a>

<p class="rightNavHomeText"><a href="#"id="nav5">» How do I get my
license? </a></p>
<p class="rightNavHomeText"><a href="#"id="nav5">» What classes do I
need to take?</a></p>
<p class="rightNavHomeText"><a href="#"id="nav5">» How does the online
class work?</a></p>

<p class="rightNavHomeText"><a href="#"id="nav5">» How much will it
cost?</a></p>
<p class="rightNavHomeText"><a href="#"id="nav5">» How hard is the state
exam?</a></p>

</td>
</tr>
<tr>
<td ><a href="../../asp/company/chooseRockwell.asp"id="nav5"> <span
class="rightNavHomeSubtitle">Why Choose Rockwell?</span><br></a>

<p class="rightNavHomeText"><a
href="../../asp/company/chooseRockwell.asp"id="nav5">» Our History of
Success </a></p>
<p class="rightNavHomeText"><a
href="../../asp/company/chooseRockwell.asp#tech"id="nav5">» Technical and
Content Support</a></p>
<p class="rightNavHomeText"><a
href="../../asp/rockwell_career/guarantee.asp"id="nav5">» Rockwell's
Passing Guarantee</a></p>
</td>

</tr>
<tr>

</tr>
</table>


Les Matthews

2005-12-06, 11:06 pm

Root-relative links must begin with a backslash - "\". The backslash
signifies the root.
Your link to the index page would be either "\" or "\index.htm".
Links to pages in folders would look like "\products\product1.htm",
"\services\", etc.

"Baz J" <webforumsuser@macromedia.com> wrote in message
news:dn4d4h$a9a$1@forums.macromedia.com...
> Have tried this but then the index file in my root directory dose not
> work. How do i make all the links in the include file root relitive? I
> think i am missing the big picture here.
> Thanks Baz



Baz J

2005-12-07, 6:21 am

Great Stuff, Thanks for the advice.
Regards Baz
Baz J

2005-12-07, 6:26 am

I have got this <!--#include file="\server_side_include/popupmenu.htm" -->
The url is domain.com/server_side_include/popmenu.htm

what am i doing wrong?

Any idears?
Les Matthews

2005-12-07, 6:26 am

I gave you the wrong slash.
Use "/", not "\".
<!--#include file="/server_side_include/popupmenu.htm" -->

"Baz J" <webforumsuser@macromedia.com> wrote in message
news:dn4l03$lr6$1@forums.macromedia.com...
> I have got this <!--#include file="\server_side_include/popupmenu.htm" -->
> The url is domain.com/server_side_include/popmenu.htm
>
> what am i doing wrong?
>
> Any idears?



Gary White

2005-12-07, 6:30 am

On Tue, 6 Dec 2005 18:24:03 +0000 (UTC), "Baz J"
<webforumsuser@macromedia.com> wrote:

> I have got this <!--#include file="\server_side_include/popupmenu.htm" -->
>The url is domain.com/server_side_include/popmenu.htm



In addition to Les's comment about the slash, when you use 'include
file' the path to the include file is based on the server's file system
and is not relative to your site at all. If you want to use a root
relative link, you need to use 'include virtual':

<!--#include virtual="/server_side_include/popupmenu.htm" -->

Gary
Thierry | www.TJKDesign.com

2005-12-07, 6:30 am

Les Matthews wrote:
> I gave you the wrong slash.
> Use "/", not "\".
> <!--#include file="/server_side_include/popupmenu.htm" -->


I don't think the file directive can use a path starting with a "/". Only
the virtual directive can.
virtual="/server_side_include/popupmenu.htm"

--
Thierry | http://www.TJKDesign.com | CSS-P Templates + Articles:
CSS Popups, CSS 3 Column Layout, CSS Tabs, CSS Dropdown Menu,
TIP Method, Sliced Images, Clean Popup Windows, Easy Maintenance.....


Baz J

2005-12-07, 6:34 am

Hi again, in my root directory I have a sub-directory called remote_control, i
would like to include a file within another root sub-directory called
server_side_includes and the file i want to include is called top_cars.htm. I
am having major probs with this and have tried all of the above. If anyone
could tell me how to do this i would be very very greatful.
Regards Baz

Gary White

2005-12-07, 6:47 am

On Tue, 6 Dec 2005 19:44:30 +0000 (UTC), "Baz J"
<webforumsuser@macromedia.com> wrote:

>Hi again, in my root directory I have a sub-directory called remote_control, i
>would like to include a file within another root sub-directory called
>server_side_includes and the file i want to include is called top_cars.htm. I
>am having major probs with this and have tried all of the above. If anyone
>could tell me how to do this i would be very very greatful.



I gave it to you already, as did Thierry. You need to use include
VIRTUAL instead of include FILE:

<!--#include virtual="/server_side_include/popupmenu.htm" -->

Gary
Baz J

2005-12-07, 6:47 am

Tried that, Diddn't Work. I have opted for a template design in the end.
SSI is great if you know what you are doing. May be i'll try again sometime. I
have a large site to build and have not got the time to figure out where i am
going wrong. Could have done with SSI but time waits for no man.
Thanks for trying to help.
Regards Baz

Baz J

2005-12-07, 6:50 am

Ok so it don't help if your file name is spelt server_side_inclued
and your SSI <!--#include virtual="/server_side_include/popupmenu.htm" -->
Durr.
Gary White

2005-12-07, 6:56 am

On Wed, 7 Dec 2005 01:03:01 +0000 (UTC), "Baz J"
<webforumsuser@macromedia.com> wrote:

>Ok so it don't help if your file name is spelt server_side_inclued
>and your SSI <!--#include virtual="/server_side_include/popupmenu.htm" -->



<LOL> So does that mean you found the problem? If not, it's worth
sticking with it. It may take a little longer now, but the time it will
save you later will be multiplied by the number of files where you use
it.

Gary
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews