Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Working Mechanic
Posted
It would be helpful and would save time if you made the code alterable. A good example are menues and stat counters. They require that code be embedded into your code. This can only be done after publishing in the 'Mysite' folder. Every time you publish you must reinsert the code. If you provided the capaility to alter code while working on the project(select file then code)one could embed the menu or stat counter code in your code and save it to the projects folder. This way the embedded code would always be there and there would be no need to insert it into the HTML pages after publishing.
 
Posts: 25 | Registered: August 23, 2004Reply With QuoteEdit or Delete MessageReport This Post
VM Staff
Picture of Harpo
Posted Hide Post
I have good news and bad news.

The bad news is that a code creator, such a Sitespinner, cannot really allow editing since the code is recreated, based on your page's contents, everytime you publish or preview.

The good news is that you can use the code object (menu: Object > Code) or Page editor's 'Header' tab to embed your code into a page.

See here and here for more details.
 
Posts: 3210 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Working Mechanic
Posted Hide Post
Great! but when I use the page editor it places the code after the Meta tags. The stat counter says they want it after <head>. Do you think it would make any difference?
 
Posts: 25 | Registered: August 23, 2004Reply With QuoteEdit or Delete MessageReport This Post
Honorary Mechanic
Picture of podge
Posted Hide Post
just insert a code object, put
quote:
<head>
before it

and

quote:
</head>
after it

in the code object, same with body tags


A part of JD&Co web design
-------------------------------------------------
"It's not where you take things from - It's where you take them to" -Jean-Luc Godard
 
Posts: 837 | Location: England | Registered: March 13, 2005Reply With QuoteEdit or Delete MessageReport This Post
VM Staff
Picture of Harpo
Posted Hide Post
The code objects go between <body> and </body> by default. Technically a <head> inside a <body> is not valid HTML so it is better to place go the code into the header (that is, between the existing <head> and </head>Wink.

To do that:
click menu: Page > Page Editor.
Go to the 'Header' tab and Press 'New Header' Then paste your code into the 'Custom Header' area.
 
Posts: 3210 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Working Mechanic
Posted Hide Post
I get it now. Thanks. I wish I had asked about this last year.
 
Posts: 25 | Registered: August 23, 2004Reply With QuoteEdit or Delete MessageReport This Post
Working Mechanic
Posted Hide Post
OK thanks.
 
Posts: 25 | Registered: August 23, 2004Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.