Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Page Publisher:
Change default directory for Add Page Browse

 

 


JeffKelso
New User

Nov 23, 2005, 8:36 AM

Post #1 of 4 (1587 views)
Shortcut
Change default directory for Add Page Browse Can't Post

When I am adding new pages and hit the Browse button, I am given a pop up box to select the page. My problem is that by default it opens in the PP directory and I always have to hit the "Up to higher level directory". Why doesn't Page Publisher default to the root directory of the site? I doubt if I ever would want to add a page in the PP directory! Is there anyway to change the default directory?


ross
Staff / Moderator


Nov 23, 2005, 3:19 PM

Post #2 of 4 (1575 views)
Shortcut
Re: [JeffKelso] Change default directory for Add Page Browse [In reply to] Can't Post

Hi Jeff.

Thanks for posting!

I did some research into this for you and I think you’ll be able to change the default folder for the browse buttons. It’s going to involve making a small change to on of you interface templates which is a little tricky.

If you are ok with this, take a look at your _interface.html template and find the line that reads:


Code
openURL = "$cgiurl$" + "?browse_" + browse_type + "=1&field_name=" + field_name;


It will be on line 47. Change that to read:


Code
openURL = "$cgiurl$" + "?browse_" + browse_type + "=1&field_name=" + field_name + '&dir=C:/path/to/folder';


You’ll need to change the /path/to/folder part but make sure not to change anything else Smile. All the quotes and semicolons need to be there.

Give it a shot and let me know what you think. Remember to keep a backup of the file handy just incase.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




JeffKelso
New User

Nov 23, 2005, 3:30 PM

Post #3 of 4 (1574 views)
Shortcut
Re: [ross] Change default directory for Add Page Browse [In reply to] Can't Post

It worked! I did have to add a closing "/" to the path.

Thanks.

BTW, why do you default to a directory that no webmaster in his/her right mind would want to have users modify files? Why not default to the base directory or, better yet, have it has another option in the Setup Options?


ross
Staff / Moderator


Nov 24, 2005, 10:19 AM

Post #4 of 4 (1546 views)
Shortcut
Re: [JeffKelso] Change default directory for Add Page Browse [In reply to] Can't Post

Hi Jeff.

Thanks for the update!

I am glad to hear that worked for you. The default path is actually set to be where ever the pp.cgi script is. I think the reason for that is because that way, it will always pop up and let you start browsing through the server. If there was the option of where to default it to, we could start running into trouble with broken paths which could end up being more confusing.

It does seem like something an Advanced User might like to have the option of though, so I am actually going to submit this as a feature request. I don’t know for sure if it will be in a future version or not, but we do have this work around in the meantime.

Let me know if you need anymore details Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4