|
Subject:
|
Online Updation
|
|
Posted By:
|
qazi_nomi
|
Post Date:
|
9/22/2004 4:29:17 AM
|
I want to display the online updation of my pages mean that how can I change my web pages as when I use some CSS on my pages and how can I update that page.
Numan -------------------------------------------------- Love is the most precious thing of this world. So find it and grab it!
|
|
Reply By:
|
rajanikrishna
|
Reply Date:
|
9/22/2004 4:40:09 AM
|
Hello numan,
What do you want to update on the page. Which content or styles? And when you want to update. Any conditions?
----------- Rajani
|
|
Reply By:
|
qazi_nomi
|
Reply Date:
|
9/22/2004 4:43:29 AM
|
Dear Rajani I want to update both contents and style of my webpages using differnt style using CSS and update on almost every month
Numan -------------------------------------------------- Love is the most precious thing of this world. So find it and grab it!
|
|
Reply By:
|
madhukp
|
Reply Date:
|
9/22/2004 4:44:02 AM
|
Hello Numan,
Could you please word it slightly differently so that we can understand your requirements clearly ?
|
|
Reply By:
|
madhukp
|
Reply Date:
|
9/22/2004 4:49:12 AM
|
ok, does the basic layout of the site remain the same always ? Or the layout itself change from month to month ?
Are you using only one css file throughout site ?
If layout remain same and there is only one css, you can apply a basic content management system and store the names of css files for each month in db. Then in session_onstart, you can determine the name of the css file to be used and use it in every page. Or you can have a small piece of script on each page to fetch the name of css file.
|
|
Reply By:
|
qazi_nomi
|
Reply Date:
|
9/22/2004 4:50:22 AM
|
I want to just update contents and style of my webpages using differnt style using CSS and update regularly and for this we made again whole web site and upload it again for using so how we can online updation in the site
Numan -------------------------------------------------- Love is the most precious thing of this world. So find it and grab it!
|
|
Reply By:
|
rajanikrishna
|
Reply Date:
|
9/22/2004 5:59:59 AM
|
Hello,
If you want to change the contents means (thru database/manually)? If thru database you code some small server side scripting. And regarding styles, create a CSS file and add to every page using <LINK href=cssfilename.css" ...>
Whenever you want to update the styles, just change the CSS file.
If this is not your requirement, let me know.
-------- Rajani
|
|
Reply By:
|
qazi_nomi
|
Reply Date:
|
9/22/2004 11:40:17 PM
|
Dear I am not using any data base but now I want to use XML or any database. Please tel me which one is suiteable for me as the regular updation in the contents of the website?
Numan -------------------------------------------------- Love is the most precious thing of this world. So find it and grab it!
|
|
Reply By:
|
madhukp
|
Reply Date:
|
9/23/2004 12:14:13 AM
|
IMO, database is more suitable for content management.
You can use XML also. But you have to decide the methods very clearly. You have to define XML format very clearly and then design parser according to it. In future when the client requirements changes, you may have to modify both XML format and parser.
Using database -------------- You can have a table for storing the contents of pages. One page may itself have more than one "dynamic" portions. You need one record for each such section. An approx. design for this table will be
PageID primary auto-increment PageName varchar(50) DynamicSectionName varchar(50) Content Text
You need a WYSIWYG editor to help admin users edit the content without the knowledge of HTML. There are many such editors available online.
|
|
Reply By:
|
qazi_nomi
|
Reply Date:
|
9/23/2004 12:24:30 AM
|
Dear madhukp tel me that weather it is good to have the whole contents of the page are in data base and when we migrate our technology then does it may difficult to menage both data base and the whole language. But in XML we dont care to use any language. For example if we migrate from windows to Linux with SQL server or MS Access to mysql or sysbase then it make difference in the case of database ?
Numan -------------------------------------------------- Love is the most precious thing of this world. So find it and grab it!
|
|
Reply By:
|
madhukp
|
Reply Date:
|
9/24/2004 12:05:58 AM
|
Both database and XML have got their advantages and dis-advantages.
XML advantages
1)Migration to a different server is easy. You need only copy a set of XML files.
2)reduction in cost - no need to buy database
XML disadvantages
1)You cannot make a schedules backup of data etc.
2)It is difficult to have two different version of content.
3)Poor security.
Database advantages
1)You can backup database on a fixed schedule.
2) security of data is more
3) version control of the content is more easy. You can put the content for next week in the same table and can make your script to show it only on next week. You can do this with XML also, but with more difficulty.
Database dis-advantages
1) It is difficult to migrate to a different database.
2) cost of hosting will be slightly more as data enabled hosting facilities are generally costlier.
But, IMO, clients are generally not technology specific unless it affects their budget very much. Once you setup a CMS with database and scripts, why do they want to migrate to different technology frequently ? That is why I suggested database.
If you want to make frequent technology changes (or if you are building a general CMS which may be supplied to a large number of clients), then it is better to go for XML.
|
|
Reply By:
|
qazi_nomi
|
Reply Date:
|
9/24/2004 1:27:31 AM
|
Thanks for all of you for your response and helping me in this situation. And as Madhu suggested that now I am considering the database is the best solution for my problem . But tel me that weather can I store the contents of css in data base if yes then how and if you can give me any example then it wil be great ful for me
Numan -------------------------------------------------- Love is the most precious thing of this world. So find it and grab it!
|
|
Reply By:
|
mat41
|
Reply Date:
|
9/24/2004 7:26:44 PM
|
You can store any collection of integers, strings and the like in a database and render them on any dynamic page. Yes a style sheet can be dynamic, however to change the style of your site often:
rajanikrishna's suggestion is on the money. 1..Have multiple style sheets and either: a..manualy change the style path to your new .css OR b..Place a conditional statement around your style sheet link, based on a date range you can alternate them as your chosen period of time passes by.
Wind is your friend Matt
|