STS Customization Help

STS Customization Help

Post by Jesse L. Charbneau je » Sat, 05 Apr 2003 01:26:55



Hi All,
  Hope this is the right place for these questions.  Thanks for any
assistance in advance.

These questions are mainly focused on the Discussion Lists'

1.) I would like to remove the hyperlinks from the ModifiedBy (Editor)
and
    CreatedBy (Author) fields, so that when they are displayed, the
user cannot
    click on them.  It really isn't necessary for our target users to
access
    information about each other.  At least, not at this stage.
Parentheses
    denote the fields name in ONET.XML

2.) I would also like to add a "RE:" to any reply messages.  Does
anyone know
    how to accomplish this?

Thanks again,
Jess

 
 
 

STS Customization Help

Post by Jim Dunca » Sat, 05 Apr 2003 04:54:46


Jesse,

1) in the SCHEMA.XML for the discussions list, find <Field Name="Author"/>
and replace with <LookupColumn Name="Author"/> in all the views and forms.
Do the same for <Field Name="Editor"/>

2) in OWS.JS, search for the ReplyItem function and replace the following
line
    url += "&Subject=" + subject;
with
    if (subject.substring(0,1) <> "RE")
        {
        url += "&Subject=RE%3a%20" + subject;
        }
    else
        {
        url += "&Subject=" + subject;
        }

Happy Coding,

--
Jim Duncan
IT Manager - Collutions, Inc.
http://www.collutions.com
(Please 'reply group' so all can benefit:
I NEVER check my email)
--------------------------------------------------
STS FAQ: http://www.collutions.com/Lists/FAQ,
courtesy Mike Walsh - Helsinki, Finland
--------------------------------------------------
Supercool SharePoint stuff at
http://www.sharepointu.com
--------------------------------------------------
TinyURL.com
Making long URLs postable!
http://tinyurl.com



Quote:> Hi All,
>   Hope this is the right place for these questions.  Thanks for any
> assistance in advance.

> These questions are mainly focused on the Discussion Lists'

> 1.) I would like to remove the hyperlinks from the ModifiedBy (Editor)
> and
>     CreatedBy (Author) fields, so that when they are displayed, the
> user cannot
>     click on them.  It really isn't necessary for our target users to
> access
>     information about each other.  At least, not at this stage.
> Parentheses
>     denote the fields name in ONET.XML

> 2.) I would also like to add a "RE:" to any reply messages.  Does
> anyone know
>     how to accomplish this?

> Thanks again,
> Jess


 
 
 

STS Customization Help

Post by Jim Dunca » Sat, 05 Apr 2003 07:30:06


oops, forgot my syntax, should use != instead of <>:

if (subject.substring(0,1) != "RE")
         {
         url += "&Subject=RE%3a%20" + subject;
         }
     else
         {
         url += "&Subject=" + subject;
         }


> Jesse,

> 1) in the SCHEMA.XML for the discussions list, find <Field Name="Author"/>
> and replace with <LookupColumn Name="Author"/> in all the views and forms.
> Do the same for <Field Name="Editor"/>

> 2) in OWS.JS, search for the ReplyItem function and replace the following
> line
>     url += "&Subject=" + subject;
> with
>     if (subject.substring(0,1) <> "RE")
>         {
>         url += "&Subject=RE%3a%20" + subject;
>         }
>     else
>         {
>         url += "&Subject=" + subject;
>         }

> Happy Coding,

> --
> Jim Duncan
> IT Manager - Collutions, Inc.
> http://www.collutions.com
> (Please 'reply group' so all can benefit:
> I NEVER check my email)
> --------------------------------------------------
> STS FAQ: http://www.collutions.com/Lists/FAQ,
> courtesy Mike Walsh - Helsinki, Finland
> --------------------------------------------------
> Supercool SharePoint stuff at
> http://www.sharepointu.com
> --------------------------------------------------
> TinyURL.com
> Making long URLs postable!
> http://tinyurl.com



> > Hi All,
> >   Hope this is the right place for these questions.  Thanks for any
> > assistance in advance.

> > These questions are mainly focused on the Discussion Lists'

> > 1.) I would like to remove the hyperlinks from the ModifiedBy (Editor)
> > and
> >     CreatedBy (Author) fields, so that when they are displayed, the
> > user cannot
> >     click on them.  It really isn't necessary for our target users to
> > access
> >     information about each other.  At least, not at this stage.
> > Parentheses
> >     denote the fields name in ONET.XML

> > 2.) I would also like to add a "RE:" to any reply messages.  Does
> > anyone know
> >     how to accomplish this?

> > Thanks again,
> > Jess

 
 
 

STS Customization Help

Post by Jesse L. Charbneau je » Sat, 05 Apr 2003 23:49:10


Hi Jim,
  Thanks a million.  I have the Javascript working but had to use
subject.substring(0,2) to check for the "RE" already being present,
but the code and the direction sure helped a lot.  I am still having
problems with the first portion though.  Could you give a little more
detail on where this needs to be done.  I have tried putting it in the
discuss\schema.xml file but have not had a lot of luck.  I thought
that IIS may need to be restarted but that didn't help either.  Thanks
for any more insight.

Jess


> oops, forgot my syntax, should use != instead of <>:

> if (subject.substring(0,1) != "RE")
>          {
>          url += "&Subject=RE%3a%20" + subject;
>          }
>      else
>          {
>          url += "&Subject=" + subject;
>          }



> > Jesse,

> > 1) in the SCHEMA.XML for the discussions list, find <Field Name="Author"/>
> > and replace with <LookupColumn Name="Author"/> in all the views and forms.
> > Do the same for <Field Name="Editor"/>

> > 2) in OWS.JS, search for the ReplyItem function and replace the following
> > line
> >     url += "&Subject=" + subject;
> > with
> >     if (subject.substring(0,1) <> "RE")
> >         {
> >         url += "&Subject=RE%3a%20" + subject;
> >         }
> >     else
> >         {
> >         url += "&Subject=" + subject;
> >         }

> > Happy Coding,

> > --
> > Jim Duncan
> > IT Manager - Collutions, Inc.
> > http://www.collutions.com
> > (Please 'reply group' so all can benefit:
> > I NEVER check my email)
> > --------------------------------------------------
> > STS FAQ: http://www.collutions.com/Lists/FAQ,
> > courtesy Mike Walsh - Helsinki, Finland
> > --------------------------------------------------
> > Supercool SharePoint stuff at
> > http://www.sharepointu.com
> > --------------------------------------------------
> > TinyURL.com
> > Making long URLs postable!
> > http://tinyurl.com



> > > Hi All,
> > >   Hope this is the right place for these questions.  Thanks for any
> > > assistance in advance.

> > > These questions are mainly focused on the Discussion Lists'

> > > 1.) I would like to remove the hyperlinks from the ModifiedBy (Editor)
> > > and
> > >     CreatedBy (Author) fields, so that when they are displayed, the
> > > user cannot
> > >     click on them.  It really isn't necessary for our target users to
> > > access
> > >     information about each other.  At least, not at this stage.
> > > Parentheses
> > >     denote the fields name in ONET.XML

> > > 2.) I would also like to add a "RE:" to any reply messages.  Does
> > > anyone know
> > >     how to accomplish this?

> > > Thanks again,
> > > Jess

 
 
 

STS Customization Help

Post by Jim Dunca » Sun, 06 Apr 2003 00:49:42


Changes to the SCHEMA.XML will not effect existing lists, only new lists
created after the changes were made.
That being said, in the SCHEMA.XML for the Discussions (or any list) the XML
paths to the places you'll want to modify are:

/List/MetaData/Forms/Form Type="DisplayForm"/ListFormBody/Field
Name="Editor"
/List/MetaData/Forms/Form Type="DisplayForm"/ListFormBody/Field
Name="Author"

In both cases, change Field to LookupColumn and then do the same for the
EditForm

For existing lists you would need to use FrontPage to replace the Field
webbot with <ows:LookupColumn Name="Editor"/>



> Hi Jim,
>   Thanks a million.  I have the Javascript working but had to use
> subject.substring(0,2) to check for the "RE" already being present,
> but the code and the direction sure helped a lot.  I am still having
> problems with the first portion though.  Could you give a little more
> detail on where this needs to be done.  I have tried putting it in the
> discuss\schema.xml file but have not had a lot of luck.  I thought
> that IIS may need to be restarted but that didn't help either.  Thanks
> for any more insight.

> Jess




> > oops, forgot my syntax, should use != instead of <>:

> > if (subject.substring(0,1) != "RE")
> >          {
> >          url += "&Subject=RE%3a%20" + subject;
> >          }
> >      else
> >          {
> >          url += "&Subject=" + subject;
> >          }



> > > Jesse,

> > > 1) in the SCHEMA.XML for the discussions list, find <Field
Name="Author"/>
> > > and replace with <LookupColumn Name="Author"/> in all the views and
forms.
> > > Do the same for <Field Name="Editor"/>

> > > 2) in OWS.JS, search for the ReplyItem function and replace the
following
> > > line
> > >     url += "&Subject=" + subject;
> > > with
> > >     if (subject.substring(0,1) <> "RE")
> > >         {
> > >         url += "&Subject=RE%3a%20" + subject;
> > >         }
> > >     else
> > >         {
> > >         url += "&Subject=" + subject;
> > >         }

> > > Happy Coding,

> > > --
> > > Jim Duncan
> > > IT Manager - Collutions, Inc.
> > > http://www.collutions.com
> > > (Please 'reply group' so all can benefit:
> > > I NEVER check my email)
> > > --------------------------------------------------
> > > STS FAQ: http://www.collutions.com/Lists/FAQ,
> > > courtesy Mike Walsh - Helsinki, Finland
> > > --------------------------------------------------
> > > Supercool SharePoint stuff at
> > > http://www.sharepointu.com
> > > --------------------------------------------------
> > > TinyURL.com
> > > Making long URLs postable!
> > > http://tinyurl.com



> > > > Hi All,
> > > >   Hope this is the right place for these questions.  Thanks for any
> > > > assistance in advance.

> > > > These questions are mainly focused on the Discussion Lists'

> > > > 1.) I would like to remove the hyperlinks from the ModifiedBy
(Editor)
> > > > and
> > > >     CreatedBy (Author) fields, so that when they are displayed, the
> > > > user cannot
> > > >     click on them.  It really isn't necessary for our target users
to
> > > > access
> > > >     information about each other.  At least, not at this stage.
> > > > Parentheses
> > > >     denote the fields name in ONET.XML

> > > > 2.) I would also like to add a "RE:" to any reply messages.  Does
> > > > anyone know
> > > >     how to accomplish this?

> > > > Thanks again,
> > > > Jess

 
 
 

STS Customization Help

Post by Jesse L. Charbneau je » Sun, 06 Apr 2003 06:17:40


Hi again Jim,
  Still not following, sorry :(.  I'm not sure I follow this (below)
very well.
I tried to create a new discussion after modifying the schema.xml and
still got
link info.

Quote:> /List/MetaData/Forms/Form Type="DisplayForm"/ListFormBody/Field
> Name="Editor"
> /List/MetaData/Forms/Form Type="DisplayForm"/ListFormBody/Field
> Name="Author"

> In both cases, change Field to LookupColumn and then do the same for the
> EditForm

How would I use FP to do this? It seems that FP has been garbling most
of the
code.  See below for a sample.

Quote:> For existing lists you would need to use FrontPage to replace the Field
> webbot with <ows:LookupColumn Name="Editor"/>

Here is a portion of the file I am working on:
       <!--webbot bot="ListViewBegin" tag="body" preview="&lt;em&gt;[
List View Begin ]&lt;/em&gt;" -->
        <table ID="<ows:WebQueryInfo />" border="0" width="100%"
rules="rows">
        <tr valign="top">
        <form>
        <th class="ms-vh" align="left">
            <!--webbot bot="ListField" s-Field="Threading"
s-Title="Subject (threaded)" s-Context="viewheader"
b-ShowTitle="FALSE" --></th>
        <th class="ms-vh" align="left">
             <!--webbot bot="ListField" s-Field="Editor"
s-Title="Modified By" s-Context="viewheader" b-ShowTitle="FALSE"
--></th>
        <th class="ms-vh" align="left">
             <!--webbot bot="ListField" s-Field="Modified"
s-Title="Modified" s-Context="viewheader" b-ShowTitle="FALSE" --></th>
        </form>
        </tr>
        <!--webbot bot="ListViewRowBegin" tag="tbody"
preview="&lt;em&gt;[ List View Row Begin ]&lt;/em&gt;" -->
        <tr>
        <td class="ms-vb" align="left"><!--webbot bot="ListField"
s-Field="Threading" s-Title="Subject (threaded)" s-Context="viewbody"
b-ShowTitle="FALSE" --></td>
        <td class="ms-vb" align="left">
          <!--webbot bot="ListField" s-Field="Editor"
s-Title="Modified By" s-Context="viewbody" b-ShowTitle="FALSE"
s-List="u_DiscussionBoard" --></td>
        <td class="ms-vb" align="left"><!--webbot bot="ListField"
s-Field="Modified" s-Title="Modified" s-Context="viewbody"
b-ShowTitle="FALSE" --></td>
        </tr>
        <!--webbot bot="ListViewRowEnd" tag="tbody"
preview="&lt;em&gt;[ List View Row End ]&lt;/em&gt;"
--></table><!--webbot bot="ListViewEnd" s-list="u_DiscussionBoard"
s-view="{E4FEE0A7-DA36-4A41-88CD-EC9BBD35C106}" preview="&lt;em&gt;[
List View End ]&lt;/em&gt;" s-type s-empty="There are no items to show
in this view." tag="body" s-xml="&lt;View
Name=&quot;{E4FEE0A7-DA36-4A41-88CD-EC9BBD35C106}&quot;
Type=&quot;HTML&quot; BaseViewID=&quot;1&quot;
DisplayName=&quot;Summary&quot;
Url=&quot;DiscussionBoard/Collaboration_Main.html&quot;
FreeForm=&quot;TRUE&quot;
FPModified=&quot;TRUE&quot;&gt;&lt;ViewFields&gt;
                &lt;FieldRef Name=&quot;ID&quot;/&gt;
                &lt;FieldRef Name=&quot;Title&quot;/&gt;
                &lt;FieldRef Name=&quot;Modified&quot;/&gt;
                &lt;FieldRef Name=&quot;Created&quot;/&gt;
                &lt;FieldRef Name=&quot;Author&quot;/&gt;
                &lt;FieldRef Name=&quot;Editor&quot;/&gt;
                &lt;FieldRef Name=&quot;owshiddenversion&quot;/&gt;
                &lt;FieldRef Name=&quot;Ordering&quot;/&gt;
                &lt;FieldRef Name=&quot;ThreadID&quot;/&gt;
                &lt;FieldRef Name=&quot;Threading&quot;/&gt;
                &lt;FieldRef Name=&quot;Body&quot;/&gt;
                &lt;FieldRef Name=&quot;Edit&quot;/&gt;
                &lt;FieldRef Name=&quot;Document_x0020_Location&quot;/&gt;
                &lt;FieldRef Name=&quot;Division&quot;/&gt;
        &lt;/ViewFields&gt;
        &lt;ViewHeader ExpandXML=&quot;TRUE&quot;&gt;&lt;GetVar
Scope=&quot;Request&quot;
Name=&quot;ViewHeader&quot;/&gt;&lt;/ViewHeader&gt;&lt;ViewBody
ExpandXML=&quot;TRUE&quot;&gt;&lt;GetVar Scope=&quot;Request&quot;
Name=&quot;ViewBody&quot;/&gt;&lt;/ViewBody&gt;&lt;ViewFooter
ExpandXML=&quot;TRUE&quot;&gt;&lt;GetVar Scope=&quot;Request&quot;
Name=&quot;ViewFooter&quot;/&gt;&lt;/ViewFooter&gt;&lt;PagedRowset&gt;&lt;HTML&gt;&lt;![CDATA[&lt;TABLE
width=&quot;100%&quot; border=0&gt;&lt;TR&gt;
&lt;TD align=right Class=&quot;ms-vb&quot;&gt;]]&gt;&lt;/HTML&gt;&lt;HTML&gt;(Items&lt;/HTML&gt;&lt;HTML&gt;&lt;![CDATA[&amp;nbsp;]]&gt;&lt;/HTML&gt;&lt;GetVar
Name=&quot;PageFirstRow&quot;
HTMLEncode=&quot;TRUE&quot;/&gt;&lt;HTML&gt;&lt;![CDATA[&amp;nbsp;]]&gt;&lt;/HTML&gt;&lt;HTML&gt;to&lt;/HTML&gt;&lt;HTML&gt;&lt;![CDATA[&amp;nbsp;]]&gt;&lt;/HTML&gt;&lt;GetVar
Name=&quot;PageLastRow&quot;
HTMLEncode=&quot;TRUE&quot;/&gt;&lt;HTML&gt;)&lt;/HTML&gt;&lt;HTML&gt;&lt;![CDATA[&amp;nbsp;&lt;A
HREF=&quot;]]&gt;&lt;/HTML&gt;&lt;PageUrl/&gt;&lt;HTML&gt;?&lt;/HTML&gt;&lt;GetVar
Name=&quot;NextPageData&quot;/&gt;&lt;HTML&gt;&lt;![CDATA[&quot;&gt;]]&gt;&lt;/HTML&gt;&lt;HTML&gt;Next&lt;/HTML&gt;&lt;HTML&gt;&lt;![CDATA[&lt;/A&gt;
&lt;A HREF=&quot;]]&gt;&lt;/HTML&gt;&lt;PageUrl/&gt;&lt;HTML&gt;?&lt;/HTML&gt;&lt;GetVar
Name=&quot;NextPageData&quot;/&gt;&lt;HTML&gt;&lt;![CDATA[&quot;&gt;]]&gt;&lt;/HTML&gt;&lt;HTML&gt;&lt;![CDATA[&lt;img
src=&quot;]]&gt;&lt;/HTML&gt;&lt;ImagesPath/&gt;&lt;HTML&gt;&lt;![CDATA[/next.gif&quot;
border=0&gt;&lt;/A&gt;&amp;nbsp;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;]]&gt;&lt;/HTML&gt;&lt;/PagedRowset&gt;&lt;RowLimit
Paged=&quot;TRUE&quot;&gt;100&lt;/RowLimit&gt;&lt;ViewEmpty
ExpandXML=&quot;TRUE&quot;&gt;&lt;GetVar Scope=&quot;Request&quot;
Name=&quot;ViewEmpty&quot;/&gt;&lt;/ViewEmpty&gt;&lt;Toolbar
Type=&quot;None&quot;/&gt;&lt;Query&gt;&lt;OrderBy&gt;&lt;FieldRef
Name=&quot;ThreadID&quot; Ascending=&quot;FALSE&quot;/&gt;&lt;FieldRef
Name=&quot;Ordering&quot;/&gt;&lt;/OrderBy&gt;&lt;/Query&gt;&lt;ViewStyle
Name=&quot;Table&quot;/&gt;&lt;/View&gt;
" s-OrigFields="Threading,Editor,Modified" -->

Thanks,
Jess

< SNIPPED CODE >

 
 
 

STS Customization Help

Post by Jesse L. Charbneau je » Tue, 08 Apr 2003 06:39:38



Hey Jim,
  Never mind.  Looks like I was over complicating things.  Your
suggestion (LookupColumn Name="Editor"/)  worked like a champ.  Thanks
again.

Jess

<SNIPPED>

 
 
 

1. STS customisation question

I am looking to customise a sts site so that I can remove the 'Add new
announcement' or 'Add new link' links for users who do not have permission
to add new content.  From my understanding it seems that sts shows these
links to users who do not have permission to use them and only gives a
'permission denied' error when they actually submit the new content.

Has anyone out had any experience tackling the problem I am facing?

Regards,
Andrew McNerlin
Internet Solutions (Ireland) Ltd

2. Date problem

3. Chris,Hal,Mariette HELP HELP HELP HELP HELP HELP

4. MGS-64 or PMA-5?

5. STS Survey help

6. Need for LEAD Performance Tester, Chandler, AZ (Must have all skill set)

7. STS - a Hard Sell So Far - Help Please!

8. transistors and diodes

9. Project Server Destroyed my STS site! Help!

10. please help - just lost all my STS sites

11. Small Business Server Customization Tool

12. SMS 2.0 Admin Console Customization Questions

13. IE5 Post Install Customization