Results 1 to 2 of 2
  1. #1
    Newbie
    Join Date
    October 6th, 2006
    Posts
    1
    Problem with creating folders based on field name
    went through all of the tutorials, but still can't get this to work. what i need to do is pretty simple actually. i need WM to create folders in a subdirectory based upon a field in my database, then create an "index" page in each of those folders. not an index page that lists other pages, but an "index" page that is the default page for that folder. in effect, these index pages would be "details" pages i suppose.

    for example. i have fields named 045, 594, 149, 495, etc in the database. i need to have WM create those folders and create an "index" page, named as index.php in each of those numbered folders with other data in the database creating each individual /000/index.php page. so my folder/file structure would be...

    http://www.whatever.com/blah/045/index.php
    http://www.whatever.com/blah/594/index.php
    http://www.whatever.com/blah/149/index.php
    http://www.whatever.com/blah/495/index.php

    so the "index.php" page isn't an index page per se, it's actually a "details" page, named as index.php.

    i'm pretty sure there's a simple trick to this.

    thanks in advance. love the program!

  2. #2
    ABW Veteran Mr. Sal's Avatar
    Join Date
    January 18th, 2005
    Posts
    6,795
    Quote Originally Posted by romulus
    went through all of the tutorials, but still can't get this to work. what i need to do is pretty simple actually. i need WM to create folders in a subdirectory based upon a field in my database, then create an "index" page in each of those folders. not an index page that lists other pages, but an "index" page that is the default page for that folder. in effect, these index pages would be "details" pages i suppose.

    for example. i have fields named 045, 594, 149, 495, etc in the database. i need to have WM create those folders and create an "index" page, named as index.php in each of those numbered folders with other data in the database creating each individual /000/index.php page. so my folder/file structure would be...

    http://www.whatever.com/blah/045/index.php
    http://www.whatever.com/blah/594/index.php
    http://www.whatever.com/blah/149/index.php
    http://www.whatever.com/blah/495/index.php

    so the "index.php" page isn't an index page per se, it's actually a "details" page, named as index.php.

    i'm pretty sure there's a simple trick to this.

    thanks in advance. love the program!
    Have you tried the Box: Make new Index page when
    Attached Images Attached Images
    ...

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: September 1st, 2008, 04:43 PM
  2. Altered name based on contents of field and RFC 2396 (URI Generic Syntax) - % escape
    By Pierre (aka Terdef) in forum WebMerge (Fourthworld.com)
    Replies: 10
    Last Post: April 1st, 2008, 09:04 PM
  3. Problem with create index when value in field changes
    By admad1 in forum WebMerge (Fourthworld.com)
    Replies: 5
    Last Post: February 21st, 2005, 01:22 AM
  4. allposters - creating category folders
    By richardeward in forum Cusimano.com Scripts
    Replies: 7
    Last Post: February 19th, 2005, 02:13 AM
  5. Name based on contents field - multiple index pages
    By T.N.T. in forum WebMerge (Fourthworld.com)
    Replies: 10
    Last Post: May 24th, 2004, 04:50 PM

Posting Permissions

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