SitePoint Sponsor

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 25 of 30
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Dubai
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating templates / template design

    Hi every1
    here is the introduction: there are many departments, dept1, dept2, dept3, ... deptX
    these dept have their own contents and information, duhh!

    so, my homepage has a link as a directory structure to these diff depts. so far no problem!

    now, there are webpages to be made for each of the depts with a certain design, like copyright and disclaimer at bottom, logo and common links on top, probly some image or anotehr set of common links on left..
    this leaves the center portion.

    NOW... how can we design such a template and give it to the respective layman in those deptX to publish their contents onto the center wihtout disturbing the template...

    They will be using say Word, and they shud see the preview how it looks.

    So, is there any way.. while publishign and modifying the center contents wihtout disturbing the other portions...
    as the ppl who will post info will defintiely play around wiht other portions...

    I do not wish to use frames,
    so, lemme konw if there is a solution to this!

    and let me finsih off with a joke as an appreciation to read all this with patience:
    Girl to Boy
    Dont u dream about me?
    Boy to girl
    I see your face when I am dreaming
    That's why I always wake up screaming

    reply soon!

  2. #2
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have something similar which im working on now. Basically it has a bin directory which spawns websites from folders in there. This then gets copied to a folder called projects. Which means unlimited directorys can be built and websites can be copied and modified etc. Each project that gets spawned then has it's own content management system (cms) to format input, whilst each layout can be rendered differently from each project with it's own templating system.

    Not sure if thats the sort of thing your after though. I though the layout below might show you better.

    Code:
    +---upgrades
    +---setup
    +---includes
       +---templates
          +---tmpl
             +---_database
                +---snippets
                +---dat
                +---csv
             +---xml
                +---xml
                +---svg
                +---snippets
                +---dtd
             +---vbs
                +---snippets
             +---txt
                +---snippets
             +---soap
                +---snippets
             +---php
                +---snippets
             +---js
                +---snippets
             +---java
                +---snippets
             +---html
                +---snippets
             +---htaccess
                +---snippets
             +---css
                +---snippets
             +---cgi
                +---snippets
             +---active x
                 +---snippets
          +---header
          +---classes
              +---_database
                 +---snippets
                 +---dat
                 +---csv
              +---vbs
                 +---snippets
              +---php
                 +---sort
                 +---snippets
                 +---ESC31
              +---perl
                 +---snippets
              +---js
                 +---snippets
              +---java
                 +---snippets
              +---css
                 +---snippets
              +---cgi
                 +---snippets
              +---asp.net
                 +---snippets
              +---asp
                  +---snippets
       +---image
          +---min
             +---logos
             +---icons
             +---flags
             +---charts
          +---max
       +---executables
    +---development
       +---testing
       +---api
    +---bin
       +---arteast
          +---includes
             +---images
                +---min
                +---max
             +---header
                +---meta
                +---js
                +---db
                   +---dump
                +---css
             +---footer
             +---binary
                 +---win
                 +---unix
                 +---solaris
                 +---mac
                 +---dos
          +---database
       +---tmp
           +---includes
               +---binary
                  +---dos
                  +---mac
                  +---solaris
                  +---unix
                  +---win
               +---footer
               +---header
                  +---css
                  +---db
                     +---dump
                  +---js
                  +---meta
               +---images
                  +---max
                  +---min
               +---templates
               +---classes
    +---backup
       +---txt
       +---sql
       +---papers
       +---dump
       +---dat
       +---cvs
       +---com
       +---xml
    +---projects
        +---test
            +---includes
                +---binary
                   +---dos
                   +---mac
                   +---solaris
                   +---unix
                   +---win
                +---footer
                +---header
                   +---css
                   +---db
                      +---dump
                   +---js
                   +---meta
                +---images
                   +---max
                   +---min
                +---templates
                +---classes

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Dubai
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Andrew J, either u have got me wrong, or vice versa:)

    i didint undestand a word wht u wrote and, wht the diagram shows, it went flat over my head!!!

    just to summarize, i need to give a template file/folder to different departments to publish their content onto the middle portion, rest of the portion is common for all the dept, (like top for logo, bottom for disclaimer, left for links--leaving center for the respective dept content)

    so, when i give this template file/folder to the dept. members, i wanna see to it that they cannot change the design and information on the top, left and bottom portions...
    basically they shud have "WRITE" rights only to center portions, and "READ" to lett, top and bottom.!

    The reason why the dept is given "READ" rights, is so that they can see how the ENTIRE page will actually be on the web.

  4. #4
    SitePoint Zealot anam's Avatar
    Join Date
    May 2002
    Location
    Maryland, USA
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile

    Hi,

    One way to do this is to use Dreamweaver. You can create templates using that where you can set up the logo and footer and whatever else you want, and set only certain areas to be editable. So yoyr users won't be able to mess up the design and can only add information to the areas you set to be editable. I don't know if Dreamweaver is in the budget for your company but this is one easy way to handle things.

    Best of luck,
    Trish

  5. #5
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Dubai
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    hey anam

    we can afford dreamweaver, but that wud be the last resort
    we have frontpage, wondering if we could do the same.
    and, same goes for MS Word... can we achieve the same over there??

    first option is Word and then Frontpage.

    I dont think the company will buy dreamweaver as we have license for MS Office including frontpage.

    Reminder there are no frames. so how can u set a portion to editable false? is there somethign similar in Word and frontpage?

    thanx anam

  6. #6
    (****** or Deleted)
    Join Date
    May 2002
    Location
    Melbourne, Australia
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I do not know of any "easy" way to do what you are after, the Dreamweaver way sound like an option, but an expensive one at that...

    I imagine this could be done with a mixture of PHP and DHTML, but you wouls practically need to create a complete CMS (Content Management System)...

    What you could do is have an admin section where the user adds their department, their content, and have a DHTML script to show the markup on the fly, or else just have a preview option like these message boards do...

    Then have it when they submit the data it is submited into either a plain text file, or a database, and have PHP organise the links/articles/pages automatically...

    Again this is a fairly complex setup for someone with no experience in PHP, but would get the jb done, and your work would love you LOL

    The other thing you have to remember is that you would require a host that offers PHP/MySQL support and can handle the processing of the database queries if the site will be popular...

    Just some things to think about...

  7. #7
    SitePoint Zealot anam's Avatar
    Join Date
    May 2002
    Location
    Maryland, USA
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Nouman,

    I've just had a very fast look at FrontPage (2000) and Word (2002). While you can of course create templates in either of these, I don't see where you can protect portions of the template and leave other parts editable like you can in Dreamweaver. From my quick tests it looks like a user can erase anything on the page, which it sounds like you do not want them to be able to do. Someone else may know something on those that I do not, but this is what I see so far just on a quick dig.

    I've just seen Wizardx8's response, and if you're involved in those technologies it might be the way to go. But if you aren't, I just don't know what else besides DW can do what you describe. Maybe someone with experience with another WYSIWYG editor could advise. I have only used FP and DW as far as WYSIWYG editors go. Last note, you mentioned frames -- having them or not makes no difference, you can still achieve the protected template with DW and it really is simple. Let me know what you come up with; I'd be interested to know the solution you go with

    Cheers,
    Trish

  8. #8
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you're doing what I think you are, it's pretty easily fixed with server side includes...

    Just create all of you template with a header, footer, etc and get the departments to make their page and either

    a) if you have the ability to do it append this to the page as it gets requested

    b) tell them to put a few bits of simple code at the top and bottom of their page to include the template

    You could always use sitepoint's editize with it to help them edit if you used it with some sort of content management system, which actually wouldn't be all that hard to setup with a bit of basic PHP and a database

  9. #9
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Dubai
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    thanx platinum, but...

    firstly wht do u mean by server side includes?

    the two choiced u've mentioned is right and i am fully aware of it, but they might edit the footer, logo etc... unintentionally... so, its like a complete restriction to them..


    i visited teh website, i viewed the flash demo, it doesnt allow clients to push in images, tables??

  10. #10
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's actually Java, not flash -- but anyway

    With server side includes, say you have a header called "header.htm" and a footer called "footer.htm"

    All you need to do is get put

    Code:
      // Header is automatically insterted here:
    
    <!--#include virtual="../header.htm" -->
    
      // Changeable by the dept. section is here
    
    <!--#include virtual="../footer.htm" -->
    and that's it.. the beauty of it all is once you change the footer or header file, all pages using it get updated at the same time, rather than having to change each one seperatly

  11. #11
    (****** or Deleted)
    Join Date
    May 2002
    Location
    Melbourne, Australia
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Platinum is ont he right track with Include files, but I remember nouman mentioned that they need to be able to see the preview, and again if they choose not to spell something properly in the include, it all gets messed up... I am assuming nouman that you want some thing that you do not have to play with at all once setup? If so, a CMS is about the only thing I can imagine would work...

  12. #12
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Last edited by Andrew-J2000; Aug 12, 2002 at 01:34.

  13. #13
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Dubai
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    thanx again ppl

    i liked ur advice platinum, about

    // Header is automatically insterted here:
    <!--#include virtual="../header.htm" -->
    // Changeable by the dept. section is here
    <!--#include virtual="../footer.htm" -->

    this is a nice and neat idea...
    but, was wondering if the header, footer have to be seperate, files... thats how it looks like.. i want to avoid frames as i mentioned earlier..

    and, next question is.. upon preview the user will see evrythign, thats good, and while publishing his content, he can see the virtual header, footer... changes taht are made to the header/footer, will it change those virtual files???

  14. #14
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, with that method, individual footers and headers can't be changes, theres just one set, and thats it.

    And no, it's nothing to do with frames it's all done by the server before the other end gets it

    And yep, the header and footer are two seperate files on the server, but once the page say index.htm is requested it will all be mushed together as if it was one page.

    And also, they'll only appear online, unless you have dreamweaver or a program that will render them offline

  15. #15
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Dubai
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanx platinum again!

    nice thing..

    if any1 knows how to do it, show me a small example, and for ppl who cant show..
    i'll try to do so


    anyways, thanx ppl!
    examples will be appreciated, will save a lot of research time.

  16. #16
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    heh, make a page called index.htm and a put

    Code:
    <html>
      <head>
        <title>SSI Test Page</title>
      </head>
      <body>
    
        <!--#include virtual="header.htm" -->
    
        <div align = "center"><b>Hello there!</b></div>
    
        <!--#include virtual="footer.htm" -->
    
      </body>
    </html>
    and end it there...

    then make a page, header.htm simply with

    Code:
    Hello, this is the header reporting for duty
    and a similar footer.htm

    and simply upload all three files, and then try going to index.htm, they should all appear together

    If they don't try changing the extension of index.htm to index.shtml
    Last edited by platinum; Aug 12, 2002 at 03:48.

  17. #17
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Dubai
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    bad luck

    platinum, not working!!!

    i did wht u asked me to..
    not working, just showing me "Hello There!" from the index.htm and same for index.shtml

    its not showing header.htm and footer.htm
    both files have been made, and file names are matching as well



    pls advice!

  18. #18
    Wanna-be Apple nut silver trophy M. Johansson's Avatar
    Join Date
    Sep 2000
    Location
    Halmstad, Sweden
    Posts
    7,400
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    is the
    <!--#include virtual="footer.htm" -->

    line showing on index.shtml?


    If it is, your server probably doesn't support Server Side Includes.
    Mattias Johansson
    Short, Swedish, Web Developer

    Buttons and Dog Tags with your custom design:
    FatStatement.com

  19. #19
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Dubai
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi M. Johansson

    One of the words in ur post gave me a hint. the word was "SERVER"
    i was trying on a local-non-websvr pc
    and it wasnt working

    i tried on a websvr, its working perfect!

    but, once again... u mean to say, any1 who wishes to publish his/hre content must have a websvr installed???

    isnt that asking too much having so many PC's as websvr's

    Johansson, Platinum, anam, any say??

  20. #20
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Dubai
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    and, once again..
    dont u think, when a person goes to publish his/her content via frontpage or word, the design of the header and footer would be retrieved... am i not right?
    and, if it is retrieved, and these ppl again try to fool around with it, does that mean the main header.htm, footer.htm will be changed?

    will it chage if we mark those pages as read-only "AGAIN assuming that those ppl will not change the attributes"

  21. #21
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, i did mention earlier you'd have to upload it first

    But yeah, it will have to be on a webserver... like all internet sites are

    But you only need one webserver, and everyone uploads to it

  22. #22
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should only really need one server. Every department should be able to upload content or access the server. Thus allowing one computer to process the ssi.

    In order to use ssi, you will need a some software. Ie www.apache.org or iis which maybe already installed on your pc if it's a pc that is otherwise use apache for linux.

    Any way goto this article http://www.webmasterbase.com/article/546 it will tell you how to setup a server. Any way any computer on the network will be able to view the web page by going to its ip address.

    you can find out your computers ip by going to

    the run command in windows and typeing

    ipconfig

    then type that or localhost if on the same computer which will display the contents from C:\Program Files\Apache Group\Apache2 or C:\Inetpub\wwwroot\l in the case of iis.

  23. #23
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Dubai
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    platinum and andrew2000, thanx for replies again

    my eyes scraped through the "upload word" sorry about that!
    coming back to the discussion.
    Yes, We have a websvr, --WINNT-IIS with all service packs.
    websvr is working great!

    platinum, u said that 1websvr and every1 uploads to it.
    agreed, i have one websvr, and when u say evevyr1 uploads to that svr,... my question arises, i cant let people work on this server.
    We give them a template file to work on their PC's (all have win2k pro) ... which is like the index.shtml (obviosuly in a different file name corresponding to their deptX). In order to achieve this, they must have websvr to view the shtml file..
    am i rite? else they can shift and design the center content wihtout looking at the header and footer.

    yes, andrew2000.. thanx again. thats already done!
    in order for the department to upload their content, they must've completed the look on their pc's until they come up to the web guy and asks him to put it on the server


    thanx again
    advice!!!

  24. #24
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should be able to set up some kind of FTP script w/a password to make it easy for people to upload...

    They can edit and change the .shtml file as much as they want on any machine they like, it just comes down to them adding in the two include tags at the top and bottom and then uploading to the server

    In the meantime they'll be able to view the file, it's just the header and footer wont be there

  25. #25
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well seeing as you have asp installed on your webserver why dont you allow users to upload to the server.

    directory browsing can be disabled, and besides that they wont be working on the server as they work on there own workstation and upload to the central server which can then add templates.

    Also iis has a feature to include headers and footers. so all it would mean is making them pages dynamic to choose which headers are prcessed for each department and if each department has its own subdirectory each folder can be customised to add different headers. The only thing is if people need documents edited so wouldn't it be easier to use a cms with user authentication?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •