Welcome to TalkGraphics.com
Results 1 to 10 of 23

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    Miami, FL USA
    Posts
    14

    Thumbs up php code before html

    I am a Xara Xtreme 5 advanced user and would like to insert php code in a placeholder or using any other method (from xx5 or xwd) before the <html> tag.

    I have used the <head> command in placeholders (Thanks covoxer) and use it extensively, but for a certain script I need to insert code before the <html> tag.

    It would be nice to have a list of tricks for placeholders targeted to PHP programmers like myself.

    Xara Xtreme is amazing!!

    Thanks
    Last edited by perseus; 09 November 2009 at 07:00 PM.

  2. #2
    Join Date
    Jul 2008
    Location
    Phoenix, AZ
    Posts
    267

    Default Re: php code before html

    If you are a php programmer, it shouldn't be any problem to just open up the html file with a text editor and insert the php code you need.
    Chris
    LotsMoreHosting.com

  3. #3

    Default Re: php code before html

    Chris, the problem with this approach is that each time you re edit/update your main .xar or .web file and re export, those hand edits are lost.
    Placeholders preserve inserted scripts and snippets.

  4. #4
    Join Date
    Nov 2009
    Posts
    10

    Default Re: php code before html

    Hear, hear, Perseus. I have the same probelem (and have accidentally started another thread on the subject). The guy who said a competent php programmer should be able to had edit clearly hasn't tried this with dozens of files where the intiial code is overwritten by Web Designer. IN my case (prob yours too) I need session_start() before any html code (in fact before anything). It's so annoying it's stopping me using Web Designer for some projects that I would otherwise be real happy to use it on. Come on Xara give us a fix!

  5. #5
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: php code before html

    We'll cerainly shall.
    John.

  6. #6

    Thumbs up Re: php code before html

    I suppose you export your page into .htm ?

  7. #7
    Join Date
    Nov 2009
    Posts
    10

    Default Re: php code before html

    Further to your comment "We certainly shall" when I asled for a fix to the problem of including php code at the very beginning of a file is this ability in Web Designer 6? If so I cannot find it.

  8. #8
    Join Date
    Jan 2004
    Location
    Holland Patent, NY, USA
    Posts
    605

    Default Re: php code before html

    Quote Originally Posted by covoxer View Post
    We'll cerainly shall.
    John,

    I don't know if Xara is thinking in this direction at all, but with proper enhancement, XWD would make an incredible CMS front end. A designer/web programmer could build the shell/template out of reusable script components for headers/footers/sidebars/menu's using include files. The inner content could then be updated by anyone (not requiring the techie skills), but having sufficient layout, graphic, and writing skills. Routine website maintenance could be handled by the end users, which is what CMS systems are great for.

    This would remove the limitation of XWD being used for smaller sites only and open it up to a larger market.

    Just wishing.....

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •