Customize blog post display in Share Point 2013 in Cloud

Hi,
I am trying to modify look of the blog post (single post entry), but running into issues.
This is the full scenario I am trying to accomplish:
I have custom content type that extends post with few fields that I need in order to pull specific post entries on different pages(this is not an issue).
I have Yes/No field for post in the blog to allow or disallow comments.
If the check box is set to No I don't want to display anything that would have to do with the comments.
Idea is to use overrideCtx but in order to be able to check the value of the Yes/No column I need to add it to the Current View, this is where the problem starts.
Any time I modify the current view and add a field the title and body of the post entry are no longer displayed on the page and there is no way for me to change it back.
Anybody has any ideas why is this happening, or was trying to do something simillar?
Thanks
Brano

Unfortunately the javascript (example above) didn't work for me. 
What I end up doing is (separate js so the code can be changed and reused for multiple blog sites) and reference it in the Content Editor:
(function () {
var overrideCtx = {};
overrideCtx.Templates = {};
overrideCtx.Templates.Fields = {'Body':{'View': CBody}};
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
function CBody(ctx) {
var items = ctx.CurrentItem;
var ret = ctx.CurrentItem.Body;
if(ctx.CurrentItem['AllowPost'] == 'Yes'){
_spBodyOnLoadFunctionNames.push("hideComments");
return ret;
function hideComments(){
//look for elements with specific IDs and Classes to hide
I am wondering if there is shorter way so I don't have to call _spBodyOnLoad so it doesn't add too much overhead
If anyone know better way let me know?
Thanks
Brano

Similar Messages

  • Open pdf in mobile browser (share point 2013)

    hello,
    I need to Open pdf  in mobile  browser (share point 2013).i tried browser handling type in  permissive mode.
    but i couldn't view the pdf when i access through mobile browser.
    is there any work around to do this .?
    any help would be appreciated.
    Thanks regards, Vignesh.

    Per the earlier thread, your best bet is to use Office Web Apps in conjunction with SharePoint 2013 to display PDFs. Otherwise a browser needs a control (which most if not all mobile browsers will not have) to handle viewing PDFs in the browser.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • In Share point 2013 how to add more than 2 group by in list

    In Share point 2013 how to add more than 2  group by in list .

    Hi,
    According to your post, my understanding is that you wanted to group by on more than 2 columns in a List View in SharePoint 2013.
    There is no out of the box way to achieve your scenario directly.
    As a workaround, we can use the following method to achieve it.
    First, we can insert Data View Web Parts in SharePoint Designer 2013.
    It’s because the SharePoint Designer 2013 can’t support Design view, then the Data View Web Parts XSL cannot be visually manipulated.
    You can refer to the following article to insert a Data View Web Part.
    http://www.synergyonline.com/Blog/Lists/Posts/Post.aspx?ID=259
    And then, you can use the following solution that can be used to
    group by on more than 2 columns in a view
    to implement it in SharePoint Designer 2013.
    http://techtrainingnotes.blogspot.com/2011/01/sharepoint-group-by-on-more-than-2.html
    http://chanakyajayabalan.wordpress.com/2010/03/15/group-by-for-more-than-two-columns-in-sharepoint-list/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Share Point 2013 Designer not showing platform as "Share point 2013 Workflow" at the time of workflow creation.

    Hi All,
    I am trying to create workflow for my Share Point 2013 site. To do this, I installed Share Point 2013 Designer,
    then created couple of workflows in that, using "Share point 2013 Workflow" platform.
    But when today, I tried to create workflow, I found that "Share point 2013 Workflow"  platform option was not there. Because of that I am unable to create and deploy workflow on my SP 2013 site.
    I am really not getting the problem. As I created some workflows using "Share point 2013 Workflow"  platform on same share point designer and now I dont see that option in dropdown.
    Please suggest me something for this. I tried all possible solution which are present on internet.
    Thanks in advance.

    Hi,
    Since you are posting the thread in SharePoint 2013 server forum, I assume you are using SharePoint server 2013.
    I understand the option SharePoint 2013 platform disappears when you create a workflow in Designer, the issue might be caused by workflow manager. Please refer to the article below and check workflow configuration per the steps listed:
    http://techbrij.com/the-option-sharepoint-2013-workflow-platform-not-available
    Regards,
    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] .
    Rebecca Tu
    TechNet Community Support

  • What are share point server 2013 & Share point Designer 2013 & Office 365 & Yammer & Share point 2013 & Windows server 2008 server & Windows Server 2012 Server Data Center?

    I need some clarifications.
    What are share point server 2013 & Share point Designer 2013 & Office 365 & Yammer & Share point 2013 & Windows server 2008 server & Windows Server 2012 Server Data Center? How each them are related in collaboration system?
    Is Share point server 2013 and Share pointer Designer 2013 available in 32bit version? If not, then how to use it in 32 bit machine by using any VMs?
    Thanks
    Senthil

    SharePoint Server 2013:
    http://office.microsoft.com/en-us/microsoft-sharepoint-collaboration-software-FX103479517.aspx
    SharePoint Designer 2013:
    Designer is used to develop SharePoint pages using HTML/CSS/JS as well as SharePoint Designer Workflows
    Yammer: 
    https://about.yammer.com/
    Windows Server is Windows, but the Server OS. SharePoint runs on top of supported Windows Servers editions (see http://technet.microsoft.com/en-us/library/cc262485.aspx).
    SharePoint Server is 64-bit only (trial:
    http://technet.microsoft.com/en-us/evalcenter/hh973397.aspx), although Designer does have a 32-bit edition (full product:
    http://www.microsoft.com/en-us/download/details.aspx?id=35491).
    You will need the capability to run 64bit VMs. Minimum recommended all-in-one VM for SharePoint is to allocate 24GB of RAM, but you can get away with as little as 12GB (I wouldn't go below that). Because of this, it generally rules out 32bit OSes as a virtual
    machine host.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Mobile Application in share point 2013

    hi,
    How to Develop mobile application in share point 2013, i don't know how to do this one ,
    could please explain step by step.

    Hi,
    SharePointProMag has a very good guide on Mobile App-
    http://sharepointpromag.com/sharepoint/create-sharepoint-integrated-mobile-app-add-support-search-rest-crud-operations
    http://msdn.microsoft.com/en-us/library/office/ms464268(v=office.14).aspx
    http://technet.microsoft.com/en-us/library/fp161352(v=office.15).aspx
    If you want to render SharePoint using your mobile phones, then you should consider the following
    Device channels - http://msdn.microsoft.com/en-us/library/jj862343
    http://msdn.microsoft.com/en-us/library/jj822363.aspx
    and you can explore Rest APIs , JSOM for integrating your application with SharePoint
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Move dashboards from perfomance point server 2007 to share point 2013

     Hello every one,
    can you please help me in the below.
    I have to move the reports and dash boards from old to new share point (2013) site. There is already a share point site built and running successfully. I need to add 1 section of dash boards and reports into sharepoint 2013 from the old site.
    For this I need to add new sub site site rite? My question here is how to bring dash boards and reports from old site to new site (share point 2013).
    Old site is performance point server 2007 and new site is share point 2013.
    Thanks
    Kumar

    Given you aren't using PowerPivot for SharePoint, you can continue using SSAS 2008 R2 for your cubes and data connections. BI dashboards, Lists, and so forth are just SharePoint content, and they get upgraded when you migrate to 2013.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to visualize the power map in office 365 or share point 2013??

    Hi,
    I have designed the power map within excel.
    Here power map can be able to saw within excel, but  i need to visualize to web browser like share point 2013 or office 365.
    Anyone know how to display it?
    Thanks,
    Ramu

    With Power Map you have the ability now to create a video of the tour when you are done.  You can then use this video file to share the tour in SharePoint, in Power Points, YouTube, etc.
    http://office.microsoft.com/en-us/excel-help/export-a-power-map-tour-as-a-video-HA104106952.aspx
    At this point this is the only way to share the tours unless you open up the Excel file and launch Power Map.

  • How can i upload two different logos for 2 sub sites [which falls under one super site ] in share point 2013 ?

    hello,
    How can i upload two different logos for 2 sub sites [which falls under one super site ] in share point 2013 ?
    thanks,
    Jay

    Hi,
    I understand that it applied first logo to all other sub sites.
    Please make sure that you change the logos in the subsites.
    If we change the logo in the root site, the logos in the subsites will be changed at the same time.
    However, we can change the logo in the subsites separately.
    We can go to a subsite, click the Site Sitting-> Look and Feel-> Title, description, and logo->Insert Logo->select a picture, then it will has a different logo than the root site.
    Then go to the other subsite, click the Site Sitting-> Look and Feel-> Title, description, and logo->Insert Logo-> select another picture, then it will has a different logo that the first subsite.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Captivate 6 video files not loading on share point 2013

    Hello,
    I use Adobe Captivate 6 and have courses that I'm loading to a share point site for learners to access. I worked off of my C: drive, then copied the published folders on a shared drive. I then linked the html URL to play the course.
    When the courses were built, some simulations were recorded in video mode. I noticed that in the published folder, Captivate creates mp4 files. For some reason, when the course plays on share point, it does not play these files and the course clocks until you advance to the next slide. Everything else works fine, no issues.
    I'm looking to see if anyone else has encountered this same issue and am curious what was done to fix it.
    Thanks! Marissa

    Thanks for the reply Ron! I checked with my share point admin and she said that share point 2013 (our version) can play mp4 files, so there shouldn't be an issue there.
    She's not familiar with Captivate so it's kind of difficult getting to the root of the problem, but somewhere along the line, when the course link is accessed, Captivate is looking for that mp4 file to play it, and it cannot find the file.
    I thought then maybe I would take the mp4 file in the published folder and try to embed the video directly into the course, but I haven't tried that.
    Any other suggestions?
    Thanks, Marissa

  • Enable Single Sign On in Share point 2013 with external IDP like CAS (Central Authentication Service)

    Hi,
    We need to configure our share point 2013 web application to work with third party site using Single Sign On (SSO) service.
    Currently we are using CAS (Central Authentication Service) as third party site. Trying to accomplish this from the last few days didn't found anything helpful.
    Please let us know is share point 2013 support authentication with any external site and if not is there any alternative to achieve this e.g. via ADFS or something else. Please help.
    Neetu Tanwar Software Developer

    You can do CAS and SharePoint auth using below
    Check below
    http://webcache.googleusercontent.com/search?q=cache:EhC3JLvqDWwJ:balendrant.blogspot.com/2013/05/external-authentication-providers-for.html+&cd=4&hl=en&ct=clnk&gl=in&client=firefox-beta
    http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=9&ved=0CFEQFjAI&url=http%3A%2F%2Fdownload.microsoft.com%2Fdocuments%2FFrance%2FInterop%2F2010%2FFederated_Collaboration_With_Shibboleth_2_0_and_SharePoint_2010_technologies-1_0.docx&ei=i0u1U6bVB4KMuATP94II&usg=AFQjCNF09JusWUS97-em12JFpaH64Pxa3A&bvm=bv.70138588,d.c2E&cad=rja
    If this helped you resolve your issue, please mark it Answered

  • I have 2 blogs on my site, I need to customize Blog Post Details Layout diff for each???

    I have 2 blogs on my site, I need to customize Blog Post Details Layout diff for each???

    Hi,
    Unfortunately it is not possible to have multiple details layouts for your blog per site at this stage. 
    Kind regards,
    -Sidney

  • Share Point 2013 MP for SCOM 2007 R2 - Not Monitored State

    Hi All,
    I have imported SharePoint 2013 MP in SCOM 2007 R2 and the sharepoint farm group is in "not monitored" state, moreover only one computer name out of all sharepoint farm servers is being populated in unidentified machines (rest are not being
    shown anywhere in Microsoft SharePoint folder).
    I have followed all the steps as per installation guide of sharepoint 2013 (foundation & Server) MP. Configured run as account has the farm admin rights.
    Please help as it seems discovery is not working properly.
    Regards,
    Prabh.

    Hi,
    Hope the below blog be helpful:
    Configuring the SharePoint 2013 Management Pack
    http://blogs.technet.com/b/kevinholman/archive/2013/05/14/configuring-the-sharepoint-2013-management-pack.aspx
    Please go through it.
    Regards,
    Yan Li
    Regards, Yan Li

  • Correct way to install SHARE POINT 2013 ON WINDOWS 2012 R2

    HI
    INSTALLING SHAREPOINT 2013 ON WINDOWS 2012 R2 IS NOT SUPPORTED , when i search for this i found a kb article
    https://support.microsoft.com/en-us/kb/2891274
    SharePoint 2013 SP1 support in Windows Server 2012 R2,
    So in windows server 2012 R2 machine i should install
    1) install sharepoint pre requisites 
    2) run sharepoint setup and install binraries
    3)and after download sharepoint 2013 SP1 and install 
    is the right steps will i do for INSTALLING SHAREPOINT 2013 ON WINDOWS 2012 R2?
    adil

    Get the SharePoint 2013 w/ SP1 ISO from the MSDN or VLSC (or Download Center if using SharePoint Foundation 2013) -- this is required for Windows Server 2012 R2, other media will not work. Follow the standard SharePoint install process, e.g. run the pre-req
    installer, and then install SharePoint.
    Once completed, install the appropriate version of SP1 for your product. See http://thesharepointfarm.com/2015/04/list-of-good-sharepoint-2013-service-pack-1-packages/
    for a list of packages.
    Trevor Seward
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How can i configure Distributed cache servers and front-end servers for Streamlined topology in share point 2013??

    my question is regarding SharePoint 2013 Farm topology. if i want go with Streamlined topology and having (2 distribute cache and Rm servers+ 2 front-end servers+ 2 batch-processing servers+ cluster sql server) then how distributed servers will
    be connecting to front end servers? Can i use windows 2012 NLB feature? if i use NLB and then do i need to install NLB to all distributed servers and front-end servers and split-out services? What will be the configuration regarding my scenario.
    Thanks in Advanced!

    For the Distributed Cache servers, you simply make them farm members (like any other SharePoint servers) and turn on the Distributed Cache service (while making sure it is disabled on all other farm members). Then, validate no other services (except for
    the Foundation Web service due to ease of solution management) is enabled on the DC servers and no end user requests or crawl requests are being routed to the DC servers. You do not need/use NLB for DC.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Maybe you are looking for

  • My safari keeps crashing after 5 seconds

    My safari started quitting unexpectedly after about 5 seconds of opening last night. It works when I hook up my phones internet, or use the university internet but not my BigAir connection at home. Have tried various troubleshooting ideas from other

  • File Sender with CC Error handling

    When using the file sender with content conversion we often receive Parsing errors in the AFW monitoring due to bad messages. Q: how can we monitor and e-mail this errors from the AFW,does the CCMS covers everything? Alert monitoring?. another Q: In

  • Exporting final cut video into DVD.

    Hi I'm exporting video from final cut into IDVD but having problems as every video is pixelated, i need help in telling me which is are the best formats and settings to set it to, we are mostly doing wedding videos, and we want the quality of the dvd

  • Cant view itunes account details or make purchase with iphone

    Hi. I can log in to my itunes store account with my iphone 3gs. However, when i try to access account details or make a purchase i am prompted for my password again. When I enter this (correctly) I just get re-prompted immediately. I'm stuck in a loo

  • IPod disabled for over 23 million minutes

    When i turned my iPod on it showed that it is disabled for 23,547,746 minutes. I've tried plugging it into iTunes but it said to respond on my iPod, I can't as it's disabled. What can I do?