设置模板 [英] Setting up templates

查看:49
本文介绍了设置模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个项目,客户希望拥有多个模板,客户可以为他们的网站选择这些模板。我们想要一切自动化。我们将为客户托管该网站。有关如何设置的任何想法?我熟悉java,jsp,java servlets,html和一点点php。

I am working on a project where the client wants to have multiple templates that customers can choose from for their site. We want everything automated. We are going to host the site for the customer. Any ideas of how to set this up? I am familiar with java, jsp, java servlets, html, and a little php.

推荐答案

嘿..你能解释一下详细信息,了解你如何以及使用什么模板设置...
hey..could you explain bit details abt how and what template you wnat to setup...


模板基本上是空的网站shell。客户将选择他们喜欢的模板之一,这将成为他们的网站。模板将大部分用html编写,可能包含一些jsp。我们将使用MySQL数据库来保存客户的选项,即哪个模板,哪些颜色选择,他们想要在文本字段中显示哪些文本。例如。
The templates will be basically empty web site shells. The customer will choose one of the templates they like, and that will become their web site. The templates will be written in html for the most part, perhaps containing some jsp. We will be using a MySQL database to hold the options of the customer, i.e. which template, which color choices, what text do they want displayed in text field one for example.


你的大多数必须在服务器端代码中完成工作。


您将不得不编写将要呈现的模板HTML页面。


然后你必须根据用户的选择动态生成这个页面的样式。将CSS代码存储在数据库中可能最容易......但是由你来决定如何实现它。


你还需要动态抓取数据库中的网页文本内容。
Most of your work is going to have to be done in the Server Side code.

You''re going to have to write a template HTML page that will be rendered.

Then you''ll have to dynamically generate the styles for this page based on the user''s selections. It''d probably be easiest to store the CSS code in your database ...but it''s up to you how you implement it.

You will also have to dynamically grab the text content for the web pages from your database as well.


这篇关于设置模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆