Wednesday, May 6, 2009

How to create your own local path

Hi

In lots of MOSS development we are using custom aspx/html or just office templates and we need to save them in the local server file system. We can use the layouts folder (/_layouts/...) or create our own path.

To do so create a feature.xml and element.xml, in the element file add the Module tab, in the SetupPath attribute write the file system folder path (like FEATRUES\mosswat), and in the Url attribute write the new url (like _mosswat/templates).



Run the stsadm segment.

Now enter in the explorer the following: http://WebApp/sites/SiteCollection/_mosswat/templates/filename.docx


Tuesday, May 5, 2009

MOSS & AJAX (Framework 3.5)

Hi,

More and more sites are using AJAX and it is not only "nice to have" feature but a mandatory one.

We can also use AJAX in MOSS and there is a lot of example how to on the Internet, but before we start we have to add some elements in MOSS web.config.

A few posts ago Michael wrote on how to update web config, so i added the XML file in here so u can copy it to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\config and run the stsadm commend

Warnings:
  1. Before u run it backup your web.config and your DB and do not delete the element by your self only with the remove file.
  2. Don't copy the remove and the add together to the Config directory only the one you want to run.
  3. Very important don't change the guid before you are doing remove!!!