Updating content in all subsites

hi guys,
I have different site collection with more than 300 sub sites, I want to put hyperlink in all sub sites, I tired to change the navigation but they dont inherit from root site is there any way which I can do that not manually??!! please help

You should use recursive function call loop for all subsite (and subsite withing each subsite) , for upto nth level. And can add the code , as suggested by Nadeem, in your recursive function. Something like this -
#Add link to navigation
function AddNavLink ([Microsoft.SharePoint.SPWeb]$subSite)
if ($subSite -ne $null)
$node = new-object Microsoft.SharePoint.Navigation.SPNavigationNode("SomeTitle", "SomeUrl")
$subSite.Navigation.TopNavigationBar.AddAsLast($node)
$subSite.Update()
#recursively traverse all subsites within each subsite
function IterateSubSites ([Microsoft.SharePoint.SPWeb]$subSite)
if ($subSite -ne $null)
AddNavLink($subWeb)
if($subSite.Webs -ne $null)
foreach($subsites in $subSite.Webs)
IterateSubSites($subsites)
#Add link for root site and start recursive function call for subsites depth
$site = Get-SPSite http://yoursitecollection
foreach($subWeb in $site.AllWebs)
if($subWeb.IsRootWeb)
AddNavLink($subWeb)
else
IterateSubSites($subWeb)
Thanks
Ganesh Jat [My Blog |
LinkedIn | Twitter ]
Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

Similar Messages

  • I backed up my ipod. I then updated it but all of my data is still gone. How do I get my data back??

    I backed up my ipod. I then updated it but all of my data is still gone. How do I get my data back??

    Were the app in your iTunes library? If not the app data in the backup has no place to go. Redownload the apps in your iTunes libaray
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    and then restore from backup.
    iOS: How to back up and restore your content
    Otherwise, try restoring from backup again.
    If still problem that means the backup does not include the data.

  • Dynamically Updating Content Server Portlets

    [urlHi, I am currently having difficulty dynamically updating content server portlets.  I have a portlet of the following form:[/url]
    ArticleName Author Title Date mystory author1 title1 04/05/01
    story2 author2 title2 06/07/04
    story author3 title3 01/02/03
    So I have this table where each one of the line items is an article in the content server. So, for example the first line item is an article "mystory" by "author1", with title "title1" and date "04/05/01" additionally there is an article text field, but this isn't displayed unless I click on the article name.
    I can set up the basics of this portlet, but when I try to add any real functionality I run into one of two problems.
    First Problem: Passing Information
    I cannot find a way to pass information between content portlets. For instance, if the user would like to "re-sort" this table based on "date", I would like to have the user click on the "date" column heading and then reload the page. To do so, I would have to pass the section name back to the page so that it could resort based on this data. I have not found anyway to effectively pass information to a content server portlet. I am building these pages through use of the presentation template framework (so I can have access to the content items) but that seems to change the way portlets are handled.
    I got around this limitation with a regular portlet by creating an intermediary page which captures passed information and stores it to the session state. Once the information was in the session state, it is accessible to the portlet on the first page. However, this only works because remote portlets do not change their session id once loaded. Content Server portlets, on the other hand, change their session id after every reload of the browser or page change. I can send information from a content server portlet to an intermediary page, but I cannot send it back to the portlet because the session id has changed so I have no idea of knowing where to send the information. I can write it to a session state, but by the time I return to the portal page, the content server has changed its session id so it does not know where to look any longer.
    I suppose it would be possible to create an application state variable and append it with some static token (if there is some static variable per portal session) but I would rather not have to deal with application variables if at all possible.
    Second Problem: Dynamically Updating PCS Tags
    Even if I were able to the pass information back to my content server portlet, I run into another issue. The easiest way to sort content server items is using the filter command in the pcs:foreach tag. So, if I wanted to sort by author name, I could do something like the following <pcs:foreach var="item" expr="filter(folderByName('content'), filtered.name == '"name")" or something like that (the syntax may be incorrect, I just wrote this off the top of my head). However, it appears that the way the presentation templates are compiled goes in the order of PCS tags THEN JSP. So I would have no way of dynamically changing the variable on which I sort. For example, if I clicked on "Date" above in my table, I would like to be able to dynamically change my code so that I sort on date, and not name. I cannot find a solution to this problem.
    My workaround is to use the pcs tags to write out all the possible sortings to java array objects. This gives me access to the data on a JSP level and based on whatever the user will chose, I could then display that array. While this works, it is extremely ghetto and inefficient. Any help or suggestions would be fantastic.
    Thanks a lot,
    Jason Grauel

    You can use just about any javascript you want in any Content Server presentation template including ones that are used for portlets.
    However, you should be careful to name javascript functions and global variables uniquely so that they do not conflict with any other javascript on the page. To do this, you can append the item id to function and variable names, for example,
    function doSomething<pcs:value expr="pcs_id"></pcs:value>() {
    return true;
    Randy

  • Spry Update Content

    I am using Spry Update Content on a test page at
    http://www.theboys.co.za/D'Vine/
    but I have a problem with Internet Explorer caching the updated
    page even though I have changed it. The pages are not cached in
    Google Chrome or FireFox. Is there anyway I can stop IE from
    caching the updated content? I'm using IE8, but presume this
    problem is in all IE.

    Use POST instead of get or add a unique string at the end of
    each request to IE thinks its a unique request.
    like this;
    function fadeIt(ele,url){
    Spry.Effect.DoFade('apDiv1',{ duration: 500, from: 100, to:
    0, finish: function() {
    Spry.Utils.updateContent(ele, url +'?cache=' + (new
    Date()).valueOf(), function() {
    Spry.Effect.DoFade('apDiv1',{ duration: 500, from: 0, to:
    100 });
    }

  • Adobe air doesn't submit updated content from ckeditor

    Hello,
    I'm wiriting applicaiton using adobe air and part of it is to display in iframe code of website with built in ckeditor (http://ckeditor.com).
    The problem is that when I want to submit modified text using ckeditor adobe air send old content.
    I'm trying to get new text from ckeditor element using:
         1. CK method "var content = CKEDITOR.instances.editor_content.getData();"
         2. jQuery call: "jQuery("#editor_content").val()"
    but both methods return always the initial text, not the modified one. It works without problems with all standard browsers (Chrome, FF, IE etc.).
    to test this issue you can open this url within adobe air window (i.e. as iframe):
         http://ckeditor.com/demo#flash
    then update content and try to "send to flash". It will send original content, not the modified one.
    Does anyone have any idea of workaround for this that can force Adobe Air to send send back updated content of ckeditor ?
    I would prefer to find solution on Adobe Air side, without experimenting with other versions of CK or alternative implementations of WSIWYG editors because it's part of bigger project.
    Any adivices welcomed!
    thanks,
    Marek

    The problem is fixed:
    With Windows Fix It at least I was able to uninstall Adobe Air. After Reisnatllation of Air and my application the system is running quite wonderful.
    Best regards,
    R. H.

  • Displaying only the updated contents

    i am working with jsp ,is there any way i can display only the updated contents of a form ie suppose a user updated 2 fields out of possible 10 fields i want to display only those 2 fields not all the 10,i am using mysql data base,can any one give a reply

    Compare the new value with the old value. If it differs, then it is changed. For primitives you can use == to compare and for objects you can use Object#equals() to compare.

  • Update content of application

    I have uploaded some application on the itune connects and its status is ready for sale but now require to change some content of the application.
    So its require to add the new version of the application or with in that version i can change the content and if possible then i have done as per it but content is not updated on the live means in the itunes but when i see the itune connects i will find the updated content over there but in real anyone see the app on the appstore then they find the old content only.
                   So now what all are the steps i require to update the content.
    Thanks,
    Maulik Trambadiya.

    Problem discovered

  • I updated my iphone all my contacts and photos are gone. How can I retrieve them?

    I updated my iphone all my contacts and photos are gone. How can I retrieve them?

    Have you failed to use the device as designed?
    If using the iPhone as designed, contacts are synced with a supported application on the computer or a cloud service.  Pictures taken with the device would be copied off to the computer on a regular basis.
    If you have been using the device as designed, simply sync the content back.
    If you have not been using the device as designed, you can try restoring from the most recent backup.  However, if that does not restore them, they are gone.

  • To update contents in the JTextArea

    Hai all,
    How to update contents in the JTextArea on changing the selection from one row to another row in JTable?Help resolve the issue.Thanks in advance.

    Get the selectionModel for the JTable and add a ListSelectionListener to it. The listener is notified for changes in the row selctions in the table. You can use JTable methods inside the listeners valueChanged method to get the information you need to update your JTextArea.

  • Update Content and Task Sequence Changes are Slow

    ConfigMgr 2012 R2
    When choosing "Update Content" from the deployment under the Deployment Types tab, the revision number changes but the update takes about 30 minutes to complete.  When app testing this is becoming increasingly frustrating.  A change made
    and then having to wait ~30 minutes is wasting too much time.  This delay doesn't always occur. When its working quickly, the pie chart would immediately turn yellow and a few minutes later files would be updated and the Last Update: under the pie
    chart would show the current time/date.  The packages being tested are all small and being distributed to a couple local DPs over 1GB connections.  When triggering "Update Content", the distmgr.log does not display any information about
    the distribution of the files until it actually does start which as mentioned earlier starts roughly 30 minutes after triggering "Update Content".  Keep in mind it's not exactly 30 minutes.  This timeframe is variable.
    Also noticed that when an app install was set to disabled in a Task Sequence, when PXE booting, the app was still trying to run.  Sometimes an app can be changed to disabled and an immediate PXE boot will not attempt to install the app.  This also
    applies to enabling a disabled app.
    The update content issue would appear to be some type of backlog issue but disabling an app in a Task Sequence seems like it would be more like a DB transaction.  Although it seems like two issues, both issues rear their ugly head at the same
    time. 
    Any thoughts?
    Thanks

    Hi ,
    Thanks for the info. When you create a package, the files are copied from the source path to the content library on the site server. Then, the content is copied from the content library on the site server to the content library on the distribution points.
    Please also check if "Allow clients to connect anonymously" is enabled on the DP Properties. See this link:
    https://social.technet.microsoft.com/Forums/en-US/a291c1cd-ab00-47f0-a99a-6befe178dfc7/sccm-2012-r2-osd-very-slow-at-driver-package-and-config-manager-client-stage-still-after-kb2905002?forum=configmanagerosd
    http://blogs.technet.com/b/configurationmgr/archive/2010/06/03/solution-you-may-experience-slow-performance-when-using-bits-and-kerberos-authentication-on-configmgr-2007-distribution-points.aspx\
    Thanks.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Ipod updating and deleting all my songs

    hi
    i have a ipod 30gb video now i have had it for a while now 2 months or so it recently asked me if i wanted to update my ipod i said no since i heard it would delete all my songs so one day i plug in my ipod and it just updates it and deletes all my songs without asking me or anything has anyone else had this happen? I think a couple of thigns are wrong with this. First of all surely there is a way to update it without deleting all your music
    itunes should ask you about the update and inform you that the update will delete all your songs
    i know i probably should have kept a backup of my music but i didnt expect it to just delete all my music without asking i dont have much disk space i so deleted my music when i put it on my ipod so has anyone else had something like this happen?

    Your post is a little confusing, assuming that you use the word "update" as in update the software and not update the songs.
    Updating the iPod software does not delete the contents. The iPod software cannot be updated without you first running the iPod updater and clicking on "update". I does not do it itself.
    How do you transfer songs from iTunes to the iPod? Automatically or manually?

  • List all subsites from a certain site

    Hi all,
    I've been trying to get this to work but only partial success.
    Thing is I created a page in a site. On that page I created a 'Content Search'-WP and it works in the test-area.
    When I save the query and reload the page, nothing happens.
    When I create a 'Search Results'-WP with the exact same query it gives me a the desired result. Also when I save the query and reload the page.
    Thing is that when I add subsites, none of them listed by the query. Only the first one that I created.
    All sites are created using a custom template. All sites are on the same folderlevel, the TrimDuplicates workaround didn't fix it...
    We use the SharePoint online for Education subscription if you need to know.
    Suggestions are welcome and thanx in advance.
    Stijn

    Hi,
    List SharePoint Subsites within a Site Collection using Content Editor Web Part and JavaScript
    Show all subsites in a webpart
    thx
    iffi

  • Update Content Applications on a Schedule

    I have an app that is global - across many time zones.
    Is there a way to schedule updating contet to specific DP's? 
    I.E. make sure a DP in california updates at 5pm local time and that a DP in Australia also updates at 5pm local.
    I only see the option for "Update Content" on the deployment package, which immediately causes all DP's to update.

    I created a powershell script that updates the content of an application. I then called the script using a scheduled task.   This way I can run it off hours on a regular basis.  (This is great for my antivirus application source files that
    get updated definition content.)
    Import-Module ‘D:\Program Files\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1'
    Set-Location XXX:
    Update-CMDistributionPoint -ApplicationName "$name" -DeploymentTypeName "$dptname"
    Make sure your path to the module is correct in the first line and that your Site code is correct in the second line.
    For the last line, put the application name and deployment type name in the right spots in the quotes.
    Here is a link to the site that shows how to run a powershell script from a scheduled task.
    http://community.spiceworks.com/how_to/show/17736-run-powershell-scripts-from-task-scheduler 

  • HT4528 update iOS and all contacts are missing

    update iOS and all contacts are missing.  How can retrieve my contacts?

    Hello dtorres74302
    Check to see if you had a back up within iTunes or through iCloud to see if you can recover that data.
    iOS: How to back up and restore your content
    http://support.apple.com/kb/ht1766
    Regards,
    -Norm G.

  • After updating my ios, all my apps have disappeared

    after updating my ios, all my apps have disappeared

    Were they on your computer's iTunes when you started the update ?
    As long as the apps are still available in the store, and you use the same iTunes account as you originally used to buy them, then you should be able to re-download them for free : http://support.apple.com/kb/HT2519 . If you download them to your computer's iTunes you could then try restoring to your backup and see if that restores them and their settings/content - a backup doesn't contain the actual apps, just their content/settings, so for the restore to work fully iTunes needs access to the apps so that it can restore them.

Maybe you are looking for

  • Accounting 1 and Costing 1 View in Material Master

    Hi SAP Gurus, I noticed that we only have "Accounting" and "Costing" views activated in Material Master in our current SAP environment. I don't see "Accounting 1" and "Costing 1" views available. Could someone tell me how to activate these views? Tha

  • Oracle Database Lite API Specification JDBC

    Hello. I would like to create a schema with Oracle Database Lite API Specification. I have done a script to create an application in the Mobile Server in this way: "Platform p = new Platform("WINCE_ARMV4_US_OLITE_STD42");" "Application app = new Appl

  • Synchronising 2 Palm devices with 2 different Outlook database on the same PC

    Hi, My wife and I are both equiped with Palms (T5 and T3). On the familly PC (W7 64 bits) we would like to sync each Palm on a different Outlook (2003) datafile already existing. There only one Outlook profile existing but depending on the email acco

  • Coliapse of DSL from usual 1.5meg to 0.21mbps

    On 9th july 2.0pm had usual 1.5meg DSL download been stable for 2 years rebooted hh2 no change did speedtest.net download showed 0.21mbps upload unchanged contacted call centre abroad went through usual checks they stated all okay and my telephone li

  • Web service deployment error -

    Hi all, Only recently I've been encountering deployment error for my EAR that contains a webservice. I deployed the EAR file via SAP Netweaver IDE. Prior to that, there wasn't any issue while performing deployment but lately the error below is persis