List Info

Thread: Step 1




Step 1
user name
2007-04-24 12:42:47
Hello everyone!

I am a seasoned programmer, but also a total newbie to
bricolage.
My installation is running on FreeBSD 6.1 (PCBSDv1.3) and I
have 
a clean install of postgresql-server-7.4.17 and
bricolage-1.10.2 
both installed through the ports. I also did the following
steps: 
 
   # cd /usr/local/pgsql/
   # mkdir data
   # chown pgsql data
   # su - pgsql
 
   $ /usr/local/bin/initdb --encoding UNICODE -D
/usr/local/pgsql/data
   $ /usr/local/bin/pg_ctl -D /usr/local/pgsql/data -l
logfile start
   $ exit
 
   # bric_pgimport -u pgsql -p pgsql -d bric -c -m
bric:notmyrealpasswd
   # bric_apachectl start
 
I logged in as admin and changed the default password. 
 
I would now like to like to make a 1 page website containing
only 
"hello, world", just to get my feet wet, on a
remote server with  
only ftp access. Please tell me what I have to do. Thanks,
in  
advance.

Re: Step 1
user name
2007-04-24 15:19:01
Miklos Janosi wrote:
> Hello everyone!
> 
> I am a seasoned programmer, but also a total newbie to
bricolage.
> My installation is running on FreeBSD 6.1 (PCBSDv1.3)
and I have 
> a clean install of postgresql-server-7.4.17 and
bricolage-1.10.2 
> both installed through the ports. I also did the
following steps: 
>  
>    # cd /usr/local/pgsql/
>    # mkdir data
>    # chown pgsql data
>    # su - pgsql
>  
>    $ /usr/local/bin/initdb --encoding UNICODE -D
/usr/local/pgsql/data
>    $ /usr/local/bin/pg_ctl -D /usr/local/pgsql/data -l
logfile start
>    $ exit
>  
>    # bric_pgimport -u pgsql -p pgsql -d bric -c -m
bric:notmyrealpasswd
>    # bric_apachectl start
>  
> I logged in as admin and changed the default password.

>  
> I would now like to like to make a 1 page website
containing only 
> "hello, world", just to get my feet wet, on a
remote server with  
> only ftp access. Please tell me what I have to do.
Thanks, in  
> advance.

Hi Miki,

In the bricolage documentation and articles you will find a
lot of
emphasis on modeling documents, creating a story element
type and other
element types for items in the web pages etc..

An actual order of stuff would be (help here appreciated,
I'll miss
something):

1) Just use the default Site
2) Create an Output Channel (OC)
3) Create a Destination use FTP as the "Move
Method", add the OC to the
Destination, add a "Move" action, add the server
with the FTP username
and password and location of document root.
4) Create a story element type (with your OC as the Primary
OC, Main
site, / category)
5) Add a "Custom Field" to the story element type,
call it Paragraph.
6) Create a mason template (your OC) for your story element
something like:
<%perl>;
foreach my $e ( $element->get_elements(qw(paragraph)) {
   $m->print('<p>', $e->get_data,
"</p>n");
}
</%perl>

7) Create an autohandler category template for the /
category your OC:
<html>
<body>
<%perl>
   $burner->chain_next;
</%perl>
</body>
</html>

8) Create a new story via the Primary workflow
Story Type: your story element type
Category: /
Put stuff in your paragraph field (hello world)
Preview, Check in and Publish

The OC does some stuff with the file name your story (web
page) will end
up with via the URI or Fixed URI Format fields and the Use
Slug for
Filename check box in the OC definition.

I am unaware of a short, single tutorial leading through the
whole
process for the simplest case like a "Hello World"
web page.  There are
some default element types in the base install that should
work with
some minimal changes to destination and maybe the templates.
 That might
be a better place to start for a least effort tutorial or
howto.

- cameron

Re: Step 1
user name
2007-04-25 02:14:51
On Tue, 24 Apr 2007, cdmiller wrote:
> I am unaware of a short, single tutorial leading
through the whole
> process for the simplest case like a "Hello
World" web page.

Because you didn't put your explanation on the wiki. 

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )