Pages: [1]
  Print  
Author Topic: BUG: Scaffolding breaks HTML - SOLVED  (Read 155 times)
TyZ
Gaia Novice
*
Posts: 2


« on: July 29, 2008, 09:10:39 AM »

When I scaffold an excisting project, Gaia breaks the HTML:

Instead of filling the "flashvars.branch" it put the brach in the doctype of the HTML file. So the doctype of my contactpage looks like:

<!DOCTYPindex/nav/contact"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

It does that for all the HTML files.

For the 'index.html' Gaia also removes my own changes in the javascript and the 'noflash' content.


I am using the latest (2.3.7) version on Vista with AS3
« Last Edit: August 06, 2008, 04:34:02 AM by steven » Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 1643



WWW
« Reply #1 on: August 01, 2008, 03:14:43 PM »

I'll need to see your index.html and site.xml before you scaffold.  Please post them here inside of code tags.
Logged

Steven Sacks | Gaia Author
If you like Gaia, please donate to the project!  Smiley
TyZ
Gaia Novice
*
Posts: 2


« Reply #2 on: August 05, 2008, 02:09:40 AM »

index.html:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="alternate" type="application/rss+xml" title="Sitemap" href="sitemap.xml"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>XXXXXX</title>
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/swfaddress.js"></script>
<script type="text/javascript" src="js/swffit.js"></script>
<script type="text/javascript">
var params = {
quality: "high",
scale: "noscale",
wmode: "window",
allowscriptaccess: "always",
bgcolor: "#000000"
};
var flashvars = {};
var attributes = {id:"flashcontent"};
swfobject.embedSWF("main.swf", "flashcontent", "1024", "768", "9.0.124", "expressInstall.swf", flashvars, params, attributes);
swffit("flashcontent",400,400,1024,768);
</script>
<style type="text/css">
    /*hide from ie on mac\*/
    html {
        height: 100%;
        overflow: auto;
        background: #000000;
        color: #ffffff;
    }
    /* end hide */
    body {
        height: 100%;
        margin: 0;
        padding: 0;
    }
</style>
</head>
<body>
<div id="flashcontent">
<div id="alternateContent">
            <h1>XXXXX</h1>
            <h2>Index</h2>
            <ul id="sitenav">
                <li><a href="index.html">Index</a></li>
                <li><a href="splash.html">Welkom bij XXXXX</a></li>
                <li><a href="home.html">Welkom bij XXXX</a></li>
                <li><a href="theme.html">Actie</a></li>
                <li><a href="collection.html">Collectie</a>
                <ul>
                <li><a href="collection_watches.html">Horloges</a></li>
                <li><a href="collection_jewels.html">Sieraden</a></li>
                <li><a href="collection_weddingrings.html">Trouwringen</a></li>
            </ul>
            </li>
                <li><a href="locations.html">Vestigingen</a>
                <ul>
                <li><a href="location_XXXX.html">XXXXXX</a></li>
                <li><a href="location_XXXXX.html">XXXXXX</a></li>
           </ul>
            </li>
                <li><a href="skilldiscretion.html">Vakmanschap</a></li>
                <li><a href="contact.html">Contact</a></li>
            </ul>
            <div id="copy">
            </div>
        </div>
<div id="noflash">
<p><strong>You need to <a href="http://www.adobe.com/go/getflashplayer/">upgrade your Flash Player</a>.</strong></p>
<p><strong>U heeft niet de juiste Flash Player, u kunt <a href="http://www.adobe.com/go/getflashplayer/">hier de nieuwste Flash Player downloaden.</a></strong></p>
</div>
</div>
</body>
</html>

Site.xml:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<site title="XXXXX: %PAGE%" menu="true" flow="reverse">
<page id="index" src="empty.swf" bytes="3514" seoBytes="2462" >
<page id="splash" title="Welkom bij XXXX" src="splash.swf" menu="false" seo="true" bytes="205522" seoBytes="3320" />
<page id="navigation" src="navigation.swf" depth="top" bytes="78190">
<page id="home" title="Welkom bij XXXX" src="home.swf" menu="true" seo="true" bytes="227089" seoBytes="3516" />
<page id="theme" title="Actie" src="theme.swf" menu="false" seo="true" bytes="15339" seoBytes="3293" />
<page id="collection" title="Collectie" src="collection.swf" menu="true" seo="true" bytes="299528" seoBytes="3366">
<asset id="collection_navigation" src="collection_navigation.swf" depth="top" domain="current" bytes="64090" />
<page id="collection_landing" title="Collectie" src="empty.swf" />
<page id="collection_watches" title="Horloges" src="collection_products.swf" menu="false" seo="true" bytes="169142" seoBytes="9217" flow="reverse" />
<page id="collection_jewels" title="Sieraden" src="collection_products.swf" menu="false" seo="true" bytes="294985" seoBytes="5294" flow="reverse" />
<page id="collection_weddingrings" title="Trouwringen" src="collection_products.swf" menu="false" seo="true" bytes="294985" seoBytes="5373" flow="reverse" />
</page>
<page id="locations" title="Vestigingen" src="locations.swf" depth="top" menu="true" seo="true" bytes="56541" seoBytes="3367" >
<asset id="location_navigation" src="locations_navigation.swf" depth="top" bytes="63858" domain="current" />
<page id="location_almere" title="Almere" src="location.swf" menu="false" seo="true" bytes="84125" seoBytes="3682" >
<asset id="location_image" src="location_almere.swf" depth="bottom" bytes="136180" />
</page>
<page id="location_amsterdam" title="Amsterdam" src="empty.swf" menu="false">
<page id="location_amsterdam_rijnstraat" title="Rijnstraat" src="location.swf" menu="false" seo="true" seoBytes="3766" >
<asset id="location_image" src="location_amsterdam_rijnstraat.swf" depth="bottom" bytes="16105" />
</page>
<page id="location_amsterdam_tussenmeer" title="Tussenmeer" src="location.swf" menu="false" seo="true" seoBytes="3782" >
<asset id="location_image" src="location_amsterdam_tussenmeer.swf" depth="bottom" bytes="36" />
</page>
<page id="location_amsterdam_groot_gelderlandplein" title="Groot Gelderlandplein" src="location.swf" menu="false" seo="true" seoBytes="3814" >
<asset id="location_image" src="location_amsterdam_groot_gelderlandplein.swf" depth="bottom" bytes="16105" />
</page>
</page>
<page id="location_amstelveen" title="Amstelveen" src="location.swf" menu="false" seo="true" bytes="5358" seoBytes="3855" >
<asset id="location_image" src="location_amstelveen.swf" depth="bottom" bytes="102282" />
</page>
<page id="location_alphen_ad_rijn" title="Alphen aan de Rijn" src="location.swf" menu="false" seo="true" seoBytes="3713" >
<asset id="location_image" src="location_alphen_ad_rijn.swf" depth="bottom" bytes="16095" />
</page>
<page id="location_haarlem" title="Haarlem" src="location.swf" menu="false" seo="true" bytes="5355" seoBytes="3868">
<asset id="location_image" src="location_haarlem.swf" depth="bottom" bytes="136180" />
</page>
</page>
<page id="skilldiscretion" title="Vakmanschap" src="skilldiscretion.swf" menu="true" seo="true" bytes="177808" seoBytes="3987" />
<page id="contact" title="Contact" src="contact.swf" menu="true" seo="true" bytes="172778" seoBytes="3361" />
</page>
</page>
</site>
Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 1643



WWW
« Reply #3 on: August 06, 2008, 03:22:13 AM »

I have verified both bugs exist and am working on a solution. 

Update: I've solved the bug with your custom stuff getting removed from index.html, the bug where the branch was getting removed from seo pages, and the bug where the branch was being injected in the wrong place.   
I've also fixed it so that seo pages will copy your custom code from the index page, and newly scaffolded seo pages will have their h2 tags properly populated.
« Last Edit: August 06, 2008, 04:15:40 AM by steven » Logged

Steven Sacks | Gaia Author
If you like Gaia, please donate to the project!  Smiley
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v1.0.5 beta 1© Bloc