[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    Re: [Quanta] Templates
From:       Eric Laffoon <sequitur () kde ! org>
Date:       2007-02-11 17:38:47
Message-ID: 200702110938.48166.sequitur () kde ! org
[Download RAW message or body]

On Sunday 11 February 2007 4:51 am, Kidd, William IC2 (SW) wrote:
> In Dream Weaver, if you make a change to a non-editable area on a
> template, it will update every page that uses that template. Can Quanta
> Plus do this also?
>
> Thanks in advance!
>
> Bill...
This has been covered numerous times here. I guess we do it again. The 
Dreamweaver template system is a proprietary hack to make static HTML more 
workable. We don't like proprietary hacks. It's taking an easy way to create 
a dependency on them instead of offering a better solution. The short answer 
to your question is yes, this can be emulated in Quanta without too much 
effort and some people have worked on it. The longer answer is that the 
editor part can't effectively write protect parts of a document in this 
version so a well done solution is not an option.

The right answer is there are better solutions, like the extremely popular PHP 
scripting language. Change your file name to end with PHP and add a line like 
this...
<?php include("header.html") ?>
Bingo. Non proprietary dynamic text. But aside from being able to change you 
can now also conditionally show information. You could show new visitor info 
if they didn't have a cookie saying they visited. You could show the day of 
the week or rotate a picture of the day. You could have special information 
shown to people who were logged in to a system. You can do lots more.

The DW hack can be emulated with scripting. There is one included with Quanta. 
It's also possible to use a unique stamp in a set of comments to do a find 
and replace with KFileReplace. There are a lot of ways to approach this given 
that Quanta can run a script for any file related event in a project.

I hope this helps.
-- 
Eric Laffoon - Quanta+ Team Leader 
http://quanta.kdewebdev.org
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic