#1
  1. No Profile Picture
    Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2004
    Posts
    2,989
    Rep Power
    375

    Website structure


    in my company we create landing pages (where users come to fill in their name, email etc).

    the person before me had for each landing page, a folder with:
    images - all images needed
    landingpage.php - user inputs data
    thankyoupage.php - process user input

    I want to change this so that code is re-used so i am thinking

    Code:
    root
     include_php   (some php files can be outside the public folder)
     public folder
      - include
          js 
          css
          php (some php files used by JS needs to be publicly    
                    accessible) 
          images
    and then in each landing page will just need a landingpage.php, images, custom css.

    but what i was thinking is in the public folder called images i could have a folder there so ALL images there instead of having them in each landing page folder. similarly all CSS (even custom one can go in css folder separated by name..

    so which approach is best first or second or a different one?
    Last edited by Kravvitz; March 12th, 2013 at 02:00 PM. Reason: fixed the code tags
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    19
    Rep Power
    0

    Arrow


    I think first approach is the best for you but arrange it as per your needs and also use new one approach if that's more suitable than these two.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    2
    Rep Power
    0
    The structure of website is most important part of a design a website. Without good structure website look dull.
  6. #4
  7. No Profile Picture
    Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    45
    Rep Power
    0
    The first approach is quite good for your website because if your website is looking good with relevant information and attractive designs then the person will not see links. So you can go through your first approach.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Location
    India
    Posts
    24
    Rep Power
    0
    The structure of website is very necessary this make website more attracting and user friendly for good website structure I think first approach is best suit to your need.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    9
    Rep Power
    0
    There are many factors affecting to make perfect website structure like navigation with shallow structure,a perfect content,the way you present the information and the most important thing is the design of website.
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    11
    Rep Power
    0
    Good thinking for website structure it's base for website. I also recommend the first approach.
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2010
    Posts
    2
    Rep Power
    0

    Talking website structure


    The website structure depends on what kind of website you want to create, a business/ecommerce website, a single page website or animal website etc.
  16. #9
  17. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Location
    Bangalore
    Posts
    3
    Rep Power
    0
    At any cost build a website with Horizontal structure only
  18. #10
  19. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,127
    Rep Power
    4304
    Originally Posted by urstrinath
    At any cost build a website with Horizontal structure only
    Welcome to DevShed Forums, urstrinath.

    Would you mind explaining why you recommend that?
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).
  20. #11
  21. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Location
    Bangalore
    Posts
    3
    Rep Power
    0
    i am happy to back in this forum & Thanks for the Welcome kravvitz..
    By creating your website in a Horizontal manner makes easy to Google to crawl your data...
  22. #12
  23. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,127
    Rep Power
    4304
    Originally Posted by urstrinath
    By creating your website in a Horizontal manner makes easy to Google to crawl your data...
    From what I've heard, Google doesn't have problems with deep linking, as long as there are enough links between pages.
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).

IMN logo majestic logo threadwatch logo seochat tools logo