Skip to main content
Inspiring
January 28, 2017
Answered

Help Needed Updating Pages with Library Items

  • January 28, 2017
  • 18 replies
  • 4208 views

I'd like help learning if I can do something to make my efforts at working with web pages that have library items much easier and more productive. I have two initial concerns.

1.  To update a several pages at once, I go from Tools > Library > Update Pages. The Update Pages window that open has two filtering options: One is the "Look in" menu, which has only two options, "Entire site" and "Files that use." There's no drop-down option to select one of numerous directories in a site. Therefore, my entire site gets examined regarding whether pages having library items need to be updated. Isn't there a way to make that so-called "filter" perform as a genuine "filter"? Might developers plan to improve that limitation?

2.  That same "Update Pages" window cannot be made wider or taller (on MacBook Pro running macOS Sierra)! I have numerous files in directories that cannot be seen until I scroll down to locate them. Many file names have numerous characters that prevent the entire file name from being viewed in that window without scrolling to the right. I hate having to scroll up and down, left and right, to locate files in that short and narrow window. Is there hopefully a way to enlarge that window? Might developers see the need to improve on that limitation?

I hope to receive encouraging news about items 1 and 2. My upcoming inquiries about updating pages with library items will depend on the answers I receive from these two questions.

BTW: Where on this forum do I note that I'd like to be emailed when an answer is made? I can't find that preference option. Thanks, in advance.

    This topic has been closed for replies.
    Correct answer BenPleysier
    /Applications/XAMPP/xamppfiles/htdocs

    I am not familiar with the Mac. On my system I have similar to

    C:\Applications\XAMPP\htdocs\[root directory of site]\

    For the local Web URL I have similar to

    http://localhost/[root directory of site]/

    18 replies

    wcampAuthor
    Inspiring
    February 1, 2017

    I've created the TEST site and put the files of the .php page that I created last week inside it.

    I've then set up the site and the server site.

    Please check my first five screen shots and advise if all are as they should be. If they aren't, what do I do next?

    Then suggest what has caused the error message shown in screen shot #6. Thanks very much, Nancy.

    Warren

    Shot #1 shows my new TEST site in a list of all my other sites. . .

    Shot #2 shows the files with the .php file that I've put inside the new TEST root directory. . .

    Shot #3 shows the new server that I set up for the TEST directory. . .

    Shot #4 shows the setup screen for the Testing Server. The data inside the "Server Folder" field is this:

    /Applications/XAMPP/xamppfiles/htdocs/TEST/

    Shot #5 shows the two new servers that I set up: for the site and for the testing server. . .

    Shot #6 shows the error message I get after attempting to upload the new TEST site. . .

    Nancy OShea
    Community Expert
    Community Expert
    February 1, 2017

    Did you create a TEST folder on your server yet?

    And why are you still putting your site folder into xampfiles? 

    Put it directly into htdocs.

         Applications\xampp\htdocs\TEST\

    Nancy

    Nancy O'Shea— Product User & Community Expert
    wcampAuthor
    Inspiring
    February 1, 2017

    Nancy:

    I'm feeling the apprehension and fear that I expressed previously about not knowing anything about the .php world.

    I have more than 200 websites and web pages in my "wcampwebdev" directory. I'm afraid of messing up everything as a result of making an ignorant move.

    Are you telling me to *literally* move the entire "wcampwebdev" site folder into the above-referenced "htdocs" folder of my Applications folder? Or do I simply copy paste, thereby retaining all of my sites and pages in that folder?

    And, where and when do I upload this newly "moved" directory and its contents, now and in the future? I haven't a clue what's involved with this undertaking.

    Kindly be clear in the step-by-step process you're directing me to do.

    Thank you very much.

    Warren

    Nancy OShea
    Community Expert
    Community Expert
    February 1, 2017

    Given your present fear of making a wrong move, I suggest you create a TEST site and put that folder on your testing server so you can see how this all works first.  Once you understand it, you'll be less fearful of moving your production folder into XAMPP.  

    This will have no effect on your sites except that you'll need to adjust the local file path in your site  settings from old location to Applications\xampp\htdocs\.  Everything else will function exactly as before. 

    When you save files, they will automatically save to your site folder inside XAMPP.

    When you upload files, they will go to your remote server.

    Nancy

    Nancy O'Shea— Product User & Community Expert
    wcampAuthor
    Inspiring
    February 1, 2017

    Hello, Nancy and Bob:

    In the Site Setup window for the Testing Server, the Server Folder data was derived by clicking the Browse Folder icon. Here's what has been entered (which you cannot fully see in the narrow field for that entry):

    /Applications/XAMPP/xamppfiles/htdocs/

    My screen shot shows that my page's folder — wcampwebdev — is NOT included in the "htdocs" folder of XAMPP.

    What must I do to get that folder to be recognized and included in the "htdocs" folder?

    Warren

    Nancy OShea
    Community Expert
    Community Expert
    February 1, 2017

    No xamppfiles required.  Move your site folder into htdocs.

    Appplications\xampp\htdocs\wcampwebdev\

    Nancy

    Nancy O'Shea— Product User & Community Expert
    wcampAuthor
    Inspiring
    January 30, 2017

    I'm hoping that Nancy, or someone else in the know, will advise me of what specific entries I need to make in the fields of the server setup windows, as shown in my screen shots.

    Alas, my TEST page isn't getting recognized.     (  ; - (

    http://localhost/wcampwebdev/animusic/indexPage1TEST.php/

    I thank you in advance.

    Warren

    Nancy OShea
    Community Expert
    Community Expert
    January 30, 2017

    What Ben said is correct.

    C:\Applications\XAMPP\htdocs\local site folder\

    URL: http://localhost/local site folder/

    Defining a local server is applied to the site folder; not a specific web page.

    Can we assume your local site folder is wcampwebdev?  And it's physically located inside htdocs folder in xampp?

    Nancy

    Nancy O'Shea— Product User & Community Expert
    wcampAuthor
    Inspiring
    January 29, 2017

    Nancy, hi:

    Regarding setting up the testing server, I'm obviously not understanding all that you're suggesting with your screen shots. I'll show a screen shot of my latest setup window. Please advise what I've entered incorrectly. Thanks.

    For the "Server Folder" field, I've browsed to this pathway, which I entered but is too wide to see it in its entirety in the field window:

    /Applications/XAMPP/xamppfiles/htdocs

    For the "Web URL" field, I entered this:

    http://localhost/wcampwebdev/animusic/indexPage1TEST.php/

    . . . but it's not correct because when I try to open it I get an "Object Not Found" error message.

    Would you please tell me what I need to enter into all the requisite fields? Thank you.

    And regarding the two error messages, I cannot figure out what causes them; I've spent a solid hour cutting/pasting/checking, all for nought. Please help me correct both errors. The screen shot below reveals the markup that I entered on lines 177–178, which I believe I got from your "SSI with PHP" site. If I've mis-entered that snippet, please advise. Thanks.

    Warren

    ________

    BenPleysier
    Community Expert
    BenPleysierCommunity ExpertCorrect answer
    Community Expert
    January 29, 2017
    /Applications/XAMPP/xamppfiles/htdocs

    I am not familiar with the Mac. On my system I have similar to

    C:\Applications\XAMPP\htdocs\[root directory of site]\

    For the local Web URL I have similar to

    http://localhost/[root directory of site]/
    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    wcampAuthor
    Inspiring
    January 28, 2017

    Hello, Nancy:

    I created a TEST page of  site, following the steps shown on your "SSI with PHP" page. I believe that I've made he appropriate entries, however, although DW confirmed to new site setup for the XAMMP server, the new .php page opens without the footer code fragment that I created as an SSI.

    Would you please look at my setup screen shot and advise of any error(s)?

    Here's my TEST page to examine its markup:

    Collection of ANIMUSIC's Best Computer Animation Video Albums | Page 1 of 3

    I'm eager to learn how to make this work. Thanks for your suggestion and assistance, Nancy.

    Nancy OShea
    Community Expert
    Community Expert
    January 29, 2017

    See my screenshots below for setting up a local testing server.

    I'm using wamp server and the default web folder is www.  In your case, it's xampp and htdocs.

    Servers:  Click the plus sign.

    Basic Tab:  Connect using local/Network (not FTP).  Web URL is your localhost *geek speak for your testing server*.

    Advanced Tab:  Server Model is PHP/MySQL

    Final screen:

    Nancy

    Nancy O'Shea— Product User & Community Expert
    wcampAuthor
    Inspiring
    January 28, 2017

    Nancy, thanks! I appreciate your very prompt e-reply.

    I've read your "SSI with PHP" page. While it suggests that the three-step process is easy, I fear that it will be trying for me because I've never used SSI or PHP, and because I've been using library items for approximately ten years, and because my sites have numerous pages. I'm fearful that I'll mess up one or more pages or sites.

    Might there be a way that you could, to some degree, hold my hand as I go through the first attempt, perhaps on one of my smaller, less visited sites? I'll give it a try if I could e-communicate with you as needed. What might you suggest?

    Nancy OShea
    Community Expert
    Community Expert
    January 28, 2017

    It's very simple.  PHP is nothing to be afraid of.  Give it a try on a few test pages.  Upload to server to test results.  Post back to the DW forum if you have any questions.

    Nancy

    Nancy O'Shea— Product User & Community Expert
    Nancy OShea
    Community Expert
    Community Expert
    January 28, 2017

    Not meaning to avoid your question but why don't you switch to server-side includes?    Unlike LIs, SSIs can be inserted anywhere, they do not require you to update & re-publish your entire site and they are not proprietary to DW.  

    With SSIs, you edit one file & upload it to your server.  Done.   Your server takes care of the rest. Even on small sites, this is a huge time saver.   Once you start using Server-Side Includes, you'll never ever want to use Library Items again.

    Alt-Web Design & Publishing: Server-Side Includes with PHP

    Nancy

    Nancy O'Shea— Product User & Community Expert