SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2009
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to automate creating thousands of landing pages based on template

    Fist of, I'm not a programmer and I might be using some of these terms incorrectly.

    My goal is to have thousands of different landing pages on an asp.net site using Web Client Software Factory architecture. We're using one template and each page will be populated with specific product data. I'd like the urls to look something like this: domain.com/product-category/productID.

    How can I automate this? Any tips to point me in the right direction is appreciated.

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,627
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    That sounds like a product catalog -- pretty basic database-driven website example. Just build a database with product IDs, build templates so the product data can be loaded and displayed and publish it.

    You really don't want to use the web client software factory for anything, especially anything this trivial.

  3. #3
    SitePoint Member
    Join Date
    Dec 2011
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That means if if build a template and join database with Product id, then i would get the Product id on the URL?Right?

  4. #4
    SitePoint Member
    Join Date
    Jun 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use MVC. Then in your global asax add the following:
    routes.MapRoute("productRoute", "{category}/{productID}", new { controller = "YOUR_PRODUCT_CONTROLLER", action = "YOUR_PRODUCT_DETAILS_ACTION" });


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
  •