Re: [midgard] Question

2000-09-19 Thread Emiliano

Frank Boehme wrote:

> > In what way does that change the startup procedure? Because the error
> > message
> > doesn't look familiar to me, nor does our code process -D MIDGARD in any
> > way.
> > AFAICT anyway.
> 
> In SuSE, apache is started from within /sbin/init.d/apache. This checks
> for the presence of apache modules. For each module found, a "-D XXX"
> string is appended to  a shell variable $MODULES. This variable is then
> exported to that shell which starts apache with the config file
> /etc/httpd/httpd.conf. That is the normal config file but it load tthe
> modules depending on the -D XXX directives. For example:

I see. OK, but I still can't find the error message in question
anywhere. I'm wondering what part is generating it.

If you pass -D MIDGARD, what gets included?

Emile


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] Question

2000-09-19 Thread Frank Boehme

Emiliano wrote:

> In what way does that change the startup procedure? Because the error
> message
> doesn't look familiar to me, nor does our code process -D MIDGARD in any
> way.
> AFAICT anyway.

In SuSE, apache is started from within /sbin/init.d/apache. This checks
for the presence of apache modules. For each module found, a "-D XXX"
string is appended to  a shell variable $MODULES. This variable is then
exported to that shell which starts apache with the config file
/etc/httpd/httpd.conf. That is the normal config file but it load tthe
modules depending on the -D XXX directives. For example:

  
LoadModule php3_module
/usr/lib/apache/libphp3.so   


and further down:

  
AddModule 
mod_php3.c   
AddModule
mod_midgard.c 


This works for midgard without problems, provided the scripts are
modified properly.


Frank

--
Dr Frank Boehme  | Email: [EMAIL PROTECTED]
National University of Ireland, Cork | phone: +353-21-903163
Dept of Computer Science |   fax: +353-21-903113
Cork, Ireland|

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] Question

2000-09-19 Thread Emiliano

Ralf Eisinger wrote:
> 
> Hi,
> 
> On 19-Sep-00 Emiliano wrote:
> > Wolfgang Reh wrote:
> >
> >> I have got a problem with running midgard.
> >> If I start the Apache Server with the -D MIDGARD option I get this
> >> error message:
> >
> > Why would you start apache like this?
> I think Wolfgang has a SuSe distribution.
> 
> SuSE shipped there startup scripts under /sbin/init.d/apache with some defines,
> to launch different modules.

In what way does that change the startup procedure? Because the error
message
doesn't look familiar to me, nor does our code process -D MIDGARD in any
way.
AFAICT anyway.

Emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] Question

2000-09-19 Thread Ralf Eisinger

Hi,

On 19-Sep-00 Emiliano wrote:
> Wolfgang Reh wrote:
> 
>> I have got a problem with running midgard.
>> If I start the Apache Server with the -D MIDGARD option I get this
>> error message:
> 
> Why would you start apache like this?
I think Wolfgang has a SuSe distribution.

SuSE shipped there startup scripts under /sbin/init.d/apache with some defines,
to launch different modules.

best regards


Ralf Eisinger
---

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] Question

2000-09-19 Thread Emiliano

Wolfgang Reh wrote:

> I have got a problem with running midgard.
> If I start the Apache Server with the -D MIDGARD option I get this
> error message:

Why would you start apache like this?

Emile


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] Question regarding sitegroups and the adminsite.

2000-09-12 Thread Emiliano

Tarjei Huse wrote:
> 
> I've been working with sitegroups the last few days, and I'm wondering about
> a few things.
> 
> 1. What is the difference between root(*) , admin(!) and user(+) access to a
> domain?

Root gets you full admin rights one every sitegroup, including SG0

Admin gets you full admin rights on the particular sitegroup. No access
checking is done within that sitegroup. You cannot access (read nor
write)
things outside your sitegroup.

User access makes the person subject to access control (write access
only,
read access is not controlled in the current release) within the
sitegroup.
You cannot access (read nor write) things outside your sitegroup.

> 2. I'm not toatly inn on what's happening on with the admin site, but I'd
> like to propose that we develop some ekstra admin functions in it, maybe
> someone allready has done this, then it should not be to troublesome:
> - We should include an interface for copying and moving articles from one
> topic to another. Also a simmilar function for pages and elements. I've
> attached the code for a form I've made for moving articles between topics.
> It's not too good, but a start.

I think the new admin site (now under development) will have this.

> - How about making a sitegroup interface for the admin site? Only viewable
> by root and sg admins.

The viewable restriction will have to be coded into the admin site
itself.
Alexander has the inside trak on the new admin site (Asgard) but I do
believe
sitegroup administration will be in it.

Emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




RE: [midgard] Question regarding sitegroups and the adminsite.

2000-09-12 Thread David Guerizec

> 
> 2. I'm not toatly inn on what's happening on with the admin site, but I'd
> like to propose that we develop some ekstra admin functions in it, maybe
> someone allready has done this, then it should not be to troublesome:

I'm currently working on it with Alexander, so any input is welcome.

> - We should include an interface for copying and moving articles from one
> topic to another. Also a simmilar function for pages and elements. I've
> attached the code for a form I've made for moving articles between topics.
> It's not too good, but a start.

These features will be included in the new admin site. They will be
applicable to any tree-structured object in Midgard.

> - How about making a sitegroup interface for the admin site? Only viewable
> by root and sg admins.

This will be included too.

> Tarjei

-- 
Best Regards,

David Guerizec - Open Source Developer @ AurorA R&D

The Boulder Pledge : "Under no circumstances will I ever purchase anything
offered to me as the result of an unsolicited e-mail message. Nor will I
forward chain letters, petitions, mass mailings, or virus warnings to
large numbers of others. This is my contribution to the survival of the
online community."


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




RE: [midgard] Question regarding sitegroups and the adminsite.

2000-09-12 Thread Tarjei Huse

I've been working with sitegroups the last few days, and I'm wondering about
a few things.

1. What is the difference between root(*) , admin(!) and user(+) access to a
domain?

2. I'm not toatly inn on what's happening on with the admin site, but I'd
like to propose that we develop some ekstra admin functions in it, maybe
someone allready has done this, then it should not be to troublesome:
- We should include an interface for copying and moving articles from one
topic to another. Also a simmilar function for pages and elements. I've
attached the code for a form I've made for moving articles between topics.
It's not too good, but a start.
- How about making a sitegroup interface for the admin site? Only viewable
by root and sg admins.

BTW: the framed admin is working just wonderfull! I realy like it.

Tarjei


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] Question

2000-09-07 Thread Emiliano

Frederic Carlus wrote:

> X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300

Can you please disable HTML posting to this mailinglist? Messages
show up empty for a lot of people.

> Do have you the french version of your documentation ?

We don't, but there are a number of native French speakers on our
list. And we would welcome a translation of course.

Emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] Question about PHP

2000-07-18 Thread Emiliano

> 
> I have just downloaded midgard, and while reading the
> installationinstuctions I wonder of the installation of PHP4 with apache is
> enough or that I must install the PHP3 module also

Midgard is a superset of PHP3. We're working on PHP4. In the meantime
you can run them side by side.

Emile


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] question about mgd_create_file

2000-05-26 Thread Emiliano


On Fri, 26 May 2000, T. Wijnen wrote:

> Emiliano wrote:
> 
> mgd_create_file($article, $mimetype, $location, $size, $md5sum)
> 
> Ehm, in the docs the same function has 6 parameters, the one you
> describe has 5.

You're right, that should have been

mgd_create_file($article, $mimetype, $name, $location, $size, $md5sum)

Emile


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] question about mgd_create_file

2000-05-26 Thread T. Wijnen

Emiliano wrote:

mgd_create_file($article, $mimetype, $location, $size, $md5sum)

Ehm, in the docs the same function has 6 parameters, the one you
describe has 5.

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] question about mgd_create_file

2000-05-26 Thread Emiliano


On Fri, 26 May 2000, T. Wijnen wrote:

> Hi, I'm trying to make a simple upload form in html that uploads a file
> as a file attachment to an article. But I can't seem to get it to work.
> The documentation about mgd_create_file is kinda short.
> Can someone help me with a coded example?

mgd_create_file mainly creates an index record to an existing file. Move
the uploaded file to its destination, then do

mgd_create_file($article, $mimetype, $location, $size, $md5sum)

You'll have to deduce the mimetype from the file extension or use the type
that some browsers deliver with the upload. Size is available in a
upload-related PHP variable (I forgot which), and there's a php function
to calculate the md5 sum if you want it.

Alternatively, the 1.4b3 contains file attachment methods that allow
attachment of binaries to any record type. There's a description at
http://www.midgard-project.org/~emiliano/midgard-1.4b3-blobs.tar.gz

Emile



--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




RE: [midgard] question

2000-05-23 Thread Nick Rohrlach


> Midgard doesn't run on Windows. Although you can administrate Midgard from
> any computer that runs a browser. I believe you can view an example of the
> Midgard administration site at http://www.marlowes.com. If that's the
> wrong location you can search midgard-project.org for the example site.

To make life easier - http://midgard-demo.marlowes.com

Nick


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] question

2000-05-23 Thread parker

Hi,

On Tue, 23 May 2000, Verbeek wrote:

> Hello,
> 
> I'm developping a portal-like website. I want to use a content management
> system like application for this.

Midgard can do this.

> Is it possible to run midgart on a Win 98 machine and then ftp the pages to
> a unix server?

Midgard doesn't run on Windows. Although you can administrate Midgard from
any computer that runs a browser. I believe you can view an example of the
Midgard administration site at http://www.marlowes.com. If that's the
wrong location you can search midgard-project.org for the example site. 


> I it isn't does anyone have suggestions for an application? I can't find
> anything that lets me work on Win 98 and host on unix.

You'll have to install Midgard on a Unix, BSD, OS-X, or Linux server.

Ron

> Thank
> 
> Bart Verbeek
> 


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] question

2000-04-22 Thread Philipp Rotmann

Am Fri, 21 Apr 2000 11:03:12 -0400 hast Du zum Thema
"[midgard] question" geschrieben:

> we are currently using midgard. it was installed by a previous employee.
> i am trying to determine what version it is. would you please tell me
> how i would locate that info.

What about /server-status?  If you had this apache feature
enabled, you could simply go to the URL
www.yourserver.com/server-status and have a look at your
Apache version and the version of all your additional
modules, such as Midgard.

Might be simpler than telnetting to port 80 or HUPing the
server.

phr

-- 
SCHÜLER-PLANSPIEL UNITED NATIONS (SPUN)  21.-25.6.2000, Bonn
Die erste deutschsprachige Simulation der Vereinten Nationen
http://www.spun.de/--Webredaktion: [EMAIL PROTECTED]

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] question

2000-04-21 Thread Henri Bergius

On 21 Apr, Janet Pipkin wrote:
> we are currently using midgard. it was installed by a previous employee.
> i am trying to determine what version it is. would you please tell me
> how i would locate that info.

This information is contained in the Server string
that is transmitted alongside every HTTP request.

The easiest way to find it out would be to establish
a telnet connection to the server (port 80) and run
a HEAD command (HEAD / HTTP/1.0 [enter] [enter]). This
should produce something like the following:


$ telnet www.stonesoft.com 80
Trying 192.89.38.169...
Connected to www.stonesoft.com.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.1 200 OK
Date: Sat, 22 Apr 2000 05:49:55 GMT
Server: Apache/1.3.12 (Unix) mod_ssl/2.6.2 OpenSSL/0.9.5 Midgard/1.4-beta3 
PHP/3.0.15+Midgard/1.4-beta3
WWW-Authenticate: Basic realm="Midgard"
X-Powered-By: PHP/3.0.15
Keep-Alive: timeout=15, max=100
Content-Type: text/html
Connection: close

Connection closed by foreign host.


The information is also available as the variable
$SERVER_SOFTWARE inside Midgard pages.

/Bergie

-- 
-- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] --
   http://www.iki.fi/Henri.Bergius


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




Re: [midgard] question

2000-04-21 Thread Armand A. Verstappen

Janet Pipkin <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> we are currently using midgard. it was installed by a previous employee.
> i am trying to determine what version it is. would you please tell me
> how i would locate that info.
>
locate the apache errorlog . It could very well be in
/usr/local/apache/logs/errorlog . Put a tail on that file.

tail -f /usr/local/apache/logs/errorlog.

Kill and restart apache from a different window, and watch what happens in
the other. The restart message will tell you what version of Midgard is
running.

b.t.w. I hope you are not suffering the 'They left me with this thing and I
don't know how to deal with it' frustration. ( I mean, you mentioned the
previous employee). If so, feel free to cry for help on this list, as there
are many people out here ready to help you further.

Armand.



--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




RE: [midgard] Question to midgard-functions

2000-03-09 Thread Anatol Mayr / HEXAGON

Oh, oh, oh :-) thanks a lot - now it works fine!

Greetings to all of the midgardians,

Anatol

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Emiliano Heyns
Sent: Thursday, March 09, 2000 2:59 PM
To: [EMAIL PROTECTED]
Subject: Re: [midgard] Question to midgard-functions


Anatol Mayr / HEXAGON wrote:
>
> Thanks, i've tried to access the articles of my topics in the
> same way, but the result is a little bit strange, because no articles
> are shown.
>
> $topic = mgd_list_topics(18);
> if ($topic) {
>   while ($topic->fetch()) { ?>
> &(topic.description:h);
> id);
> if ($article)
>   while ($article->fetch) { ?>

  ^
while ($article->fetch()) { ?>

> 
> &(article.title); 
>   }
>   }
> } ?>
>

Emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question to midgard-functions

2000-03-09 Thread Emiliano Heyns

Anatol Mayr / HEXAGON wrote:
> 
> Thanks, i've tried to access the articles of my topics in the
> same way, but the result is a little bit strange, because no articles
> are shown.
>
> $topic = mgd_list_topics(18);
> if ($topic) {
>   while ($topic->fetch()) { ?>
> &(topic.description:h);
> id);
> if ($article)
>   while ($article->fetch) { ?>

  ^
while ($article->fetch()) { ?>

> 
> &(article.title); 
>   }
>   }
> } ?>
> 

Emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



RE: [midgard] Question to midgard-functions

2000-03-09 Thread Anatol Mayr / HEXAGON

Thanks, i've tried to access the articles of my topics in the
same way, but the result is a little bit strange, because no articles
are shown.

My site-structure is the following:

topic(18)
 -- subtopic(27)
 article(28)

 -- subtopic(28)
 No article here at the moment

 -- subtopic(29)
 article(26)
 article(24)
 article(25)
 article(27)

Here's the script:

$topic = mgd_list_topics(18);
if ($topic) {
  while ($topic->fetch()) { ?>
&(topic.description:h);
id);
if ($article)
  while ($article->fetch) { ?>

&(article.title); 
  


So, I thought the script does the following:
Go to topic 18, have a look, if there are subtopics.
If yes, show the description of the subtopic. ('til this
point everything works fine). Have a look if there are
articles in this subtopic. If yes, show the article-id.
(but this doesn't work.It seems that the script never runs in the
"while ($article->fetch)".



Anatol Mayr
HEXAGON EDV-Dienstleistungen
Weissenwolffstra?e 14
A-4221 Steyregg, Austria
Tel.: (+43) 732 / 640 530
Fax:  (+43) 732 / 640 530 - 20
Email: 



--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question to midgard-functions

2000-03-09 Thread Henri Bergius

On  9 Mar, Anatol Mayr / HEXAGON wrote:

> I want to show the topics in a structure like this:
> 
>   --- topic 1
>   --- article 1 of topic 1
>   --- article 2 of topic 1
>   --- article 3 of topic 1
>   --- topic 2
>   --- article 1 of topic 2
>   --- article 2 of topic 2
>   --- article 3 of topic 2
>   ..

You could do something like this:

fetch()) { ?>
&(topic.name);

id,
'alpha');
if ($art) {
  while ($art->fetch) { ?>
&(art.title);
  

> Anatol Mayr

/Bergie

-- 
-- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] --
   http://www.iki.fi/Henri.Bergius


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



RE: [midgard] Question regarding to example-script in the tutorial

2000-03-02 Thread Ron Parker

> 
> Actually, this explanation ain't half bad. Anyone care to work on
> readability and run on sentences and put it in the manual?
> 
> Emile

I will, I will! *grin* I think that material is enroute to 1.4 Building
and Managing a Site. Or was that some of the other excellent questions and
responses that I've dug out of the mailing list...I'll have to run it by
my editors at E'Roilly (hint, I used to be in charge of the "Big
Guy's" date tree) to see if there's room for this.

If anyone cares to continue pointing out these choice entries for
Building and Managing a Site, I promise to get you backstage passes to a
Super Star, to be named later, rock-n-roll show.

I doubt it's a problem if more than one of us uses the same material to
populate documents.

Parker


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question regarding to example-script in the tutorial

2000-03-02 Thread Carilda Thomas

"Emiliano [EMAIL PROTECTED]" wrote:

>
>
> Actually, this explanation ain't half bad. Anyone care to work on
> readability and run on sentences and put it in the manual?

Explanation is great -- may I suggest a flowcharting program which creates a
graphic that can be placed up there?

The only things you omitted which might confused some people is a reference to
the other elements in midgard-root.php3, viz., code-init and  code-global.

It's not intuitive that midgard will be reading the midgard-root file, find a
directive for code-init, and then look at the page definition to see if there
is a replacement code-init.

Also, code-global is where page-wide includes would go -- function libs, stuff
like that.

Any header(xxx) directive would have to go in one of these (or in root, before
the code).

My little adds.

meow.

>
>
> Emile
>
> --
> This is The Midgard Project's mailing list. For more information,
> please visit the project's web site at http://www.midgard-project.org
>
> To unsubscribe the list, send an empty email message to address
> [EMAIL PROTECTED]


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



RE: [midgard] Question regarding to example-script in the tutorial

2000-03-02 Thread Emiliano [EMAIL PROTECTED]

On Thu, 2 Mar 2000, anatol wrote:

> Thanks for the info - answers a pretty fast in this mailing list :-)
> 
> I'm trying to understand how the HTML-page-building-process works.
> Is there any visual description (perhaps a picture?) how midgard
> works from start of the page-building until end. 

I'm not much of an artist but if the following explanation makes any
sense to you by all means have a stab at it.

"In the beginning there was the HTTP request..."

The HTTP request carries 3 important pieces of information:
- The hostname
- The portnumber
- The URI within the host

For Midgard to decide if an HTTP request matches a host under its care,
the hostname must match exactly (case insensitive I believe), the
port number must match or the port number in the database must be
set to 0 (wildcard), the prefix defined in the database must match
the start of the URI, and the host must be marked online.

Even if you send no portnumber the browser will send 80 for you
by default. When multiple hosts exist with the same name Midgard
will pick the one with the most specific portnumber (in other words
the non-0 one) and the longest prefix match (which may be of zero
length).

Having picked a host, midgard will walk the rest of the URI (with the
leading prefix, if any, stripped off) to find the specific page
record requested.

Each page specifies an associated style, either explicitly or simply
indicating inheritance from its parent.

So what we have now is a page and a style.

Midgard starts processing the midgard-root.php3 which will include a
element named ROOT. The style must define ROOT (either explicitly
or inherited) or nothing will happen. The ROOT may (usually will)
itself reference other elements, which in turn, etc. Each element
referenced is replaced with the contents of said element until
all element references have been expanded.

Page elements take precedence over inherited page elements of the same name,
inherited page elements over style elements, style elements over
inherited style elements. Elements that are referenced but not
present are replaced with zero content.

We have at this point a fully decorated page with no actual content.
That's no good.

There are two 'magic' element names, <[title]> and <[content]> that
will automatically be replaced with the title and content of the current
page, so if you store content there it will be placed in the makeup
built by the style.

Another way to insert content is to actively generate this. This is
most often, although by no means necesarily exclusively, used with
so-called 'active pages'. Active pages and static pages are both active
in the sense that they're PHP scripts, but while a static page will
only be activated for requests that target its URI directly, active
pages service anything that targets its URI and beyond.  Everything
beyond the page URI is split on the slashes and passed to the script in
the argv array, so if /article is an active page than the script would
be passed the array ('about', 'you', 'and', 'me') when servicing
/article/about/you/and/me.html.

The script can use this information to gather information from the
topic trees or even external data; everything the script in the
page content prints out will turn up where <[content]> was referenced.

Actually, this explanation ain't half bad. Anyone care to work on
readability and run on sentences and put it in the manual?

Emile


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



RE: [midgard] Question regarding to example-script in the tutorial

2000-03-02 Thread anatol

Thanks for the info - answers a pretty fast in this mailing list :-)

I'm trying to understand how the HTML-page-building-process works.
Is there any visual description (perhaps a picture?) how midgard
works from start of the page-building until end. 

Anatol


-Original Message-
From: Emiliano [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 02, 2000 1:24 PM
To: [EMAIL PROTECTED]
Subject: Re: [midgard] Question regarding to example-script in the
tutorial


On Thu, 2 Mar 2000, anatol wrote:

> I've found a good scripting-example in the tutorial, which
> demonstrates a lot of midgard's possibilites, 
> and I'm trying to understand how it works:
> 
> A question appears:
> What does: "$topic = $context[topic];"

> In an earlier part of the page build (the code-init element if I
> recollecty) the $context hash is filled with global variables used
> throughout the rest of the page build. I've chosen to store them in a
> hash to avid namespace clutter, I copy it back to a variable because if
> you're going to use it much it'll type & read easier and I presume
> there will be a small runtime saving when avoiding the hash lookup
> every time.

emile


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]




--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question regarding to example-script in the tutorial

2000-03-02 Thread Emiliano [EMAIL PROTECTED]

On Thu, 2 Mar 2000, anatol wrote:

> I've found a good scripting-example in the tutorial, which
> demonstrates a lot of midgard's possibilites, 
> and I'm trying to understand how it works:
> 
> A question appears:
> What does: "$topic = $context[topic];"

> In an earlier part of the page build (the code-init element if I
> recollecty) the $context hash is filled with global variables used
> throughout the rest of the page build. I've chosen to store them in a
> hash to avid namespace clutter, I copy it back to a variable because if
> you're going to use it much it'll type & read easier and I presume
> there will be a small runtime saving when avoiding the hash lookup
> every time.

emile


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-02-16 Thread Emiliano

On Mon, 14 Feb 2000, Dariusz Debowczyk wrote:

> is there any way to smoothly transfer my mods to new admin pages? I guess it
> isn't. So what can I do? Rewrite all changes every time new version of
> Midgard appears?

The Midgard admin site is just a midgard application, not an integral
component of the midgard core. So yes, if you want to have functionity
of the new admin site you'll have to merge them by hand.

> Or maybe join project and include my modifications to
> standard Midgard admin site?

If the modifications are of general use, good idea.

> I need to restrict access to objects that are
> not owned by current user - not even show them. I guess 2.0 will solve this
> but what about other changes?

You mean what other changes 2.0 will bring? As little as possible,
preferably none. Additions there will be plenty of.

> I'm working on table editing and administration tool to my site (I'm sick of
> telling users how to put all this funny  stuff into their content).

Another option is to use PUT uploads. The HTML editors in Netscape and
Explorer know how to deal with this.

> I'm not very happy when I imagine all this copy/paste (and not only) work
> when 2.0 will come.

We'll make every effort that your custom admin site will just work
in 2.0

> I'm also creating a set of shop-building functions and
> thinking about built-in personalization of admin site to my users. I thought
> about rebuilding Midgard to dynamically serve appropriate function modules
> and GUI (layout and design) basing _strictly on user prefs_ - administrative
> tools for admin, layout building tools for designer, editing tools for
> editor, etc. What about this?

Seems like a plan. Make it so[0].

Emile

[0] I allways wanted to say this.


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-02-06 Thread Emiliano

Russell Miller wrote:

> [configs]

You have no MidgardDatabase directives. You may have omitted them since
I asked you to remove passwords from the files sent, but if not, that's
one of your problems. The other:

> HostDb  Select_priv Insert_priv Update_priv Delete_priv
> Create_priv Drop_priv   Grant_priv  References_priv Index_priv  
>Alter_priv
> rjmconsulting.com:80midgard N   N   N   N   N   N   N
>   N   N   N
> rjmconsulting.com   midgard N   N   N   N   N   N   N
>   N   N   N

This seems to be a dump of the mysql host table. This is wrong. You must
set
up a separate database for Midgard and load the contents of midgard.sql
from
the data package into it.

emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-02-06 Thread Emiliano

Russell Miller wrote:

> [Sat Feb  5 00:34:15 2000] [notice] [client 209.86.220.4] Midgard: host record for 
>www.duskglow.com:80 not found
> (I'm actually more concerned about rjmconsulting.com:80, this is just an
> example).
> 
> Now I'm assuming this is a mysql problem, but I am not sure.  If it is...  I've
> added the appropriate host records in the database but it still doesn't work.

I'd have to see the relevant parts of your httpd.conf (passwords removed
of
course) and a dump of the host table.

emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-02-05 Thread Derek Beattie

You might want to check out the Installation Overview.  Did you set up the
virtual hosts in httpd.conf?

http://www.midgard-project.org/article/1129.html

--- Russell Miller <[EMAIL PROTECTED]> wrote:
> Hello, I am not on the list, but your web page said to direct any questions
> here.
> 
> I'm in the process of attempting to set up a mysql database driven web
> application on unix and apache.  I've followed your setup instructions
> on your web page, but it still calls up the default apache page when I try
> to.  In the logs, it says:
> 
> [Sat Feb  5 00:34:15 2000] [notice] [client 209.86.220.4] Midgard: host
> record for www.duskglow.com:80 not found 
> (I'm actually more concerned about rjmconsulting.com:80, this is just an
> example).
> 
> Now I'm assuming this is a mysql problem, but I am not sure.  If it is... 
> I've
> added the appropriate host records in the database but it still doesn't work.
> 
> I can provide dumps of the appropriate database records if necessary.
> 
> Any ideas?
> 
> Once I get this running, I'll probably have other questions... I just want
> to play around with it and see what I can do.  I'm relatively inexperienced
> with database-backend web apps, so be gentle please :)
> 
> Thanks a bunch.
> 
> --Russell
> 
> -- 
> Russell miller - [EMAIL PROTECTED] - [EMAIL PROTECTED]
> ---
> The following sites are my own and do not necessarily represent
> the views of any of my clients.
> 
> http://www.duskglow.com
> http://www.singlegeek.com
> http://www.whathaveyoudone.org
> 
> 

> ATTACHMENT part 2 application/pgp-signature 
> --
> This is The Midgard Project's mailing list. For more information,
> please visit the project's web site at http://www.midgard-project.org
> 
> To unsubscribe the list, send an empty email message to address
> [EMAIL PROTECTED]

=
.  \\|//
   (O-O)
*--oOO--(_)--OOo-*
*   Sender: Derek Beattie*
*   Personal: [EMAIL PROTECTED]*
*   Business: [EMAIL PROTECTED]*
**
__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] question about midgards

2000-02-02 Thread Emile Heyns

> Emile Heyns explored this area and has several solutions. They include
> support for Ht://Dig and UDMSearch engines at least. Please surf
> archives of this mailing list at the

The ht://dig solution currently indexes the site as presented through
apache; it is not (yet) an internal search.

Udmsearch supports database searching (and has i18n features). The
integration of the client-side into midgard (to support internal
searching by PHP code) is one of my many 2.0 projects. Udmsearch
is usuable as-is, though, as it can index the Midgard database directly
and comes with several front-ends that can be executed from PHP
code.

Emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] question about midgards

2000-02-02 Thread Alexander Bokovoy

Gordon Tin wrote:
> 
> Dear sir
> 
> I have the following questions
> 
> 1. Can i perform full text search by using in midgard? (All words in the
> articles are keyword.).
Emile Heyns explored this area and has several solutions. They include
support for Ht://Dig and UDMSearch engines at least. Please surf
archives of this mailing list at the
http://www.progressive-comp.com/Lists/?l=midgard 

 
> 2.Does midgard support chinese characters (2bit big5/GB) ?
No, at least for the moment. 

-- 
Sincerely yours, 
Alexander Bokovoy 


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-01-27 Thread Alexander Bokovoy

Hello Derek,

you wrote:
> Hi all, I've got the following code from the example site...
> url) { ?>
> Check out:&(article.url); 
> 
> 
>   More news
> it works except the url tries to send me to:
> http://server.com/news/http://other.site.com
> when the desired resule would be:
> http://other.site.com
This url is not intended to be clickable, it was provided as example
of &(variable:modifier); syntax. However, to avoid misunderstanding,
it is corrected in Midgard 1.2.6.


Best regards,
 Alexandermailto:[EMAIL PROTECTED]



--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-01-27 Thread Emile Heyns

Derek Beattie schreef:
> 
> ok, I think I found the problem.  What a bone head.  In the content admin I had
> www.yahoo.com instead of http://www.yahoo.com in the article url. If I don't
> put the http:// it must do something else?

Well, to be pedantic: www.yahoo.com is not an URL. Netscape will do the
Wrong^H^H^H^H^Hright Thing when such an URL lookalike is typed into the
location field, but in this case the reaction is correct: netscape
treats
it as a relative URL to the page that has the HREF.

You could try to simulate the behaviour by putting in code in the
displaying part to display the url as is if it starts with
://,
prepend ftp:// if the "url" starts with "ftp.", and prepend http://
otherwise.
Or alter the admin interface to not accept URLs that do not have a
schema:// in front.

emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-01-27 Thread Derek Beattie

ok, I think I found the problem.  What a bone head.  In the content admin I had
www.yahoo.com instead of http://www.yahoo.com in the article url. If I don't
put the http:// it must do something else?

--- Emile Heyns <[EMAIL PROTECTED]> wrote:
> Derek Beattie schreef:
> > 
> > I've tried several things but I'm still not sure how to get the desired
> result.
> 
> Doesn't
> 
> url) { ?>
> Check out:&(article.url);
> 
> 
> More news
> 
> work?
> 
> emile
> 
> --
> This is The Midgard Project's mailing list. For more information,
> please visit the project's web site at http://www.midgard-project.org
> 
> To unsubscribe the list, send an empty email message to address
> [EMAIL PROTECTED]
> 
> 

=
.  \\|//
   (O-O)
*--oOO--(_)--OOo-*
*   Sender: Derek Beattie*
*   Personal: [EMAIL PROTECTED]*
*   Business: [EMAIL PROTECTED]*
**
__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-01-27 Thread Emile Heyns

Derek Beattie schreef:
> 
> Actually to fix the problem temp. I just hard coded the url in and that works
> fine.  I basically took the code for news from the midgard example site.  Go
> add an article to the sample page and put a url in it and see how it works for
> you.

You're right but the VMUC site has the same problem I described earlier:
it uses &(article.url);. If you remove
the :u the VMUC news page works normally too.

emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-01-27 Thread Emile Heyns

Derek Beattie schreef:
> 
> It works in the sense that it displays the correct url but when I pass the

OK the display would work.

> mouse over the link, the url that shows up in the browsers status bar doesn't
> work becuase it has the http://server.com in front of the url.  So lets say the
> url I put in the content is http://www.yahoo.com and I use the code we are
> talking about.  When I click on the link it tries to send me to
> http://server.com/news/http://www.yahoo.com - Maybe I need to use substr or
> something.

In the admin interface, what is the exact value of the URL field, and
when you
view source on the resultin page, what exactly does the code look like
that
displays the link?

emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-01-27 Thread Derek Beattie

Actually to fix the problem temp. I just hard coded the url in and that works
fine.  I basically took the code for news from the midgard example site.  Go
add an article to the sample page and put a url in it and see how it works for
you.

--- David Guerizec <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Derek Beattie wrote:
> > It works in the sense that it displays the correct url but when I pass the
> > mouse over the link, the url that shows up in the browsers status bar
> doesn't
> > work becuase it has the http://server.com in front of the url.  So lets
> say the
> > url I put in the content is http://www.yahoo.com and I use the code we are
> > talking about.
> > > url) { ?>
> > > Check out:&(article.url);
> > > 
> > > 
> > > More news
> > >
> >  When I click on the link it tries to send me to
> > http://server.com/news/http://www.yahoo.com - Maybe I need to use substr
> or
> > something.
> >
> 
> Did you try to put a litteral url instead of &(article.url); and see what
> you get ?
> What do you get in the page source ?
> Maybe it is not a Midgard bug, but a browser bug...
> 
> 
> Regards,
> 
> [EMAIL PROTECTED]
> 
> 
> --
> This is The Midgard Project's mailing list. For more information,
> please visit the project's web site at http://www.midgard-project.org
> 
> To unsubscribe the list, send an empty email message to address
> [EMAIL PROTECTED]
> 
> 

=
.  \\|//
   (O-O)
*--oOO--(_)--OOo-*
*   Sender: Derek Beattie*
*   Personal: [EMAIL PROTECTED]*
*   Business: [EMAIL PROTECTED]*
**
__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-01-27 Thread David Guerizec

Hi,

Derek Beattie wrote:
> It works in the sense that it displays the correct url but when I pass the
> mouse over the link, the url that shows up in the browsers status bar
doesn't
> work becuase it has the http://server.com in front of the url.  So lets
say the
> url I put in the content is http://www.yahoo.com and I use the code we are
> talking about.
> > url) { ?>
> > Check out:&(article.url);
> > 
> > 
> > More news
> >
>  When I click on the link it tries to send me to
> http://server.com/news/http://www.yahoo.com - Maybe I need to use substr
or
> something.
>

Did you try to put a litteral url instead of &(article.url); and see what
you get ?
What do you get in the page source ?
Maybe it is not a Midgard bug, but a browser bug...


Regards,

[EMAIL PROTECTED]


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-01-27 Thread Derek Beattie

It works in the sense that it displays the correct url but when I pass the
mouse over the link, the url that shows up in the browsers status bar doesn't
work becuase it has the http://server.com in front of the url.  So lets say the
url I put in the content is http://www.yahoo.com and I use the code we are
talking about.  When I click on the link it tries to send me to
http://server.com/news/http://www.yahoo.com - Maybe I need to use substr or
something.

--- Emile Heyns <[EMAIL PROTECTED]> wrote:
> Derek Beattie schreef:
> > 
> > I've tried several things but I'm still not sure how to get the desired
> result.
> 
> Doesn't
> 
> url) { ?>
> Check out:&(article.url);
> 
> 
> More news
> 
> work?
> 
> emile
> 
> --
> This is The Midgard Project's mailing list. For more information,
> please visit the project's web site at http://www.midgard-project.org
> 
> To unsubscribe the list, send an empty email message to address
> [EMAIL PROTECTED]
> 
> 

=
.  \\|//
   (O-O)
*--oOO--(_)--OOo-*
*   Sender: Derek Beattie*
*   Personal: [EMAIL PROTECTED]*
*   Business: [EMAIL PROTECTED]*
**
__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-01-27 Thread Emile Heyns

Derek Beattie schreef:
> 
> I've tried several things but I'm still not sure how to get the desired result.

Doesn't

url) { ?>
Check out:&(article.url);


More news

work?

emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-01-27 Thread Derek Beattie

I've tried several things but I'm still not sure how to get the desired result.

--- Emiliano Heyns <[EMAIL PROTECTED]> wrote:
> Derek Beattie wrote:
> 
> > url) { ?>
> > Check out:&(article.url); 
> > 
> > 
> >   More news
> > 
> > it works except the url tries to send me to:
> > http://server.com/news/http://other.site.com
> > when the desired resule would be:
> > http://other.site.com
> 
> It's the :u modifier. It escapes the :, /, and . to their %code
> equivalents so
> the link will probably show up as
> http://other.site.com.
> Best only to use
> URL escaping for parameter lists.
> 
> emile
> 
> --
> This is The Midgard Project's mailing list. For more information,
> please visit the project's web site at http://www.midgard-project.org
> 
> To unsubscribe the list, send an empty email message to address
> [EMAIL PROTECTED]
> 
> 

=
.  \\|//
   (O-O)
*--oOO--(_)--OOo-*
*   Sender: Derek Beattie*
*   Personal: [EMAIL PROTECTED]*
*   Business: [EMAIL PROTECTED]*
**
__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



Re: [midgard] Question

2000-01-27 Thread Emiliano Heyns

Derek Beattie wrote:

> url) { ?>
> Check out:&(article.url); 
> 
> 
>   More news
> 
> it works except the url tries to send me to:
> http://server.com/news/http://other.site.com
> when the desired resule would be:
> http://other.site.com

It's the :u modifier. It escapes the :, /, and . to their %code
equivalents so
the link will probably show up as
http://other.site.com.
Best only to use
URL escaping for parameter lists.

emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]



[midgard] Document parsing, was Re: Midgard Question: creating links

2000-01-12 Thread Henri Bergius

On 10 Jan, Alexander Bokovoy wrote:
> It seems that it should be done at low level of Midgard, in midgard-lib.
> Then we will have open system which operates by parsers just like PHP
> operates by external modules. The main difference will be in the
> language where parser's functions is accessible - it will be C source of
> parser. Thus, we has no headache with syntaxical and lexical analyzers.
> Instead, at the high level (for example, at PHP script) we will operate
> with queues of parsers but not with their functions. You may see parser
> at this level like single function "black box" that accepts information
> and transforms it into another format. Last parser in each queue thus
> will be one that outputs Net-wide format (either HTML, XML, etc, or, for
> example, PDF).

This is a very good idea. Also, it has something in 
common with the SusiSGML system Jukka and I worked 
on before Midgard.

SusiSGML was a hack on top of Apache that handled 
translating SGML files (of a specific DTD) into HTML 
(and applying visual outlook into them). The actual 
SGML files were stored  in the htdocs directory. 
When Apache got a query for a particular URI, it 
would then go to that path in the filesystem, look 
for the .html and .sgml file there, and check whether 
the SGML file was newer. If it was, then it Apache 
would translate it to HTML and save it as a .html 
file.

The initial translation was a bit slow, but after
that Apache would just use the HTML document, and
so normal browsing of the site wasn't affected.


Maybe a similar method could be applied with these
parsers? First thing would of course be that Midgard
would have to know to use all the parsers and converters
needed in the process. If this could be done via a
generic interface, it should be easy to write Midgard
support to different parsers, and also for third 
parties to provide these interfaces with their
parser software. I think this is the area that needs
most work here.

Then Midgard would need to know in what format was
the document saved as in Midgard's database, was
it SGML, XML, LaTeX, or something else. Based on
this, and the output format specified in PHP end
(HTML, WML, whatever) Midgard would then run the 
document through the needed parsers and save the 
output to a different field in the article table. 
After that Midgard could just use that stored 
information to serve further queries for the same 
document. Midgard 2 has a nice modification log, 
so it would be easy to check whether the document 
has changed since it was previously converted.

This way we would finally get a really powerful
and flexible publishing system that could work
with multiple formats for Midgard.

> Alexander Bokovoy 

/Bergie

-- 
-- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] --
   http://www.iki.fi/Henri.Bergius


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]