1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

General Kompozer XHTML query...

Discussion in 'General' started by Helipacter, Oct 1, 2009.

  1. Helipacter

    Helipacter New Member

    Hi,

    Has anyone had any problems with XHTML and Kompozer in the past, if so what can you do about it?

    I've recently taken up Web Design as a new hobby, and I'm looking to use a template and fiddle about with it until I'm comfortable with coding. I downloaded a few designs that I liked, they're all in XHTML, and they've all reverted to HTML once I've started editing them.

    Can anyone shed any light on this for me? Has anyone had similar problems?

    Thanks
     
  2. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

  3. Helipacter

    Helipacter New Member

    Thanks for the link, I've stored it away for future usage.

    Maybe I'm missing something - I am entirely new to this - but when the XHTML template is in Kompozer it looks, well, how it's supposed to. But the second I begin to over-type the sample text (not the code, but replacing "header 1" with what I want the header to be) with my own -or, even in one case, change the title- then the design "collapses", or just takes on a basic look, rather than the design that was there previously. (This has happened with every template I've downloaded.)

    Clearly I'm doing something wrong, as I thought XHTML and HTML would both be capable of being edited in Kompozer, but for whatever reason it's not quite happening.:confused:
     
  4. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    It sounds like there is something wrong with the program.
    Kompozer is a spinoff of Nvu and development/support has been slow. You are by no means the first to have this problem.
    Rather than beat yourself up over it, my suggestion is to dump it, as it is not lending itself to your new hobby of webdesign.

    If you really want to understand coding and templates, then look at these editors, in this order;

    Alleycode -http://www.alleycode.com/index.htm
    It's clean interface, easy to use, and has enough power to make you happy without the headaches.
    Don't be fooled by it's simplistic look.
    Better to be coding than fighting software.
    The company that puts it out offers SEO packages, but won't nag you. A nice touch to garnish business.

    When you skills improve then look at AcHTML the freeware version http://software.visicommedia.com/en/productsfreeware/ it's a bit dated, I believe it's ver 3, but was originally bulit by globalscape. There is also a FTP program which again is an old version from globalscape. Both are for the advance programming.

    If you are into design and do not want to worry about code, but still have the ability to view it then look at WYSIWYG Web Builder 6.1 http://www.wysiwygwebbuilder.com/
    Pablo Software was a young student who wrote some fantastic freeware which materialized into a great editor. You can try it for free for 30 days. The price of $39.95 is cheap for all that you get.

    By the time you understand building webs you be ready to move on to paid programs just for the shear power and if you are like the rest of us will keep your favorite small starter editor for quick uses.

    I hope this helps - because tring to reproduce a quirk in the software or your machine is not an easy fix. If a solution is found, you will always encounter anouther problem.
    It's more fun to see your creation work, then to fight the software tring to make it.

    Keep us informed and don't be a stranger to the forum as there are several members who contribute and share their knowledge.
    Maybe you be one.
     
  5. Helipacter

    Helipacter New Member

    Ishkey, thanks so much for the time and the effort - I've bookmarked those links to investigate. It seems that there are a mountain of things I need to look into for this new hobby of mine (not just editors, but sitebuilders like Joomla, simplescripts and RoR, as well as SQL - and this is before learning CSS, PHP, what the difference between DTD and Strict is etc...).

    Oh, I found a work around, for those interested, to make Kompozer use XHTML, and that is:

    1) Open the template
    2) Click "tools", and click on "options",
    3) click "advanced" and change the "mark-up" option from HTML 4.0 to XHTML 1.0 and that will change your template to an XHTML one...

    Now, this doesn't help with the publishing though, as it won't publish it completely - so that's my next mini-project to look into... there must be something in Kompozer - I will update here when I find out...
     
  6. Helipacter

    Helipacter New Member

    Hi all,

    Just an update - and another query! - I've found that it's nothing to do with the publishing, really, but that the external css file isn't linking to the XHTML one.

    I've been using Filezilla to publish the template (as I'm told that Kompozer isn't the best for publishing things), but the problem is that it doesn't read the the css file that it should. My domain is joannaporter.com, and the tag I have in the XHTML file is:

    <html
    xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><title>home</title>
    <meta http-equiv="content-type"
    content="text/html; charset=utf-8"><link rel="stylesheet"
    href="css/1.css" type="text/css"
    media="screen,projection"></head>

    the css file has been published as 1.css in my public_html directory, but it's not picking it up.

    Can anyone help at all?
    Thanks
     
  7. Mimoun

    Mimoun Administrator Staff Member Director Verified Member

    Your css file has been uploaded at http://joannaporter.com/1.css and not http://joannaporter.com/css/1.css.
    So change the code to:

    Code:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <title>home</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="1.css" type="text/css" media="screen,projection">
    </head>
    Or make a folder with the name css and move the 1.css file to it.
     
  8. Helipacter

    Helipacter New Member

    Thank you soooo much, that has helped a great deal.

    I tried both ways (with the code you gave me, and then by creating a css directory), and the changing of the code changed the template completely, so I've decided to stick with keeping the css directory.

    Just a little query - is one of the above suggestions better than the other, or doesn't it matter either way?

    Honestly though, thank you so much Mimoun, that was a great help!
     
  9. Mimoun

    Mimoun Administrator Staff Member Director Verified Member

    You're welcome.
    If you like to keep things organized and have a lot of style sheets it's best to use a folder and place all CSS files in that folder.
    It doesn't matter much for the rest.