none
Page rating in the page

    Question

  • Hi,

    For each page of my library, I would like to display IN THE PAGE the page rating.

    How can I do it ?

    Can I do it with Jquery ? SPDesigner ?

    Regards,

    EM


    • Edited by Elmata Wednesday, February 7, 2018 9:29 AM
    Wednesday, February 7, 2018 9:28 AM

Answers

  • Hi Elmata,

    have you activated the Publishing Features  or not ? 

    Because The layout page used by the The standard Wiki library doesn't have the appropriate field control to show the "Rating " Field on the page itself. but by activating the publishing feature you will have another content type called "Enterprise Wiki Page" which exposes Ratings on the page itself. you need to do the following 

     

    - Turn publishing on

    - Goto "Pages" library

    - add "Enterprise Wiki Page" content type to this library as the default content type

    Please have a look also on this thread

    https://social.technet.microsoft.com/Forums/en-US/b1a8bd87-483a-45f1-a3aa-491e99a874c0/add-rating-on-wiki-page?forum=sharepointgeneralprevious



    Best Regrads, Ahmed Madany MCTS @twitter http://twitter.com/ahmed_madany @Blog http://ahmedmadany.wordpress.com @LinkedIn http://eg.linkedin.com/pub/ahmed-madany/35/80/2b6



    Saturday, February 10, 2018 3:05 PM
  • Hi Elmata,

    let me display the difference between the 2 types :-

    1- Site pages Libray contains the pages that are created, edited, and customized by end users. Site pages come in two types—a standard page and a Web Parts page. A standard page contains text, images, Web Parts, and other elements. A Web Parts page contains Web Parts in Web Part zones. They have a predefined layout that uses Web Part zones. Both types of site pages are edited using a Web browser or Microsoft SharePoint Designer.

    2- Pages Library contains any publishing pages where you can easily manage any number of content types plus using page layouts to the publishing pages , just you need to turn on publishing pages in your site.

    i hope this will help you , if you still need any assistance just ping me here


    Best Regrads, Ahmed Madany MCTS @twitter http://twitter.com/ahmed_madany @Blog http://ahmedmadany.wordpress.com @LinkedIn http://eg.linkedin.com/pub/ahmed-madany/35/80/2b6

    • Marked as answer by Elmata Thursday, February 15, 2018 1:25 PM
    Thursday, February 15, 2018 10:34 AM
  • You are welcome in any time Elmata

    let's start from the beganing, you can create wiki Pages using one the following 2 options :-
    1- Enterprise Wiki site template ( where Pages Libray is deployed by default ).
    2- Create wiki page Library (Site Pages Library).


    In Enterprise Wiki Site (where Pages Libray is available) you get PageLayouts whereas in Wiki Page Library (SitePages) you get ONLY Text Layout.you can’t add any fields(rating,any custom site columns) to the text layouts But you can do it by editing Page Layouts which are only available in pages library NOT in sitePages.

    Then With Wiki Page Library(SitePages Library) you get Text Layout in lieu of Page Layout.

    With Enterprise Wiki you get Rating OOTB. This is placed on the OOTB page layouts.BUT , You don’t get these with Wiki Page Library (sitepages). While you can manually add metadata to Wiki Page Library(Site Pages), you can’t add the fields to the text layouts. This means users would have to edit the content of the page, then separately edit the properties of the page to enter metadata, which is not good for encouraging metadata entry. You can enable rating for the Wiki Page Library, but again, the only way for users to rate a page is to go to the View All Pages view of the library.

    most of above paragraphes are excertped from the below link, it is helpful

    https://bernado-nguyen-hoan.com/2013/05/10/differences-between-enterprise-wiki-and-wiki-page-library-in-sharepoint-2013/

    i hope this will help you , an time you are welcome, don't hestiate to contant me.


    Best Regrads, Ahmed Madany MCTS @twitter http://twitter.com/ahmed_madany @Blog http://ahmedmadany.wordpress.com @LinkedIn http://eg.linkedin.com/pub/ahmed-madany/35/80/2b6

    • Marked as answer by Elmata Monday, February 19, 2018 1:07 PM
    Monday, February 19, 2018 10:57 AM

All replies

  • Hello, 

    Yes you can apply it using  JQuery , but also SharePoint already have out-of-the box rating feature where you can apply without needing to custom solution , so  let me provide you with the following point about  out of the box rating feature , if it doesn't satisfy  your needs , we can go though development options 

    1- Enabling the rating feature(Adding rating Column) to library/List

    https://support.office.com/en-gb/article/Enable-users-to-rate-content-fe6302dc-d521-4a56-99a6-133b63ee7afc#__add_the_ratings

    2- Enabling the rating feature(Adding rating Column) to Content Type.

    https://support.office.com/en-gb/article/Enable-users-to-rate-content-fe6302dc-d521-4a56-99a6-133b63ee7afc#__toc260488880

    3- Enabling the rating feature(Adding rating Column) to Pages Layout of Publishing pages (Important Point you must see)

    https://support.office.com/en-gb/article/Enable-users-to-rate-content-fe6302dc-d521-4a56-99a6-133b63ee7afc#__toc260488881

    4- to enable people rating the content , please apply steps mentioned in the following URL

    https://support.office.com/en-gb/article/Enable-users-to-rate-content-fe6302dc-d521-4a56-99a6-133b63ee7afc#__toc260488882  

    Please don't hesitate to communicate me again if you have any questions.


    Best Regrads, Ahmed Madany MCTS @twitter http://twitter.com/ahmed_madany @Blog http://ahmedmadany.wordpress.com @LinkedIn http://eg.linkedin.com/pub/ahmed-madany/35/80/2b6

    Wednesday, February 7, 2018 5:00 PM
  • Hi Ahmed, 

    I know this feature but I try to add the evaluation in the page not on the list of pages.

    You know what I mean ?

    Regards,

    EM.

    Thursday, February 8, 2018 9:39 AM
  • Hi Ahmed, 

    I know this feature but I try to add the evaluation in the page not on the list of pages.

    You know what I mean ?

    Regards,

    EM.

    Hi Elmata,

    any publishing page in SharePoint uses Page Layout to take the layout , so you need to add the rating column inside the page layout and by default any publishing page uses this page layout the rating field will appear in the page, please have a look on the following section 

    **Enabling the rating feature(Adding rating Column) to Pages Layout of Publishing pages 

    https://support.office.com/en-gb/article/Enable-users-to-rate-content-fe6302dc-d521-4a56-99a6-133b63ee7afc#__toc260488881

    Also, you can implement it easily if you want that using JQuery and Rest Api ,

    1- just create 3 site columns .totalRating. RatingCounter, RatingAvgColumn(Computed Colmn)-->(=TotalRating/RatingCoun)

    2- add these columns to your pages list.

    3- add rating html and css in your page layout, then write ur JQuery code, on every click on the rating field ,count rating count, and calculate the average as above formula.

    but i recommend to try using the out-of-the box feature as mush as u can.

    don't hesitate to reply on me.


    Best Regrads, Ahmed Madany MCTS @twitter http://twitter.com/ahmed_madany @Blog http://ahmedmadany.wordpress.com @LinkedIn http://eg.linkedin.com/pub/ahmed-madany/35/80/2b6


    Thursday, February 8, 2018 4:05 PM
  • Hi,

    Can you provide a screenshot of where you want to display the rating?

    As Ahmed M. Madany mentioned, you can refer to the following article, It describes how to add a rating to the publishing page.

    https://support.office.com/en-gb/article/Enable-users-to-rate-content-fe6302dc-d521-4a56-99a6-133b63ee7afc#__toc260488881

    This is a reference about how to add rating to SharePoint site by JavaScript:

    http://npatro.com/using-like-and-rating-functionality-in-sharepoint-2013-pages/

    Best Regards,

    Carl Zhou


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Friday, February 9, 2018 9:53 AM
  • Hi,

    I use oslo masterpage.

    When I create a wiki page (sitepages library), how can I say which template is used?

    I succeed to add the evaluation rating colum where I see all of sitepages.

    But when I click on a specific page I don't succeed to add or see the rating.

    I would like to able some user to vote for a page to look like to the microsoft section : 

    "Was this information helpful?", you know what I mean? 

    But I don't succeed to display the stars in the page.

    I certainly don't have to edit the correct page. Why article left?

    Regards,

    EM.

    Friday, February 9, 2018 1:57 PM
  • Hi Elmata,

    have you activated the Publishing Features  or not ? 

    Because The layout page used by the The standard Wiki library doesn't have the appropriate field control to show the "Rating " Field on the page itself. but by activating the publishing feature you will have another content type called "Enterprise Wiki Page" which exposes Ratings on the page itself. you need to do the following 

     

    - Turn publishing on

    - Goto "Pages" library

    - add "Enterprise Wiki Page" content type to this library as the default content type

    Please have a look also on this thread

    https://social.technet.microsoft.com/Forums/en-US/b1a8bd87-483a-45f1-a3aa-491e99a874c0/add-rating-on-wiki-page?forum=sharepointgeneralprevious



    Best Regrads, Ahmed Madany MCTS @twitter http://twitter.com/ahmed_madany @Blog http://ahmedmadany.wordpress.com @LinkedIn http://eg.linkedin.com/pub/ahmed-madany/35/80/2b6



    Saturday, February 10, 2018 3:05 PM
  • Hi Elmata,

    Any luck  with above steps?? let us know if you still need any help


    Best Regrads, Ahmed Madany MCTS @twitter http://twitter.com/ahmed_madany @Blog http://ahmedmadany.wordpress.com @LinkedIn http://eg.linkedin.com/pub/ahmed-madany/35/80/2b6

    Wednesday, February 14, 2018 8:49 PM
  • Hi,

    Ok it works.

    I tried to activate it on "Sitepages" but it doesn't work, better on "Pages" list.

    Why this difference ? What the differences between these list of pages ? 

    Regards,

     EM.

    Thursday, February 15, 2018 9:44 AM
  • Hi Elmata,

    let me display the difference between the 2 types :-

    1- Site pages Libray contains the pages that are created, edited, and customized by end users. Site pages come in two types—a standard page and a Web Parts page. A standard page contains text, images, Web Parts, and other elements. A Web Parts page contains Web Parts in Web Part zones. They have a predefined layout that uses Web Part zones. Both types of site pages are edited using a Web browser or Microsoft SharePoint Designer.

    2- Pages Library contains any publishing pages where you can easily manage any number of content types plus using page layouts to the publishing pages , just you need to turn on publishing pages in your site.

    i hope this will help you , if you still need any assistance just ping me here


    Best Regrads, Ahmed Madany MCTS @twitter http://twitter.com/ahmed_madany @Blog http://ahmedmadany.wordpress.com @LinkedIn http://eg.linkedin.com/pub/ahmed-madany/35/80/2b6

    • Marked as answer by Elmata Thursday, February 15, 2018 1:25 PM
    Thursday, February 15, 2018 10:34 AM
  • Ok Ahmed, thanks.

    So, it's normal that I can't create a wiki enterprise page in site pages ?

    Can I display it in a page layout from a wiki pages library ?

    Regards,

    EM

    • Edited by Elmata Thursday, February 15, 2018 3:34 PM precision
    Thursday, February 15, 2018 1:42 PM
  • Hello Elmata ,

    you can only  create standard wiki page inside site pages and wiki enterprise pages will only be available in Page library when you turn on the publishing feature, so it is so normal to not able creating wiki enterprise pages in site pages. 

    but keep in your mind that publishing feature doesn't exist in SharePoint foundation .

    hope this will help you and don't hesitate to ping me here anytime .


    Best Regrads, Ahmed Madany MCTS @twitter http://twitter.com/ahmed_madany @Blog http://ahmedmadany.wordpress.com @LinkedIn http://eg.linkedin.com/pub/ahmed-madany/35/80/2b6


    • Edited by Ahmed Madany Thursday, February 15, 2018 3:36 PM
    Thursday, February 15, 2018 3:35 PM
  • Hi,

    Ok Ahmed.

    Last question : sorry to insist, I would like to know/understand :)

    I have a wiki library where I can activate the evaluation but in the layout I don't see the rating (only on the display of all pages)

    list of pages (evaluation displayed)

    in the page (no evaluation for the moment)

    Can I display the evaluation in the layout or shall I recreate my pages ?

    I appreciate your help.

    Regards,

    EM.

    Monday, February 19, 2018 9:29 AM
  • You are welcome in any time Elmata

    let's start from the beganing, you can create wiki Pages using one the following 2 options :-
    1- Enterprise Wiki site template ( where Pages Libray is deployed by default ).
    2- Create wiki page Library (Site Pages Library).


    In Enterprise Wiki Site (where Pages Libray is available) you get PageLayouts whereas in Wiki Page Library (SitePages) you get ONLY Text Layout.you can’t add any fields(rating,any custom site columns) to the text layouts But you can do it by editing Page Layouts which are only available in pages library NOT in sitePages.

    Then With Wiki Page Library(SitePages Library) you get Text Layout in lieu of Page Layout.

    With Enterprise Wiki you get Rating OOTB. This is placed on the OOTB page layouts.BUT , You don’t get these with Wiki Page Library (sitepages). While you can manually add metadata to Wiki Page Library(Site Pages), you can’t add the fields to the text layouts. This means users would have to edit the content of the page, then separately edit the properties of the page to enter metadata, which is not good for encouraging metadata entry. You can enable rating for the Wiki Page Library, but again, the only way for users to rate a page is to go to the View All Pages view of the library.

    most of above paragraphes are excertped from the below link, it is helpful

    https://bernado-nguyen-hoan.com/2013/05/10/differences-between-enterprise-wiki-and-wiki-page-library-in-sharepoint-2013/

    i hope this will help you , an time you are welcome, don't hestiate to contant me.


    Best Regrads, Ahmed Madany MCTS @twitter http://twitter.com/ahmed_madany @Blog http://ahmedmadany.wordpress.com @LinkedIn http://eg.linkedin.com/pub/ahmed-madany/35/80/2b6

    • Marked as answer by Elmata Monday, February 19, 2018 1:07 PM
    Monday, February 19, 2018 10:57 AM
  • Elmata  , is Everything clear now ? let me know please if you still have any question .

    Best Regrads, Ahmed Madany MCTS @twitter http://twitter.com/ahmed_madany @Blog http://ahmedmadany.wordpress.com @LinkedIn http://eg.linkedin.com/pub/ahmed-madany/35/80/2b6

    Monday, February 19, 2018 12:08 PM
  • Clear Ahmed, thank you very much.

    Regards,

    EM

    Monday, February 19, 2018 1:08 PM