Using CQWP in a subsite?

I'm using a CQWP in a sub-site and its referencing back to xsl style sheets in the Style library(in the site collection) xsl files are ItemStyle.xsl ,header.xsl and ContentQueryMain.xsl. The same CQWP is used in the site collection but using a modified ContentQueryMain.xsl
and it works.The modification basically just adds a DIV before start element of the webpart to apply a different class and an ID.
The problem i have though is when i edit the CQWP in the subsite using sharepoint designer and change the ContentQueryMain.xsl to the modified one and save it.
It doesn't add the DIV element because when i reopen the CQWP in the subsite site and look at the changes it sets it back to ContentQueryMain.xsl and not the modified one.
Any ideas what is happening?

Just to rule out the obvious, if you recreate this on the root site but export the CQWP, rename it and make the changes and link to your modified files, it should still be available to work as intended on all sub-sites.  Have you tried this at
all?
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem.

Similar Messages

  • How to Resolve Can not Display Web part error using CQWP and a blog

    I have  a SharePoint 2010 site with a home page that has a  CQWP (content Query Web Part) tied to the most recent blog of blog site with a list of blogs.  Randomly, some clients will experience a "Unable to display
    a web part". Our client machines are set up with Roaming profiles that are PKI enabled.  Some users are always able to see the resulting blog on the home page, while other users, experience sporadic ability to see the blog ----getting a
    "Unable to display web part".  Also a client can be on one machine and get the error and then log on to another machine and not get the error. Its also seems that when a new blog is added to the blog list this is when the
    ability to see the blog on the home page may come up as an error.  Our setup is simple:   show items= list/posts, List type=Posts, Content Type Group= List Content Type, Content type=Posts,  no audience targeting, not additonal filters,
    group items by = None Descending,  #columns =1, sort items by =published -descending   Limit # display items = 1,  Gropup style = Default,  itemstyle= image on left,  yes play media links,  Fields to display = titlt
    and Description (body)
     What kind of things could cause the random behavior?  

    Hi,
    According to your description, my understanding is that the error occurred occasionally with the Content Query web part.
    I tested the same scenario in my environment, and the web part worked fine.
    I recommend to verify the things below:
    Did this issue occur with all the Content Query web part? I recommend to create a new Content Query web part to see if the issue still occurs.
    Did this issue occur with all the users who have permission to view the web part?
    Deactivate the Publish feature and then re-activate it to see if the issue still occurs.
    Check the ULS log for detailed error message.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Can a content query web part dynamically query items from a particular that exists in multiple subsites

    I have a site collection with multiple subsites. All of the subsites have a list called "Status" which is using content types for its column management.
    I want to use a content query web part in the parent site level to query 1 item from everyone of these subsites. Is there a way to do this?
    The only way I can do this is if I create an individual content query web part for each subsite as I did not find an option for my content query to query from multiple subsites at once.

    You can do it using CQWP. For instance, if you have a site column called 'Rollup' that is part of your content type, that will be part of all your subsites custom list 'Status'. On the root site CQWP set the source to 'Show item from the following site and
    all subsites' and choose your root site (first image below). Then add 'additional filters' and set the value to 'Yes' as shown in second figure below; you will be able to roll up all the data to the root site like below. Now, you need to decide what query
    field you will use that is unique and that can roll up. 
    Srini Sistla Twitter: @srinisistla Blog: http://blog.srinisistla.com

  • How to get data from subsites list of SharePoint 2010 in ssrs

    Hi,
    Can someone help me on this issue.
    I want to create a report using ssrs, I have some of the data in SQL and some of the data in sharepoint list.
    First I need to go to SQL and get the data from the table which contains URL for the subsite in sharepoint.
    after that I need to go to all the subsites and go to perticulat list in the subsites and get data from that list.
    for example, their is a top level site "abc"
    it contains sub site "123", "456","567", etc.. All this sub sites contain a list by name "Sample List", Now I need to go to that sub site list(Sample List) and get list-item column say "created By" which
    is created on particular date. 
    in my report, I need to print the sub site "url/Title" which comes from SQL database and list-item column  "Created By" of that sub site list "Sample List".
    I tried using subreport inside a report by using "Microsoft SharePoint List" as a datasource, but when it comes to real time we don't know how many subsites will be created, so we can't create a datasource for each subsite site.
    I guess we need to be using XML as a datasource, but how can we go to particular subsite in query while using XML, since all subsites have list with the same name ?
    I appreciate your help.
    Thank you,
    Kishore 

    Hi Kishore,
    SQL Server Reporting Services(SSRS) supports expression-based connection strings. This will help us to achieve the goal you mentioned in this case:
    Create a new report
    Create a Data Source in the report with the connection string like this:
    http://server/_vti_bin/lists.asmx (We use static connection string instead of expression-based connection string now, as it is not supported to get fields based on expression-based connection string in design time. We will change it to be expression-based
    connection string later)
    Create the data set(as you have done using XML query language). Please use list name instead of GUID in the listName parameter.
    Design the report(e.g. Add controls to the report)
    Now, let's change the connection string to be expression-based. First, please add a parameter to the report, move this parameter to top. This parameter is used to store the sub site name.
    Open the Data Source editor, set the connection string to be: ="http://server/" & Parameters!parameterCreatedInStep5.value & "_vti_bin/lists.asmx"
    In the main report, pass the sub site name to the report we created above via the parameter created in step5
    That is all.
    Anyway, this is actually a SQL Server Reporting Service(SSRS) question. You can get better support on this question from:
    http://social.technet.microsoft.com/Forums/en/sqlreportingservices/threads
    For more information about Expression-Based connection string, please see:
    http://msdn.microsoft.com/en-us/library/ms156450.aspx#Expressions
    If there is anything unclear, please feel free to ask.
    Thanks,
    Jinchun Chen
    Jin Chen - MSFT

  • Display a document library view on a subsite

    Hi
    I have SharePoint 2013 On-Premise and I would like to display a document library from the top level site in a subsite.  This subsite will then be saved as a template and used to create other subsites.
    For example,
    I have a site called Site 1.  In Site 1 there is a document library called doclib1.  Site1 also has a subsite called subsiteA.
    I would like to display a view from doclib1 in subsiteA.  SubsiteA will then be used as a template to create subsiteB, subsiteC etc.
    I have tried a few things but these have not worked or I am not doing it correctly.  Here is what I have tried
    Copied doclib1 code from site1 to subsiteA using SPDesigner. I get the error "List does not exist......"
    Used a Content Query Webpart.  I get the error "Something went wrong"
    Used a Data view web part.  The complete page was displayed.  I only want the view
    Although it looks possible, I do not know how to take this forward.  All I need is to display generic documents on each subsite that can be modified from one location.
    Marc Collins www.QGate.co.uk

    Hi,
    To get the custom field in the search filter.  You need to follow these steps.
    Go to the Search schema from the  Manage Service Applications -> Search Service Application in Central Administration
    Create a Managed property for your field (Category)
    Map the crawl property to the Managed property.
    Once managed property created, run the full crawl.
    Once full crawl executed, you are able to get your filter property in the search filter.
    http://blogs.perficient.com/microsoft/2012/07/sp2013-search-quickie-createmap-a-new-managed-property-powershell/
    Even though 2010 article, for 2013 steps are same.
    http://johnrossjr.wordpress.com/2011/03/18/creating-custom-managed-properties/
    Please mark it answered, if your problem resolved or helpful.

  • Copy files using modules to sub site in sharepoint

    Hi Team
    copy files using modules to sub site in sharepoint 

    Hi,
    Here is an example of the Elements.xml file for a module:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Module Name="Module1">
    <File Path="Module1\Sample.txt" Url="Module1/Sample.txt" />
    </Module>
    </Elements>
    More information:
    Sharepoint 2013 deploying files using a module to subsites
    http://sharepoint.stackexchange.com/questions/79290/sharepoint-2013-deploying-files-using-a-module-to-subsites
    Copy file from feature to subsite?
    https://social.msdn.microsoft.com/Forums/en-US/83ff07ca-0896-4e98-bd47-b4ffeb9f6ebd/copy-file-from-feature-to-subsite
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • CQWP and Swedish special characters?

    I have a CQWP that i want to use to rollup list information from som sub sites, the lists contains columns that are named with Swedish characters: Å, Ä, and Ö.
    Have in mind also that I am doing this on SharePoint Online in Office 365, I need my customer to be able to define swedish characters while I am still able to roll them up using CQWP. 
    So, now when I try to style the CQWP with ItemStyle.xsl I dont get these columns sent. My CommonViewFields is defined as follows:
    <property name="CommonViewFields" type="string">Positivt,Note;Negativt,Note;Projekt,TaxonomyFieldMulti;Veckonummer,Choice;M_x00e5_nad,Choice</property>
    All other properties in the web part definition file are left as is.
    The columns, Positivt, Negativt, Projekt and Veckonummer get sent as expected, but I never receive the column M_x00e5_nad which has the displayname Månad. I also have some more fieldnames that use swedish characters, but this is a good example. Any suggestions?
    Best regards /Richard

    Hi
    Richard ,
    Thank you for your posting!
    As XML builds on and supports Unicode so a Swedish character is nothing special as long as you use an Unicode encoding like UTF-8 , I'm wondering if this is because of how the field has being set to display.
    A common source of confusion for things like this is the disable-output-escaping property of the value-of element: 
    http://www.w3schools.com/xsl/el_value-of.asp
    Thank you for your understanding and support.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Automatically populate custom list column with site name when list is created

    Hi All,
    I am using a CQWP to display selected contacts on subsites from one master contact list on the parent site. Each subsite is for a different project and is named according to the project number. In the master contact list I have a custom column called Projects
    that is populated with the various different project numbers that an individual contact is involved with.
    The CQWP on the subsite filters the results based on the Projects column of the master contact list. As it stands I have to manually input this job number into the CQWP's properties. What I would like to happen is for the project number (the subsite name)
    to automatically be input to the filter value.
    The closet I have come to reaching my desired behaviour is by adding a column to the Site Pages list called Title and setting the filter value to [PageFieldValue:Title]. This still doesn't get the automatic behaviour I require because I still have to input
    the project number into the Title column manually, but it is quicker than editing the CQWP properties.
    What I need to achieve is either a way of automatically populating this column with the subsite name or find a way for the CQWP to pick up the subsite name and filter its results accordingly.
    I have found this article http://www.andrewconnell.com/blog/Subclassing-the-Content-Query-Web-Part-Adding-Dynamic-Filtering which seems to be along the lines of what I want to achieve, but it is by no means a walk through and while I'm not completely
    unfamiliar with coding, I don't know enough to implement it without help.
    Any help would be greatly appreciated, I've been working on this for weeks on and off!
    Thanks in advance,
    Dan

    Hi,
    I believe the "Description" field type is Multiple Lines of Text. Sorting doesn't allow in this field type. In order to do the sorting, you would require to create additional column like single line of text column (note that it supports only 255
    chars and require to truncate the data if more than 255) and update the data using event receiver or workflow. and do the sorting with that column.
    kmhsad

  • Content Query on Calendar does not show recurring events

    There are three views that come with a Calendar list.  One is the 'Calendar', second is 'All Events' and the other is the 'Current Events'.  The current events is a cool view because it expands out items that have a recurrence (such as yearly).  It also shows only the events that happen today or in the future by filtering out past items.
    I have a content query web part that looks to this calendar which is maintained by the HR area.  The calendar is a holiday schedule for the next 3 years or so.  I can not seem to get the recurring events to expand out like they do with the 'Current Events' view.  If I choose 'All Events' on the list then it will show only our recurring holidays and the holidays that can't be set up as recurring holidays.  The content query web part appears to show only the 'All Events' view.
    Is there a way to make the content query web part use the 'Current Events' view?  I know the view option is there when the list resides on the same site, but in that case it uses a 'List View' web part instead of the content query web part.

    I'm not sure the MOSS option will work for me for a couple of reasons.  First, it seems this would require that the list reside on the parent site and the subsite be the one to use CQWP.  I need to have the list maintained on our HR site where HR people have permissions to modify, and then displayed on the parent site where HR folks don't have permissions to modify.  Also, I have at least two different columns that I really need to display and I haven't found a way to keep a link between two fields in the master list, unless I maybe use a calculated field. 
    The CSS modification may be a solution but I have not modified webparts via css.  I really haven't done many modifications to the css anyway but I'm not afraid to try it out on my test system.  I have looked through the Calendar.css and core.css and I don't find anything with ItemStyles in it.  I have even done a search on the entire web server extensions folder and I still have not found ItemStyles.  Will you please let me know where to find ItemStyles.xsl?
    I found a codeplex project that might help with this.  I could at least display two columns.  However, it doesn't say anything about building out recurrence items so I'm not sure if it will fix my problem.  I'll post my findings once I try it out.
    http://www.codeplex.com/ECQWP
    Thanks for your help!

  • Announcements /events / FAQs web part in a scrolling fashion on the landing page

    hi,
    can anyone help how to develop the below kind of UI in my SP 2013 KM  portal using cqwp/cewp/ jquery.
    i tried with the custom visual web part, but my customer says they want me to use client side / OOTB feature of SP. 
    i am wanting to display the same in the landing page. so that when  end users click "More" they will be navigated to the
    All Announcements Page [ may be its   a  page layout in pages library ].
    the other tricky part am seeing is how to show these individual/single announcements in a scrolling manner.
    help is highly appreciated!

    hi Amr,
    in the url you have provided am not able to follow this step:
    below :
    http://sharepointtweaks.blogspot.ae/2012/07/image-carousel-webpart-sanboxed.html
    3- Export the webpart you will prompt to download file named "Content Query.webpart" 
    i am not seeing the option to export the web part.
    from where will
    i download file named "Content Query.webpart .

  • Best Practice for Tranport request Naming

    Hi,
    We are using SolMan 4.0 during implementation of ECC 6.0.
    We have placed the blueprint and we are in configuration phase.
    We have a IMG project created in the DEV system and was assinged in Solution Manager project under  System Landscape->IMG Projects.
    Now that consultants are going to dev system and customizing they are creating their transport requests.
    Is there any best practice for the naming convention or the transport requests..
    By creating one IMG project for entire implementation is that going to create any problem..!!
    Please sgugest.
    Thanks & Regards
    Mrutyunjay

    As per MSFT best practices(Mentioned by Scott) keep it short as much as possible. You can use SP for SharePoint-SUBSite
    also check this blog for best practices.
    http://www.networkworld.com/community/blog/simple-naming-conventions-improve-end-user-experience-sharepoint-sites
    also one more thing you should consider, never use the reserved words into the SharePoint URLs. you will able to create the site/lis/library/folder but when you browse get the 404 errors.
    check this blog:
    http://www.sharepointblog.cz/2012/04/reserved-words-in-sharepoint-url.html
    http://techtrainingnotes.blogspot.com/2012/03/names-you-cant-use-for-sharepoint.html
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Import a application In sharepoint 2010

    I Have a exported application in my  c drive  in a folder . I want to import it to a new web application . how can  i achieve this
    I tried using  management shell  like :
    import-spweb http: //  path:c:\path name
    but its throwing an error  like. import -spweb:a positional parameter cannot be found that excepts  path:c:\path name.
    please  help...!!!!

    Restoring a Web Application will depend on how you backed it up.  Here's a page that discusses all the options for how to restore a Web Application.  To restore a Web Application using PowerShell you would use a Restore-SPFarm command, not import-SPWeb.
     Import-SPWeb is used to restore a SubSite that was backed up using Export-SPWeb.  But for that you need an existing Web Application and Site Collection.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Best Practice for naming share point URL

    Hi,
    Could you please help on this.
    If we have,
    Site Name : SharePoint Sub Site
    URL : SharePoint-Sub-Site or SharePoint_Sub_Site  (I would prefer one of these two options) which option is best ( - or _) as per the best practice. I do not want to keep it very short.
    Thanks.
    srabon

    As per MSFT best practices(Mentioned by Scott) keep it short as much as possible. You can use SP for SharePoint-SUBSite
    also check this blog for best practices.
    http://www.networkworld.com/community/blog/simple-naming-conventions-improve-end-user-experience-sharepoint-sites
    also one more thing you should consider, never use the reserved words into the SharePoint URLs. you will able to create the site/lis/library/folder but when you browse get the 404 errors.
    check this blog:
    http://www.sharepointblog.cz/2012/04/reserved-words-in-sharepoint-url.html
    http://techtrainingnotes.blogspot.com/2012/03/names-you-cant-use-for-sharepoint.html
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • XSLT in SharePoint

    Hi Techies,
    I was modifying SharePoint 2010 Blog Posts look and feel with the help of blog.xsl which is located under
    LAYOUTS.  I was able to fetch data from default columns of POST list of Blog template site. But I got stuck when i was trying to fetch data from custom column which was added by me.
    Anybody have any idea or let me know where i am going wrong.

    http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/04/09/how-to-add-a-custom-field-to-blog-posts-in-sharepoint-2013.aspx
    http://blog.henryong.com/2011/10/28/adding-sharepoint-social-rating-stars-to-the-homepage-of-sharepoint-blog-sites/
    Please check the above articles
    If u want to access column directly,then open the blog.xsl file which is located in layouts folder.
    and paste the below line
    <xsl:value-of select="@Body" disable-output-escaping="yes"/>
    Here @body is the name of ur new column.
    If u are using CQWP,in that case add the new column in CQWP properties like
    <property name="DataMappings" type="string">LinkUrl:{94f89715-e097-4e8b-ba79-ea02aa8b7adb},FileRef;</property>
    <property name="DataMappingViewFields" type="string">{94f89715-e097-4e8b-ba79-ea02aa8b7adb},Lookup;</property>

  • Steps required to create apps to implement various web parts functionality

    I have office 365 E3 a/c.
    For a site we have to create few apps whoose required functionality is like
    1. Newsfeed Webpart
    2. Blog webpart (source is library)
    3. CQWP
    4. Carousel web part
    5. Calendar control
    Please tell all steps required to create apps for above mentioned functionality.
    What will be steps and plan for this?

    Hi,
    According to your post, my understanding is that you want to create apps to implement various web parts functionality.
    You can use CQWP in the SharePoint Online. You can refer to:
    When to use the Content Query Web Part or the Content Search Web Part in SharePoint - SharePoint Online for enterprises
    In addition, there are some great articles about other web part for your reference:
    Data Viewer App for SharePoint Online
    Corporate News App
    Creating a SharePoint Cloud Business App Step by Step!
    Blog - Deploy A LightSwitch Application To Office 365 / SharePoint Online (Provider Hosted)
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for