Customize a WebPart without "target audiences" - sharepoint

Hy,
I use SharePoint Foundation 2010 and I learned that the "target audiences" are disabled on the Foundation version.
I need to customize a WebPart on a wiki page when A user of a certain group is connected.
Have you an idea ?
Thanks
Sam

Alternatively you can add a new web part page in your SharePoint site
and then add this Documents web part on the page. Once it is done,
Give access to only intended users for this page. Which means control
access at page level.
source

I have found a solution.
I insert JavaScript code in a WebPart in my wiki page from my SharePoint.

Related

sharepoint online custom web part with jquery to realize multi-comments

As we know, we can enable comments in the sharepoint admin center, but it just shows in the bottom of sharepoint modern page.
I want to realize custom webpart and add more than one comments in a sharepoint mordern page as below:
enter image description here
can any helps?
The built-in page comment web part in SPO modern UI has not been exposed, we can't make use of it. We need to develop a custom SPFx web part. There is a plugin "jquery-comments", we can use it in the webpart. Please take a reference of below demo:
https://github.com/kongmengfei/SharedSPFx/blob/master/js-advanced-commenting/README.md
Test Result:
Related references:
https://developer.microsoft.com/en-us/office/blogs/sharepoint-framework-community-call-recording-12th-of-march-2020/

SharePoint Designer 2013 Edit Site Pages

Here i have a issue with SharePoint Designer 2013, an Modern site page was build on SharePoint Online. But i need to customize the modern page and adding url to quick links.
Though modern page doesn't support CEWP or SEWP it's hard to custom the page. But what i am looking is to edit the site pages from SPD 2013 and if i edit the planner.aspx will changes save, unfortune i have Url to navigate the user from the one page to other url(https://...Planner.aspx).
What i want is when user clicks on above link, it should open in new tab and i have to align the page with Css branding. i am adding something like this to open in new tab using SPD href="/abc/xyz/3/SitePages/Planner.aspx?web=1 target="_blank" but no luck at the end.
Looking for an solution, Thanks in advance !
As far as i understand, using SharePoint Designer is not supported for modying the SharePoint modern experience.
You should be using the SharePoint Framework to modify your pages, you can see the full list of supported modifications here:
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-customizations
However, if you are used to using CEWP and SEWP, you can deploy an app which replicates the functionality in the modern pages
https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-script-editor
Atlthough this is probably not supported either, it should allow you to make the changes you want.

create a custom left navigation for default.aspx in sahrepoint O365

I am presently working in Sharepoint O365. I need to build a custom left navigation for only my default.aspx page using Sharepoint designer, while keeping the normal navigation for the rest of the site. I have seen it is possible in Sharepoint 2010. However, I am unaware of any workaround in O365. Any knowledge regarding this shall be appreciated.
Please check the codeless solution:
Custom Left Navigation in SharePoint 2013
Or use custom html code to make a navigation:
https://www.w3schools.com/howto/howto_js_sidenav.asp

Not able to add any WebPart on the site page

I have created a "Team Site" on SharePoint online. When I edit a site page, I am not able to view any option of adding a web part on the page. All I can see are following options. Please click the link to see the options. I don't see any web part option there.
I believe there are some features that need to be activated on this site collection. Does anybody know which features need to be activated here to enable web parts on the page?
Unfortunately, WebPart doesn't work in New Experience. You need to be in Classic View to add the WebPart.
You can't add web part to New experience mode Sharepoint page. At least not for now. But you can create a page in Classic mode, it's the same as it was in SP2013.
How to do it - Read this article

how can I embed server codes in sharepoint pages

We have a SharePoint site with a lot of pages. we create pages using SharePoint wizard not in VS. I need to add in one page and use a server code to read from session and write in this label.
After I open a page in VS I only see some code in comments.
How can i do this?
Create Visual webpart and add it on page. or use delegate control with user control.

Resources