Re: [OzMOSS] How to group the search results by scope in CoreSearchResults ?
I already try this and of course the scope column does not exist in the results XML. Is there a work around to solve this problem without using c# code to execute the search for each scope separately? On Wed, Sep 17, 2008 at 2:22 AM, Darren Neimke [EMAIL PROTECTED]wrote: I'm not sure that the 'out of the box' Search Result data returns the scope in its result list? If you change the XSLT for the Search Result Web Part to the following (Make sure that you save the old XSLT before you make this change so that you can change it back afterwards J): ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl= http://www.w3.org/1999/XSL/Transform; xsl:output method=xml version=1.0 encoding=UTF-8 indent=yes/ xsl:template match=/ xmpxsl:copy-of select=*//xmp /xsl:template /xsl:stylesheet And then run a Search, you should see what XML you have to deal with. If the scope field is in there, then you are in business. Kind Regards, Darren Neimke [EMAIL PROTECTED] blog: http://neimke.spaces.live.comhttp://showusyourcode.spaces.live.com/ twitter: http://twitter.com/digory mob: 0439 855 046 *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Meir Dahan *Sent:* Tuesday, 16 September 2008 9:27 PM *To:* listserver@ozmoss.com *Subject:* [OzMOSS] How to group the search results by scope in CoreSearchResults ? Using xsl. -- Meir Dahan Mobile: +972-52-8316814 Email: [EMAIL PROTECTED] --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com -- Meir Dahan Mobile: +972-52-8316814 Email: [EMAIL PROTECTED] --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
RE: [OzMOSS] CQWP and group by folder
Hi Michael You can embed your own CAML code in the CQWP so if you have the right CAML all should be good. To embed your own CAML code you need to export the CQWP, modify the .wepart file (QueryOverride property) with your own CAML and then re-import the .webpart back into the gallery. Use this as an example. http://phet.net/sharepoint/post/Embed-CAML-Queries-into-the-Content-Quer y-Webpart---Finding-Draft-Publishing-Content.aspx cheers CJ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Nemtsev Sent: Wednesday, 17 September 2008 11:43 AM To: listserver@ozMOSS.com Subject: [OzMOSS] CQWP and group by folder Is there any way, to use OOTB settings of CQWP to set filtering of grouping of Document Library files by enclosed folders I have Document library with name Reports, where they created not files, but new subfolders Company A and Company B. Now they want to show content of those folders in separate CQWP, but I can't find the way how to achieve this via CQWP. Using CAML Query I see that there are several fields, which helps me detect in which folder files locate - FileLeafRef, Link FileName. But I can't find those properties in Filter and Group items list of CQWP. What items help me to filter or sort all items in specific document library by subfolder name?! Michael Nemtsev | WSS MCTS, MS MVP Readify B: http://laflour.spaces.live.com http://laflour.spaces.live.com/ T: +61 424 184 978 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.6.21/1675 - Release Date: 16/09/2008 07:06 PM --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
[OzMOSS] There is a dynamic token for any field?
Hi all, I wonder if there is a dynamic token like *~site *or* **{ListId} *or* ** {ItemId}* for the field assigned to I need to pass the value of this field through url like http://server/site/list/PageThatWillPerformSomeAction.aspx?ID={ItemID}USER={SomeDynamicToken}http://server/site/list/PageThatWillPerformSomeAction.aspx?ID=%7BItemID%7DUSER=%7BSomeDynamicToken%7D If not, there is any other way of achieve this? Thanks for your help. Roger (from Portugal) --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
RE: [OzMOSS] There is a dynamic token for any field?
No there isnt, what you need to do is use the ItemID token to create a SPListItem object in your receiving page, and get the field value from there. Something like: //Process the querystring SPSite site = new SPSite(SPContext.Current.Web.Url); SPWeb srcWeb = site.OpenWeb(); SPList srcList = srcWeb.Lists[new Guid(Context.Request[List])]; SPListitem srcItem = srcList.GetItemById(int.Parse(Context.Request[ID])); You should then be able to get the value oif any field for that item Cheers, Nigel Witherdin SharePoint Technical Lead Eversheds Direct Dial: +44 (0) 84 549 754 17 Mobile: +44 (0) 7738 553256 www.eversheds.com http://www.eversheds.com/ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rogério Cruzeiro Sent: 17 September 2008 12:15 To: listserver@ozMOSS.com Subject: [OzMOSS] There is a dynamic token for any field? Hi all, I wonder if there is a dynamic token like ~site or {ListId} or {ItemId} for the field assigned to I need to pass the value of this field through url like http://server/site/list/PageThatWillPerformSomeAction.aspx?ID={ItemID}USER={SomeDynamicToken} http://server/site/list/PageThatWillPerformSomeAction.aspx?ID=%7BItemID%7DUSER=%7BSomeDynamicToken%7D If not, there is any other way of achieve this? Thanks for your help. Roger (from Portugal) --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com ** This email is sent for and on behalf of Eversheds LLP ** This email is sent for and on behalf of Eversheds LLP which is a limited liability partnership, registered in England and Wales, registered number OC304065. Registered office One Wood Street, London. EC2V 7WS. Registered VAT number GB820704559. A list of the members' names and their professional qualifications is available for inspection at the above office. Regulated by the Solicitors Regulation Authority (see www.sra.org.uk). Confidentiality: This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. * [ www.eversheds.com ] * --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
Re: [OzMOSS] There is a dynamic token for any field?
Ok, thanks for the quick answer. I have been searching all morning... There no free dinner :) 2008/9/17 Witherdin, Nigel [EMAIL PROTECTED] No there isnt, what you need to do is use the ItemID token to create a SPListItem object in your receiving page, and get the field value from there. Something like: //Process the querystring SPSite site = new SPSite(SPContext.Current.Web.Url); SPWeb srcWeb = site.OpenWeb(); SPList srcList = srcWeb.Lists[new Guid(Context.Request[List])]; SPListitem srcItem = srcList.GetItemById(int.Parse(Context.Request[ID ])); You should then be able to get the value oif any field for that item Cheers, Nigel Witherdin SharePoint Technical Lead Eversheds Direct Dial: +44 (0) 84 549 754 17 Mobile: +44 (0) 7738 553256 www.eversheds.com -- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Rogério Cruzeiro *Sent:* 17 September 2008 12:15 *To:* listserver@ozMOSS.com *Subject:* [OzMOSS] There is a dynamic token for any field? Hi all, I wonder if there is a dynamic token like *~site *or* **{ListId} *or* ** {ItemId}* for the field assigned to I need to pass the value of this field through url like http://server/site/list/PageThatWillPerformSomeAction.aspx?ID={ItemID}USER={SomeDynamicToken}http://server/site/list/PageThatWillPerformSomeAction.aspx?ID=%7BItemID%7DUSER=%7BSomeDynamicToken%7D If not, there is any other way of achieve this? Thanks for your help. Roger (from Portugal) --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com * This email is sent for and on behalf of Eversheds LLP * *This email is sent for and on behalf of Eversheds LLP which is a limited liability partnership, registered in England and Wales, registered number OC304065. Registered office One Wood Street, London, EC2V 7WS. Registered VAT number GB820704559. A list of the members' names and their professional qualifications is available for inspection at the above office. Regulated by the Solicitors Regulation Authority (see www.sra.org.uk). * *Confidentiality: This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error.* * [ www.eversheds.com ] * --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
[OzMOSS] Sharepoint OOTB Permissions
I've accidently removed permissions from my test SharePoint site! Out of the box groups are: Approvers Designers Heirarchy Managers Owners Visitors Quick Deploy Users Restricted Readers Style Resource Readers Viewers. On clicking the group, various permissions are given, can someone tell me what group requires what permission please? At the moment they're all read only. Many thanks Uzma _ Win New York holidays with Kellogg’s Live Search http://clk.atdmt.com/UKM/go/111354033/direct/01/ --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
RE: [OzMOSS] CQWP and group by folder
In my experience, this is a very good case for why it is a good idea to stay away from folders and use metadata on the list/library, makes it much easier to get to later. If the documents are grouped by columns instead of folders, you can then easily perform the function that you need by using the CQWP without using CAML. Just my 2 cents J Cheers Aaron From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Clayton James Sent: Wednesday, September 17, 2008 8:46 PM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] CQWP and group by folder Hi Michael You can embed your own CAML code in the CQWP so if you have the right CAML all should be good. To embed your own CAML code you need to export the CQWP, modify the .wepart file (QueryOverride property) with your own CAML and then re-import the .webpart back into the gallery. Use this as an example. http://phet.net/sharepoint/post/Embed-CAML-Queries-into-the-Content-Query-We bpart---Finding-Draft-Publishing-Content.aspx cheers CJ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Nemtsev Sent: Wednesday, 17 September 2008 11:43 AM To: listserver@ozMOSS.com Subject: [OzMOSS] CQWP and group by folder Is there any way, to use OOTB settings of CQWP to set filtering of grouping of Document Library files by enclosed folders I have Document library with name Reports, where they created not files, but new subfolders Company A and Company B. Now they want to show content of those folders in separate CQWP, but I can't find the way how to achieve this via CQWP. Using CAML Query I see that there are several fields, which helps me detect in which folder files locate - FileLeafRef, Link FileName. But I can't find those properties in Filter and Group items list of CQWP. What items help me to filter or sort all items in specific document library by subfolder name?! Michael Nemtsev | WSS MCTS, MS MVP Readify B: http://laflour.spaces.live.com/ http://laflour.spaces.live.com T: +61 424 184 978 E: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.6.21/1675 - Release Date: 16/09/2008 07:06 PM --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
RE: [OzMOSS] How to group the search results by scope in CoreSearchResults ?
Meir, are you trying to return results in groups – e.g. Pages and then documents? If so, I would be very interested to see a result as we are trying to do the same thing. Does anyone know if Pages can be separated from documents or given higher priority so that they appear first? Can they be set as a scope?? As you have discovered, the XSL reveals very little. Regards, Paul From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Meir Dahan Sent: Wednesday, 17 September 2008 5:16 PM To: listserver@ozmoss.com Subject: Re: [OzMOSS] How to group the search results by scope in CoreSearchResults ? I already try this and of course the scope column does not exist in the results XML. Is there a work around to solve this problem without using c# code to execute the search for each scope separately? On Wed, Sep 17, 2008 at 2:22 AM, Darren Neimke [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: I'm not sure that the 'out of the box' Search Result data returns the scope in its result list? If you change the XSLT for the Search Result Web Part to the following (Make sure that you save the old XSLT before you make this change so that you can change it back afterwards ☺): ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=xml version=1.0 encoding=UTF-8 indent=yes/ xsl:template match=/ xmpxsl:copy-of select=*//xmp /xsl:template /xsl:stylesheet And then run a Search, you should see what XML you have to deal with. If the scope field is in there, then you are in business. Kind Regards, Darren Neimke [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] blog: http://neimke.spaces.live.comhttp://showusyourcode.spaces.live.com/ twitter: http://twitter.com/digory mob: 0439 855 046 From: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]] On Behalf Of Meir Dahan Sent: Tuesday, 16 September 2008 9:27 PM To: listserver@ozmoss.commailto:listserver@ozmoss.com Subject: [OzMOSS] How to group the search results by scope in CoreSearchResults ? Using xsl. -- Meir Dahan Mobile: +972-52-8316814 Email: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.comhttp://mailenable.com/ --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.comhttp://mailenable.com/ -- Meir Dahan Mobile: +972-52-8316814 Email: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com ;3I'(��.�˛���m���ka��b���֦z����rKh����p��n�˛���m欶r�u��j)^���y�
RE: [OzMOSS] CQWP and group by folder
Unless of course you're trying to configure the web part using its provided interface and want to filter on a custom content type for pages on another site. Then the CQWP just breaks and refuses to work again even after restoring the settings to default. Apparently people just accept this as a known limitation?? Seems like quite an oversight that folder creation is allowed but that an explicit path can't be used to target items. [My therapist told me it was healthy tp vent about these things publicly. :D] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Cunnington Sent: Thursday, 18 September 2008 8:37 AM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] CQWP and group by folder In my experience, this is a very good case for why it is a good idea to stay away from folders and use metadata on the list/library, makes it much easier to get to later. If the documents are grouped by columns instead of folders, you can then easily perform the function that you need by using the CQWP without using CAML. Just my 2 cents :) Cheers Aaron From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Clayton James Sent: Wednesday, September 17, 2008 8:46 PM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] CQWP and group by folder Hi Michael You can embed your own CAML code in the CQWP so if you have the right CAML all should be good. To embed your own CAML code you need to export the CQWP, modify the .wepart file (QueryOverride property) with your own CAML and then re-import the .webpart back into the gallery. Use this as an example. http://phet.net/sharepoint/post/Embed-CAML-Queries-into-the-Content-Query-Webpart---Finding-Draft-Publishing-Content.aspx cheers CJ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Nemtsev Sent: Wednesday, 17 September 2008 11:43 AM To: listserver@ozMOSS.com Subject: [OzMOSS] CQWP and group by folder Is there any way, to use OOTB settings of CQWP to set filtering of grouping of Document Library files by enclosed folders I have Document library with name Reports, where they created not files, but new subfolders Company A and Company B. Now they want to show content of those folders in separate CQWP, but I can't find the way how to achieve this via CQWP. Using CAML Query I see that there are several fields, which helps me detect in which folder files locate - FileLeafRef, Link FileName. But I can't find those properties in Filter and Group items list of CQWP. What items help me to filter or sort all items in specific document library by subfolder name?! Michael Nemtsev | WSS MCTS, MS MVP Readify B: http://laflour.spaces.live.comhttp://laflour.spaces.live.com/ T: +61 424 184 978 E: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.6.21/1675 - Release Date: 16/09/2008 07:06 PM --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
[OzMOSS] Some broken links after port change
Hi all, We recently had to change the port for our dev environment. Almost everything seems to have gone off without a hitch with the exception of a few broken links in master page controls. - Search form - My Site - My Links (sub links only) All point to the old port number. Is this a caching issue, or are absolute URLs set in some of the config files when these things were initially setup? Kind regards, Paul --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
[OzMOSS] RE: Some broken links after port change
Quick update: although nothing is displayed in code view in SPD, when selecting a delegatecontrol a large range of properties become visible in the Tag Properties pane. I can see the PageUri here and have changed it to reflect the new port number but this also adds the value to the control in code view. e.g. SharePoint:delegatecontrol ControlId=GlobalSiteLink1 Scope=Farm runat=server PageUri=http://mydomain:999/_vti_bin/webpartpages.asmx; Is this the right way to go about changing these? I can't seem to find any other means through Central Administration and these hard coded changes are bound to get carried across to our production environment. Regards, Paul From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Noone Sent: Thursday, 18 September 2008 3:10 PM To: listserver@ozMOSS.com Subject: [OzMOSS] Some broken links after port change Hi all, We recently had to change the port for our dev environment. Almost everything seems to have gone off without a hitch with the exception of a few broken links in master page controls. - Search form - My Site - My Links (sub links only) All point to the old port number. Is this a caching issue, or are absolute URLs set in some of the config files when these things were initially setup? Kind regards, Paul --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
Re: [OzMOSS] RE: Some broken links after port change
I think this Changing a sites URL / Moving a site to a new farm issue really needs to be sorted out for SharePoint VNext This is related to the 'incorrect page layout url' issue that was posted here a day or two ago. Absolute URLs are stored within a SharePoint content database and there is no simple straightforward way to update all the references correctly. To the point where only STSADM Export / Import (which uses the PRIME / Content Deployment API) is the only supported method for migrating sites between farms (ie. Dev -- Test -- Prod) The problem is that the majority of people out there (including myself) still heavily utilise 'unsupported method' for moving sites between farms - Site Collection Backup / Restore or via SQL Content Database backup / restore because they are faster and simpler than the supported method. So if a site is created in the farm that it will eventually end up 'living' in then no worries - but if you want the flexibility to 'MOVE' your sites around between farms or utilise different urls or host names then you constantly run into time wasting and problematic issues like this. There really needs to be a more simple, proven, documented and SUPPORTED manner to do this sort of thing On Thu, Sep 18, 2008 at 2:19 PM, Paul Noone [EMAIL PROTECTED] wrote: Quick update: although nothing is displayed in code view in SPD, when selecting a delegatecontrol a large range of properties become visible in the Tag Properties pane. I can see the PageUri here and have changed it to reflect the new port number but this also adds the value to the control in code view. e.g. SharePoint:delegatecontrol ControlId=GlobalSiteLink1 Scope=Farm runat=server PageUri=http://mydomain:999/_vti_bin/webpartpages.asmx; Is this the right way to go about changing these? I can't seem to find any other means through Central Administration and these hard coded changes are bound to get carried across to our production environment. Regards, Paul *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Paul Noone *Sent:* Thursday, 18 September 2008 3:10 PM *To:* listserver@ozMOSS.com *Subject:* [OzMOSS] Some broken links after port change Hi all, We recently had to change the port for our dev environment. Almost everything seems to have gone off without a hitch with the exception of a few broken links in master page controls. - Search form - My Site - My Links (sub links only) All point to the old port number. Is this a caching issue, or are absolute URLs set in some of the config files when these things were initially setup? Kind regards, Paul --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com