• fredrege
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 8
    Replies

Hi folks.  My HR department would like me to disable the edit icon (the yellow pencil) on each users' Chatter profile page  (specifically on the "Contact" information, not necessarily for the "About Me" section).  Only system administrators (or users with a particular profile) would be able to see the pencil, and edit the information in that area.

 

Has anyone done this before?  Any ideas on how to do it?  JavaScript that's read when the page loads, perhaps?

 

Thanks!

Hello folks.  This is probably very simple...

 

I am creating an apex page, and want to imbed chatter updates into the page.  The Apex code for the feed is as follows:

 

List<NewsFeed> myfeed = [SELECT Id, Type,                          

CreatedById, CreatedBy.FirstName, CreatedBy.LastName,                         

ParentId, Parent.Name,                          

Body, Title, LinkUrl, ContentData, ContentFileName,                             

(SELECT Id, FieldName, OldValue, NewValue                              

FROM FeedTrackedChanges ORDER BY Id DESC),                              

(SELECT Id, CommentBody, CreatedDate,                             

CreatedBy.FirstName, CreatedBy.LastName                             

FROM FeedComments ORDER BY CreatedDate LIMIT 10),                             

(SELECT CreatedBy.FirstName, CreatedBy.LastName                             

FROM FeedLikes)                         

FROM NewsFeed                         

ORDER BY CreatedDate DESC, Id DESC                         

LIMIT 20];

 

Of course, I can't place this code directly into a Visualforce <apex> tag (or can I?).  So the question is, where do I save this code, and how do I reference it in my VF page?

 

Thanks!

Hi folks.  My HR department would like me to disable the edit icon (the yellow pencil) on each users' Chatter profile page  (specifically on the "Contact" information, not necessarily for the "About Me" section).  Only system administrators (or users with a particular profile) would be able to see the pencil, and edit the information in that area.

 

Has anyone done this before?  Any ideas on how to do it?  JavaScript that's read when the page loads, perhaps?

 

Thanks!

Hello folks.  This is probably very simple...

 

I am creating an apex page, and want to imbed chatter updates into the page.  The Apex code for the feed is as follows:

 

List<NewsFeed> myfeed = [SELECT Id, Type,                          

CreatedById, CreatedBy.FirstName, CreatedBy.LastName,                         

ParentId, Parent.Name,                          

Body, Title, LinkUrl, ContentData, ContentFileName,                             

(SELECT Id, FieldName, OldValue, NewValue                              

FROM FeedTrackedChanges ORDER BY Id DESC),                              

(SELECT Id, CommentBody, CreatedDate,                             

CreatedBy.FirstName, CreatedBy.LastName                             

FROM FeedComments ORDER BY CreatedDate LIMIT 10),                             

(SELECT CreatedBy.FirstName, CreatedBy.LastName                             

FROM FeedLikes)                         

FROM NewsFeed                         

ORDER BY CreatedDate DESC, Id DESC                         

LIMIT 20];

 

Of course, I can't place this code directly into a Visualforce <apex> tag (or can I?).  So the question is, where do I save this code, and how do I reference it in my VF page?

 

Thanks!