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

List:       quanta
Subject:    Re: [Quanta] HTML blocks or include files
From:       Sean Schertell <sean () datafly ! net>
Date:       2005-06-27 13:09:33
Message-ID: 6008D2DF-2737-477B-9168-0187762FCFBB () datafly ! net
[Download RAW message or body]

heh heh, I thought you were gonna say something like that.  Sorry for  
stating the perfectly obvious ;-)

To my knowledge, Quanta doesn't have that feature exactly.  But as  
you said, it's basically just a complex search and replace.  So  
what's to stop you from doing it that way?

You said you wanna do this:

Start of block
<!--INC:"myblock.inc","13.06.2005 00:06:22"-->
BLOCKTEXT
<!--/INC:"myblock.inc"-->
End of block

I'm not sure about the timestamp bit, but using regex in your search  
and replace, I think it would be fairly easy to replace the stuff  
inside your HTML comments with something else -- although probably  
not as simple or graceful as having the built-in feature as you  
described.

Sean




On Jun 27, 2005, at 9:53 PM, Tim Michelsen wrote:

> Sean Schertell schrieb:
>
>> Hi Tim,
>> Maybe I'm not understanding your question completely but is this   
>> Quanta functionality that you're asking about or just how to do it  
>> as  a coding question?
>>
> Maybe it's difficult to explain.
> I am not talking of php-includes.
> I develop plain HTML files.
> For some sites I can't use a CMS but nervertheless I have these blocks
> (I call it blocks since there would be less confusion) that I want to
> have on each page like a navigation and so on.
> The program function I am looking therefore is somehow a advanced
> find&replace for all project files where all files get searched for a
> certain pattern and replace this by the new version in the block file.
>
> Is it now clearer?
>
> Greetings,
> Tim
>
>
>> If it's the latter, you can just use PHP includes like this:
>> <?php include('header.inc'); ?>
>> If it's the former, just use Quanta to write the preceding line  
>> of  code ;-)
>> You'll need to save your file as somefilename.php and execute it  
>> on a  PHP enabled server, then it will magically include your  
>> header file.
>> Is that what you were asking or am I way off?
>> Cheers,
>> Sean
>> On Jun 27, 2005, at 9:23 PM, Tim Michelsen wrote:
>>
>>> Hi,
>>> is there a possibility to use html block or include files in quanta?
>>>
>>> Example:
>>>
>>> I have plain html files and some blocks of a site that come are   
>>> reproduced on each side like header, footer navigation.
>>>
>>> In the windows editor I currently use one can register all html   
>>> files in the project folder. Then I would change the menu block  
>>> in  a seperate file and let the program update all files which  
>>> contain  this menu block.
>>>
>>> In the html files it is mark with the following code:
>>> Start of block
>>> <!--INC:"myblock.inc","13.06.2005 00:06:22"-->
>>> BLOCKTEXT
>>> <!--/INC:"myblock.inc"-->
>>> End of block
>>>
>>> All include files are in a seperate folder which you set for  
>>> each  project.
>>>
>>> I hope I made myself clear ;-)
>>>
>>> Do we have this kind of procedure in Quanta?
>>>
>>> Thanks,
>>> Tim
>>> _______________________________________________
>>> Quanta mailing list
>>> Quanta@mail.kde.org
>>> https://mail.kde.org/mailman/listinfo/quanta
>>>
>>>
>>>
>>>
>> ::::  DataFly.Net  ::::
>> Complete Web Services
>> http://www.datafly.net
>> _______________________________________________
>> Quanta mailing list
>> Quanta@mail.kde.org
>> https://mail.kde.org/mailman/listinfo/quanta
>>
>
>
> _______________________________________________
> Quanta mailing list
> Quanta@mail.kde.org
> https://mail.kde.org/mailman/listinfo/quanta
>
>
>

::::  DataFly.Net  ::::
Complete Web Services
http://www.datafly.net

_______________________________________________
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