One thing that has always annoyed my about editing sites from the admin UI is that when I am choosing to edit a specific site, and I choose the category then click on "EDIT" to make alts to the site (like move it to a new category) the "EDIT" hot link does not open a new window for that site, the "EDIT" link actually takes me away from the
sites_main.php, edit sites page.
What I am customizing here is to be able to edit a number of sites in one category and have the "EDIT" button open a new target window with the site's edit data. Then when I am done editing that site, I just close the browser window and my original category's site list is still open.
I know this is really simple, but its a customization you just have to do if you find yourself editing multiple sites from the Admin tool. The other way to do thes multi site edits is by using something like phpMyAdmin.
Here is the customization:
In the file "admin/sites_main.php"...
Look for this line around line #441:
| Code: |
echo "<a href=\"edit_site.php?" . session_name() . "=" . session_id();
|
and change it to:
| Code: |
echo "<a target=\"blank\" href=\"edit_site.php?" . session_name() . "=" . session_id();
|
What you are telling admin/sites_main.php to do is when you click on the link for EDIT, you want to open a new window so that you can come back to your original category editing page by adding:
You can also add a "close this window" link to use when you are done editing your site in the new window like this:
In the file "admin/edit_site.php"...
Look for this line around line #241:
| Code: |
?> <br>- Site Has been updated.<?
|
and change it to:
| Code: |
echo "<a target=\"blank\" href=\"edit_site.php?" . session_name() . "=" . session_id();
|
so again what you are doing here is adding a "close this window" hotlink using this javascript...
| Code: |
<A href="javascript: self.close ()">Close this Window</A>
|