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

List:       quanta
Subject:    Re: [Quanta] Templates
From:       "Kidd, William IC2 \(SW\)" <KiddW () ddg65 ! navy ! mil>
Date:       2007-02-12 11:24:40
Message-ID: C0866A119253384CBFA009F248F246040B49E3 () ddg65uopex1 ! ddg65 ! navy ! mil
[Download RAW message or body]



-----Original Message-----
From: quanta-request@mail.kde.org [mailto:quanta-request@mail.kde.org] 
Sent: Monday, February 12, 2007 3:01 AM
To: quanta@mail.kde.org
Subject: Quanta Digest, Vol 47, Issue 8

Send Quanta mailing list submissions to
	quanta@mail.kde.org

To subscribe or unsubscribe via the World Wide Web, visit
	https://mail.kde.org/mailman/listinfo/quanta
or, via email, send a message with subject or body 'help' to
	quanta-request@mail.kde.org

You can reach the person managing the list at
	quanta-owner@mail.kde.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Quanta digest..."


Today's Topics:

   1. Templates (Kidd, William IC2 (SW))
   2. Re: Templates (Eric Laffoon)


----------------------------------------------------------------------

Message: 1
Date: Sun, 11 Feb 2007 04:51:33 -0800
From: "Kidd, William IC2 \(SW\)" <KiddW@ddg65.navy.mil>
Subject: [Quanta] Templates
To: <quanta@mail.kde.org>
Message-ID:
	
<C0866A119253384CBFA009F248F2460401446498@ddg65uopex1.ddg65.navy.mil>
Content-Type: text/plain;	charset="us-ascii"

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...


------------------------------

Message: 2
Date: Sun, 11 Feb 2007 09:38:47 -0800
From: Eric Laffoon <sequitur@kde.org>
Subject: Re: [Quanta] Templates
To: Quanta users list <quanta@mail.kde.org>
Message-ID: <200702110938.48166.sequitur@kde.org>
Content-Type: text/plain;  charset="iso-8859-1"

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


End of Quanta Digest, Vol 47, Issue 8
*************************************

Thank you for your reply. 

I have to agree with the dependency issue. I've created 2 sites with DW
and now I'm locked into it unless I totally redesign the sites which is
currently not an option.

I had to smile when you mentioned PHP as I've been leading towards this.
I just haven't taken the step yet. Thanks again!
_______________________________________________
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