Site navigation - Post ID 134475

User 1964159 Photo


Registered User
156 posts

Hi Yall!
'Thinking of re-designing the navigation on my site. The present set up is based on a vertical layout but spreads right across the page to levels2/3/and 4 kinda ugly.
I will use menu builder inside the editor, agian, but do not relish opening 140 pages, to insert all the code, unless I have to. Would you guys recommend using find and replace to do say, 20 pages? I can I assume save all the mark-up to snippets. What do you think?
User 122279 Photo


Senior Advisor
14,624 posts
Online Now

Hi Tony,

Not quite sure I understand what you want to achieve. Since some of the levels only consist of one page, maybe you can combine two levels to one?

As for Search and replace: You can do a 'global' search and replace which will find and replace all instances of one phrase on all the pages in the same folder. What you have to be aware of, though, is that if the line breaks are in different positions on some of the pages, only those phrases (or code bits) which are identical to the one you search for, will be replaced. And if you want to replace something on only 20 pages, the best thing would be to put those pages temporarily into a subfolder.

It should be easy to save whatever codebits you want as snippets.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 1964159 Photo


Registered User
156 posts

Hi Inger, I hope you are having a good summer.
My first post might have been slightly confusing. I'm thinking of having hoizental navigation, instead of left- hand vertiical panel. You will probably know that menu builder creates two sections of code, which has to be inserted into each page:
<link rel="stylesheet" type="text/css" href="css/menu-menu.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/superfish-vertical.css" media="screen">

</head>
and then a lot of mark-up which goes in between the <div id="navigation">******* </div> divs.
I was trying to think of of a quicker way of inserting the data into each page and thought "find and replace" might be the answer.
By the way, QUEST will be posted out very soon, it's with the printer as we speak.
User 122279 Photo


Senior Advisor
14,624 posts
Online Now

I think it would be ok to use search and replace for that, bearing in mind what I said about line breaks and such.

I won't be of much practical help at the moment as I'm on holiday in Turkey and far away from my computer with my CC progs., but I'll be home in a week.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 184085 Photo


Ambassador
1,707 posts

A global search and replace should work fine for you. One thing I might also suggest is you can create your menu and save it as a seperate file like

<ul class="vifc-menu">
<li class="first"><a href="./">Home</a></li>
<li>
<a href="about_us.php">About Us</a>
<ul>
<li class="first"><a href="headquarters.php">Club HQ</a></li>
<li><a href="organization.php">Organization</a></li>
<li><a href="procedures.php">Procedures</a></li>
<li><a href="join_us.php">Join Us</a></li>
<li><a href="frequent_questions.php">FAQ</a></li>
</ul>
</li>
</ul>


I call my file menu.html and save it in a folder on the website called menu

then on each page of my site I include the line

<div id="menu_box"><?php include("menu/menu.html"); ?></div>


or

<div id="menu_box"><? include virtual("menu/menu.html"); ?></div>


this way your one menu file is inserted by the server into the page before it is sent to the person viewing the site, the advantage here is you have one file, menu.html to maintain and update when new pages come online.

you will however need to save your webpages with the ending .shtml or .php instead of the .html to tell the server hey, look for stiff to insert before you send it out.

Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 122279 Photo


Senior Advisor
14,624 posts
Online Now

I think the php variant is better and a more up to date solution than the other one. And you can leave the entry page as it is, with the .html extension, because it has no navigation anyway. So no need to upset search engines or those who have bookmarked the index file.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 1964159 Photo


Registered User
156 posts

EEEEEEK! sORRY LADIES, I have been on a holiday and will have to re-read this several times. I should know better at my old age, but this looks like GGreek to me at present. I may well be back.
:rolleyes:
Tony
User 184085 Photo


Ambassador
1,707 posts

I am a man.
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.