473,396 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Advice for Directory Structure

Hi All!

I'm developing a website for a software company. They want to publish news,
tip/tricks and other articles on company's news section.

I would like to get advice on
- how to name the individual article files? (There will be 1000s of them)
- how to let the user query it? (i.e. news/index.asp?articleID=234544 or
what?)

I preffered a standard way to do all this. Pointer to any sample or tutorial
on this will be much appericated!!

David
Jul 19 '05 #1
3 1211
David,

I am not a big fan of file system... not very portable. Could you store the
articles in database, preferably in XML format (or simply in attributed
manner -- separate date, headline, etc.)? This way, you can change the looks
of the article without resorting to reformating the text/html.

From a virtual directory point of view, I think what you are doing seems to
be just fine.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"David Freeman" <no*****@nospam.com> wrote in message
news:uN**************@TK2MSFTNGP11.phx.gbl...
Hi All!

I'm developing a website for a software company. They want to publish news, tip/tricks and other articles on company's news section.

I would like to get advice on
- how to name the individual article files? (There will be 1000s of them)
- how to let the user query it? (i.e. news/index.asp?articleID=234544 or
what?)

I preffered a standard way to do all this. Pointer to any sample or tutorial on this will be much appericated!!

David

Jul 19 '05 #2
"David Freeman" wrote in message
news:uN**************@TK2MSFTNGP11.phx.gbl...
: I'm developing a website for a software company. They want to publish
news,
: tip/tricks and other articles on company's news section.
:
: I would like to get advice on
: - how to name the individual article files? (There will be 1000s of them)
: - how to let the user query it? (i.e. news/index.asp?articleID=234544 or
: what?)
:
: I preffered a standard way to do all this. Pointer to any sample or
tutorial
: on this will be much appericated!!

Hi David...

You could use a database and a FSO to accomplish your goals. Use the
database to store specific information related to the files and text content
and files to store images with CSS templates used to format the data.

I'm sure there are numerous ways to accomplish what you want. IMHO,
assigning categories, as you would with a chart of accounts would be one
example for naming where characters in a filename represent a category.

Chart:
Category/Length:
Type: 1
SubType: 1
Article Number: 5

Types:
News: 1
Tip: 2
Other: 3

SubType:
Database: 1
Applications: 2
Support: 3

an ID of: 2101023 would be Article 1023 in the database tip area.

Your mileage will vary with your specific needs.

What I would not do is waste time using a category for data [current,
recent, archived] because you could just use a date column in your table and
use ranges when you query.

Current: 0-30 days
Recent: 31-90 days
Archived: 91+ days

If you use files to store your content then you can just test with
DateCreated, DateLastModified.

Aaron's site [aspfaq.com] appears to have what you're looking for. You
might want to see if he will provide you with some pointers to get you
going.

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #3
Hi All!

Thanks for all the input. I'm also looking around aspfaq.com for more
pointers.

Cheers
David

"David Freeman" <no*****@nospam.com> wrote in message
news:uN**************@TK2MSFTNGP11.phx.gbl...
Hi All!

I'm developing a website for a software company. They want to publish news, tip/tricks and other articles on company's news section.

I would like to get advice on
- how to name the individual article files? (There will be 1000s of them)
- how to let the user query it? (i.e. news/index.asp?articleID=234544 or
what?)

I preffered a standard way to do all this. Pointer to any sample or tutorial on this will be much appericated!!

David

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: soni29 | last post by:
when creating a project with namespace like: wrox.csharp.basics.overflowtest is it good practice to have the directory structure like that also: c:\wrox\csharp\basics\overflowtext.cs Also if it...
4
by: Elmo Watson | last post by:
Is there a way, with the System.IO class, to do a recursive list of a directory structure? For instance, in DirectoryInfo, you have GetDirectories and GetFiles .... In Directory, you have...
6
by: Martin Bischoff | last post by:
Hi, I'm creating temporary directories in my web app (e.g. ~/data/temp/temp123) to allow users to upload files. When I later delete these directories (from the code behind), the application...
3
by: Sigmathaar | last post by:
Hi, I'm need some advice about lists and vectors. I'm doing a program who needs to have sequential access of a non ordered unit of objects whose size decreases almost each time the sequence is...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
10
by: Alan Searle | last post by:
I would like to scan a directory structure into XML to offer navigation functionality in HTML / XSL pages. My questions are: 1. Which is the best structure to store variable depth heirarchies...
0
by: Eric | last post by:
We've got a fairly large legacy ASP site, consiting of one main website with a lot of sub-folders organized in a tree under the main site. We don't use IIS Application/Virtual directories other...
2
by: mirandacascade | last post by:
Situation is this: 1) I have inherited some python code that accepts a string object, the contents of which is an XML document, and produces a data structure that represents some of the content of...
232
by: robert maas, see http://tinyurl.com/uh3t | last post by:
I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.