Discussion:
editing viewlsts.aspx under LAYOUTS
(too old to reply)
Jay
2007-01-03 03:09:01 UTC
Permalink
I am new to SharePoint 2007 and currently learning basic customizations.

Upon modifying the default.master using SharePoint Designer from a new
"blank" template site not all links properly reflected my change to the
default.master. Only new Lists that I created reflected the change. The
changes I made where simple stuff like icons.

Those links that didn't work where referencing "_layouts/viewlsts.aspx"

So I edited the viewlsts.aspx file located in the standard microsoft shared
directory:
C:\Program Files\Common Files\Microsoft Shared\web server
extensions\12\TEMPLATE\LAYOUTS to reflect my default.master file.

Probably the wrong thing to have done.

In the viewlsts.aspx file I changed only the masterpageurl reference from
"_layouts/application.master"
to my customized default.master "~masterurl/default.master" using Sharepoint
Designer. In doing so it now displays the errors page when I click on any
link in my blank template site that references viewlsts.aspx. I then reset it
back to its original value. Still errors off.
Tried rebooting the server to restart the web app and still errors off.

Is there any way short of reinstalling Sharepoint to reset a standard aspx
file in the LAYOUTS directory?
--
Thanks
Rags Iyer
2007-01-03 03:53:01 UTC
Permalink
You can try this with a test site first .Create another blank site and i
assume it shd give teh same error with viewlist.aspx reference . Now u can go
to sharepoint settings page of the site and click "Reset to site definition "
link in site settings page .

This actually resets any change back to basic and that might help in your
case.If you havent done much changes in your site ,then u can do this in
existing site itself.This will reset the whole site to the basic template .

Rags Iyer
http://metahat.blogspot.com/
Post by Jay
I am new to SharePoint 2007 and currently learning basic customizations.
Upon modifying the default.master using SharePoint Designer from a new
"blank" template site not all links properly reflected my change to the
default.master. Only new Lists that I created reflected the change. The
changes I made where simple stuff like icons.
Those links that didn't work where referencing "_layouts/viewlsts.aspx"
So I edited the viewlsts.aspx file located in the standard microsoft shared
C:\Program Files\Common Files\Microsoft Shared\web server
extensions\12\TEMPLATE\LAYOUTS to reflect my default.master file.
Probably the wrong thing to have done.
In the viewlsts.aspx file I changed only the masterpageurl reference from
"_layouts/application.master"
to my customized default.master "~masterurl/default.master" using Sharepoint
Designer. In doing so it now displays the errors page when I click on any
link in my blank template site that references viewlsts.aspx. I then reset it
back to its original value. Still errors off.
Tried rebooting the server to restart the web app and still errors off.
Is there any way short of reinstalling Sharepoint to reset a standard aspx
file in the LAYOUTS directory?
--
Thanks
Jay
2007-01-03 05:24:00 UTC
Permalink
Yes, your right. If I create any other new template site, or view any
existing template sites, the same problem exist.

The "reset to site definition" is available as an option only if the file
you want to reset is visible on the Folder List panel in SharePoint Designer
and probably also if you used Designer to edit the file.

The files stored in the LAYOUTS don't show up in the Folder List Panel. So I
actually right clicked the file from Explorer and chose "Edit in SharePoint
Designer" which open the file up in Designer within my existing site. Also
right clicking the file in code view has no option available for "reset to
site definition".

I also noticed that the viewlsts.aspx will not display in Design view. I get
the following error.

" The master page file '_layouts/application.master' cannot be loaded.
Correct the problem in code view"

The application.master file exist, has not been modified and nor has
anything else in the LAYOUTS dir. Other files like viewnew.aspx have the
problem.
--
Thanks for your feedback.
Post by Rags Iyer
You can try this with a test site first .Create another blank site and i
assume it shd give teh same error with viewlist.aspx reference . Now u can go
to sharepoint settings page of the site and click "Reset to site definition "
link in site settings page .
This actually resets any change back to basic and that might help in your
case.If you havent done much changes in your site ,then u can do this in
existing site itself.This will reset the whole site to the basic template .
Rags Iyer
http://metahat.blogspot.com/
Post by Jay
I am new to SharePoint 2007 and currently learning basic customizations.
Upon modifying the default.master using SharePoint Designer from a new
"blank" template site not all links properly reflected my change to the
default.master. Only new Lists that I created reflected the change. The
changes I made where simple stuff like icons.
Those links that didn't work where referencing "_layouts/viewlsts.aspx"
So I edited the viewlsts.aspx file located in the standard microsoft shared
C:\Program Files\Common Files\Microsoft Shared\web server
extensions\12\TEMPLATE\LAYOUTS to reflect my default.master file.
Probably the wrong thing to have done.
In the viewlsts.aspx file I changed only the masterpageurl reference from
"_layouts/application.master"
to my customized default.master "~masterurl/default.master" using Sharepoint
Designer. In doing so it now displays the errors page when I click on any
link in my blank template site that references viewlsts.aspx. I then reset it
back to its original value. Still errors off.
Tried rebooting the server to restart the web app and still errors off.
Is there any way short of reinstalling Sharepoint to reset a standard aspx
file in the LAYOUTS directory?
--
Thanks
Jay
2007-01-03 05:38:00 UTC
Permalink
I was unable to locate the option "Reset to site definition" for the entire
site...not just a single file. Is this option in SharePoint Designer or in
the Central Admin?
--
Thanks
Post by Rags Iyer
You can try this with a test site first .Create another blank site and i
assume it shd give teh same error with viewlist.aspx reference . Now u can go
to sharepoint settings page of the site and click "Reset to site definition "
link in site settings page .
This actually resets any change back to basic and that might help in your
case.If you havent done much changes in your site ,then u can do this in
existing site itself.This will reset the whole site to the basic template .
Rags Iyer
http://metahat.blogspot.com/
Post by Jay
I am new to SharePoint 2007 and currently learning basic customizations.
Upon modifying the default.master using SharePoint Designer from a new
"blank" template site not all links properly reflected my change to the
default.master. Only new Lists that I created reflected the change. The
changes I made where simple stuff like icons.
Those links that didn't work where referencing "_layouts/viewlsts.aspx"
So I edited the viewlsts.aspx file located in the standard microsoft shared
C:\Program Files\Common Files\Microsoft Shared\web server
extensions\12\TEMPLATE\LAYOUTS to reflect my default.master file.
Probably the wrong thing to have done.
In the viewlsts.aspx file I changed only the masterpageurl reference from
"_layouts/application.master"
to my customized default.master "~masterurl/default.master" using Sharepoint
Designer. In doing so it now displays the errors page when I click on any
link in my blank template site that references viewlsts.aspx. I then reset it
back to its original value. Still errors off.
Tried rebooting the server to restart the web app and still errors off.
Is there any way short of reinstalling Sharepoint to reset a standard aspx
file in the LAYOUTS directory?
--
Thanks
Jay
2007-01-03 05:53:04 UTC
Permalink
I finally located the "Reset to site definition " for the entire site.
Executed this and it reset the minor customizations correctly but it had no
affect on the viewlsts.aspx file in the LAYOUTS dir.
--
Thanks
Post by Rags Iyer
You can try this with a test site first .Create another blank site and i
assume it shd give teh same error with viewlist.aspx reference . Now u can go
to sharepoint settings page of the site and click "Reset to site definition "
link in site settings page .
This actually resets any change back to basic and that might help in your
case.If you havent done much changes in your site ,then u can do this in
existing site itself.This will reset the whole site to the basic template .
Rags Iyer
http://metahat.blogspot.com/
Post by Jay
I am new to SharePoint 2007 and currently learning basic customizations.
Upon modifying the default.master using SharePoint Designer from a new
"blank" template site not all links properly reflected my change to the
default.master. Only new Lists that I created reflected the change. The
changes I made where simple stuff like icons.
Those links that didn't work where referencing "_layouts/viewlsts.aspx"
So I edited the viewlsts.aspx file located in the standard microsoft shared
C:\Program Files\Common Files\Microsoft Shared\web server
extensions\12\TEMPLATE\LAYOUTS to reflect my default.master file.
Probably the wrong thing to have done.
In the viewlsts.aspx file I changed only the masterpageurl reference from
"_layouts/application.master"
to my customized default.master "~masterurl/default.master" using Sharepoint
Designer. In doing so it now displays the errors page when I click on any
link in my blank template site that references viewlsts.aspx. I then reset it
back to its original value. Still errors off.
Tried rebooting the server to restart the web app and still errors off.
Is there any way short of reinstalling Sharepoint to reset a standard aspx
file in the LAYOUTS directory?
--
Thanks
Loading...