[Chameleon] Studio installation for chameleon

Normand Savard nsavard at mapgears.com
Thu Nov 1 13:59:34 EDT 2007


Normand Savard wrote:

> SHERIF NAGY wrote:
>
>> Hello Norm,
>>     That is will be great ! i really appreciate  your
>> help and effort.  any method to communicate and send
>> the files? IRC / MSN / YAHOO / GTALK / ICQ / Gadu Gadu
>> :-)?
>>
>>  
>>
> Sherif, Anand,
>
> I'm sending you the tarball (622kb) offline and then after I'll assist 
> you on how to set up studio through the mailling list.  We always have 
> to  cc the Chameleon mailling list.
>
> Norm
>
Here is what I did to install and configure Studio to make it work with 
the SECTPopup widget.

Norm

A)The simple way on Linux:
1.  Extract Studio in the same directory as Chameleon is (e.g. if 
Chameleon is in /home/username/projects/, extract Studio in 
/home/username/project).

2.  Edit studio/config/studio.xml and leave blank the Chameleon path :

<app-context>
    <context-param>
        <param-name>chameleon_path</param-name>
        <param-value></param-value>
         <description>Absolute path to the root of a chameleon 
installation. You
can leave it blank if chameleon is installed in the same directory as 
Studio.  This value is a DIRECTORY</description>
     </context-param>

   ...
</app-context>

3.  Go to your Apache document root directory and add a symbolic link 
that point out to studio/htdocs directory

ln -s /pathto/studio/htdocs/     studio

4. Add SECTPopup widget in your application template:


    <tr>
      <!-- SECTPopup -->
      <td><cwc2 type="SECTPopup" styleresource="TextButtons" 
popupstyleresource="TextButtons" PopupWidth="300" PopupHeight="450" 
Toolbar="false" Status="false" Menubar="false" Visible="true" 
Scrollbars="true" Image="icons/icon_classify.png" Label="Style Layer" 
ImageTip="Apply styles to layers" >
        <image state="normal"/>
        <image state="selected"/>
        <image state="hover"/>
      </cwc2>
      </td>
    </tr>



B)If you extract Studio not in the same directory as Chameleon on Linux.
1.  Extract Studio in a directory that will be made accessible from the Web.

2.  Edit studio/config/studio.xml and set the Chameleon path :

<app-context>
    <context-param>
        <param-name>chameleon_path</param-name>
        <param-value>/path/to/chameleon/htdocs/</param-value>
         <description>Absolute path to the root of a chameleon 
installation. You
can leave it blank if chameleon is installed in the same directory as 
Studio.  This value is a DIRECTORY</description>
     </context-param>

   ...
</app-context>

3.  Go to your Apache document root directory and add a symbolic link 
that point out to studio/htdocs directory

ln -s /pathto/studio/htdocs/ studio

4. Add SECTPopup widget in your application template with the path and 
Web path to Studio:

    <tr>
      <!-- SECTPopup -->
      <td><cwc2 type="SECTPopup" styleresource="TextButtons" 
popupstyleresource="TextButtons" PopupWidth="300" PopupHeight="450" 
Toolbar="false" Status="false" Menubar="false" Visible="true" 
Scrollbars="true" Image="icons/icon_classify.png" Label="Style Layer" 
ImageTip="Apply styles to layers" STUDIOPATH="/pathto/studio/" 
STUDIOURL="http://127.0.0.1:port/studio/">
        <image state="normal"/>
        <image state="selected"/>
        <image state="hover"/>
      </cwc2>
      </td>
    </tr>

C)Alternately instead of doing a symbolic link (step 3) you can create 
studio.conf file under fgs/www/conf.d if you work with fgs or if not 
simply add the following lines in your httpd.conf:

Alias /studio/ "/pathto/studio/htdocs/"

<Directory "/pathto/studio/htdocs/">
  AllowOverride None
  Options Indexes FollowSymLinks Multiviews
  Order allow,deny
  Allow from all
</Directory>

Alias /studio_admin/ "/pathto/studio/htdocs_admin/"

<Directory "/pathto/studio/htdocs_admin/">
  AllowOverride None
  Options Indexes FollowSymLinks Multiviews
  Order allow,deny
  Allow from all
</Directory>


D)  You can execute the following steps on Windows with ms4w:

1.  Extract Studio in the same directory as Chameleon is (e.g. in 
/ms4w/apps/).

2.  Edit studio/config/studio.xml and leave blank the Chameleon path :

<app-context>
    <context-param>
        <param-name>chameleon_path</param-name>
        <param-value></param-value>
         <description>Absolute path to the root of a chameleon 
installation. You
can leave it blank if chameleon is installed in the same directory as 
Studio.  This value is a DIRECTORY</description>
     </context-param>

   ...
</app-context>

3.  Go to /ms4w/httpd.d/ and create a file httpd_studio.conf with the 
following lines within it:

Alias /studio/ "/ms4w/apps/studio/htdocs/"

<Directory "/ms4w/apps/studio/htdocs/">
  AllowOverride None
  Options Indexes FollowSymLinks Multiviews
  Order allow,deny
  Allow from all
</Directory>

Alias /studio_admin/ "/ms4w/apps/studio/htdocs_admin/"

<Directory "/ms4w/apps/studio/htdocs_admin/">
  AllowOverride None
  Options Indexes FollowSymLinks Multiviews
  Order allow,deny
  Allow from all
</Directory>


4. Add SECTPopup widget in your application template:


    <tr>
      <!-- SECTPopup -->
      <td><cwc2 type="SECTPopup" styleresource="TextButtons" 
popupstyleresource="TextButtons" PopupWidth="300" PopupHeight="450" 
Toolbar="false" Status="false" Menubar="false" Visible="true" 
Scrollbars="true" Image="icons/icon_classify.png" Label="Style Layer" 
ImageTip="Apply styles to layers" >
        <image state="normal"/>
        <image state="selected"/>
        <image state="hover"/>
      </cwc2>
      </td>
    </tr>





More information about the Chameleon mailing list