|
List Info
Thread: How to build a mulit template website
|
|
| How to build a mulit template website |

|
2006-11-25 19:41:18 |
|
---------- Forwarded message ---------- From: abhishek jain < mail ejain.com">mail ejain.com> Date: Nov 26, 2006 1:10 AM Subject: Re: How to build a mulit template website
To: kolikov < kolikov free.fr">kolikov free.fr>
Hi Kolikov,
I think i was not able to explain fully,
1)multi template site for me means like we have one theme for one domain and other for another domain or lets say one theme on one day eg. christmas and another i have at the new year.How to make such and change by changing a parameter in the database, i have seen such things in php but i want to know how to do this in embperl.
3)Also by the intemediary page i mean the processing page ,like if the time taken for background page is more then a page will appear with the progress which will disappear after the background process is complete . This is to tell the user that the page is not dead but we are processing the inputs,
Thanks for the mail, --
Regards,
Abhishek jain
On 11/25/06, kolikov <free.fr" target="_blank">kolikov free.fr> wrote:
abhishek jain wrote: > Hi all, > 1) i need to build a muti template website based on domain name,rest
> everything will be same .I mean i lack the concept here.What i think is i > should have multiple site templates on the template folder and on the > domain > name i call that specific files .But if i do that i want to remove the
> procesing with the html pages. For that kind of templating, if I understand your statemant, ie : "A persistant layout and file hierachy which dynamicaly send different content according to the requested domain".
In any case, if you have some perl knowledge, Embperl is for you, I find it easier and more flexible then Mason.
IMHO, I'd store the dynamic data into a database then serve it according to the client requested URI.
If you want more templating option with Embperl, look here : - http://www.ecos.de/embperl/pod/doc/EmbperlObject.htm
- http://www.ecos.de/embperl/pod/intro/IntroEmbperlObject.-page-1-.htm
> 2)Also i need to read tutorials on embperl can anyone point to me on > that. I > am a newbie to embperl i have read tutorials on
httpd.org and perl.com. I > would appreicate if there is a tutorial also on installing the embperl > 2.x
.
Embperl site : http://www.ecos.de/embperl/ Install : - if you have a Debian STABLE distribution,
a few apt-get will do the job : apt-get install apache2-common apt-get install apache2-mpm-prefork apt-get install libapache2-mod-perl2 apt-get install libembperl-perl
- Else go there :
http://www.ecos.de/embperl/pod/INSTALL.htm
- I recommend using embperl with modperl2 and Apache2,
it is easier to setup, and with Debian, it is almost automatic.
Then setup your apache2 config :
http://www.ecos.de/embperl/pod/doc/Config.-page-1-.htm
Then learn the syntax ( if you know perl, it is quite easy ) :
http://www.ecos.de/embperl/pod/doc/Embperl.htm
For tutorials and examples, the packages provide some. And you can search the mailing list here :
http://www2.ecos.de/~mailarc/embperl/
> 3)Also how to bring a processing page like we see on a airline ticket > booking page the intermediary page comes i wanted to know how to bring that > page.
If I read you well, you want to display an "intermediary page" while another one is loading ....
Page1 calls Page2 (or itself, but let's call it Page2) via Submit1 --> Onclick Submit1, popup a window with a "please wait" or whatever.
--> When Page2 comes out close the popup via javascript. You can also do it wihtout popup : --> A <div> style="display:none" contains the wait message --> Onclick Submi1 : Then style="display:block"
--> When Page2 comes out : Then style="display:none" Will do the job.
Best regards -- Kolikov.
|
| How to build a mulit template website |

|
2006-11-28 00:08:01 |
abhishek jain dijo [Sun, Nov 26, 2006 at 01:11:18AM +0530]:
> Hi Kolikov,
> I think i was not able to explain fully,
> 1)multi template site for me means like we have one
theme for one domain and
> other for another domain or lets say one theme on one
day eg. christmas and
> another i have at the new year.How to make such and
change by changing a
> parameter in the database, i have seen such things in
php but i want to know
> how to do this in embperl.
If you are basically trying to differentiate your sites by
having
different _design_ but the same _functionality_, maybe you
want to
have different stylesheets - Add in the header of your
templates, say:
<link rel="stylesheet"
href="/system_style.css"
type="text/css">
And you can have completely different presentations.
Besides, this
will help separate logic from presentation, which is always
good!
--
Gunnar Wolf - gwolf gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973 F800 D80E F35A 8BB5
27AF
------------------------------------------------------------
---------
To unsubscribe, e-mail: embperl-unsubscribe perl.apache.org
For additional commands, e-mail: embperl-help perl.apache.org
|
|
| How to build a mulit template website |

|
2006-11-28 03:38:42 |
Gunnar Wolf wrote:
> abhishek jain dijo [Sun, Nov 26, 2006 at 01:11:18AM
+0530]:
>
>> Hi Kolikov,
>> I think i was not able to explain fully,
>> 1)multi template site for me means like we have one
theme for one domain and
>> other for another domain or lets say one theme on
one day eg. christmas and
>> another i have at the new year.How to make such and
change by changing a
>> parameter in the database, i have seen such things
in php but i want to know
>> how to do this in embperl.
>>
>
> If you are basically trying to differentiate your sites
by having
> different _design_ but the same _functionality_, maybe
you want to
> have different stylesheets - Add in the header of your
templates, say:
>
> <link rel="stylesheet"
href="/system_style.css"
type="text/css">
>
> And you can have completely different presentations.
Besides, this
> will help separate logic from presentation, which is
always good!
>
>
This CSS demo will blow your mind and show you what's
possible:
*http://www.csszengarden.
com/
Cliff
*
------------------------------------------------------------
---------
To unsubscribe, e-mail: embperl-unsubscribe perl.apache.org
For additional commands, e-mail: embperl-help perl.apache.org
|
|
[1-3]
|
|