Copying contents between sections in the same course on moodle - moodle

I need to copy contents of a section to another section (or clone the existing section) in the same course on moodle. I've seen some documentation on how to copy contents from one course to another but I didn't find any resources on how to copy within the course. In the image attached, there is a section "Batch 2-2021". I want to make a new section "Batch 2-2022" and copy everything from "Batch 2-2021" into it. Is it possible? Any help would be appreciated.

There is a duplicate button for an activity
Go to a course
Turn editing on
Click the edit dropdown menu for an activity, select duplicate
Click and hold the move icon of the duplicate, then drag and drop on the new section
https://docs.moodle.org/400/en/Reusing_activities

In core Moodle, you can only duplicate activities or courses, not sections. However, this functionality is available in the Mass Actions block: https://moodle.org/plugins/block_massaction
Install the block on your site and add it to the course. There are options to select all of the activities in a section and duplicate them into another section, along with many other options to apply the standard actions to multiple activities at once.
If you cannot use the Mass Actions block for some reason (on hosted Moodle site, for instance), the fastest way in core Moodle to copy a section would probably be to use a course backup. When you create the backup, you can select only the a particular section of activities. You can restore the backup into the same course, merging the data, which will create duplicates of the activities. Unfortunately, they can only be duplicated into the same section, so you'll have to manually move them to the new section. Depending on how many activities you're copying, this may not be fast than just individually duplicating and moving the activities, so the Mass Actions block is still the best option.

Related

Download reports from the Microstrategy with filtering

http://xx.xx.xxx.xx/servlet/mstrWeb?evt=4001&src=mstrWeb.4001&reportID=48C05A5F4CCF82CC07F4A1BE2D023FE5&visMode=0&reportViewMode=1&messageID=9850FBA54B678E5B6B66A4B1E527B7B5&stateID=0
This sample URL displays the report executed and saved in the archive. Before downloading, I need to specify an additional condition on one of the columns. For example, City = Samplesity How can this be implemented with the help of Microstrategy url api?
You could use a view filter (with a prompt) in the report and answer the prompt via MicroStrategy URLAPI. The problem would be that the prompt will be showed also to the users (if the report is executed with a subscription, then no problem).
Using a report in this way doesn't make much sense to me, better in this case to use a cube and create a report with a prompted view filter on top of it.
If by "saved in the archive" you mean stored in the History List then there is not much to do here. The History List contains an execution of a report, you cannot really modify it.
If you are looking for a way to filter on old version of your data you have to find another solution, like keeping historical version of the data.

are there known issues with using "manage content and structure" to move sites within a site collection in SP 2010?

I would like to be able to use "manage content and structure" to move sub-sites within a site collection (SharePoint 2010). For example I have a site that is right under my top level site and I would like to move it to be the child site of one of its' current peers.
There is some concern from admins that this creates a mess in the content DB, therefore all moves should be done using powershell export/import.
Can anyone tell me, technically, what happens when we use the move command in "content and structure" within a site collection and if there are known issues with it?
Moving sub sites around within a site collection is no problem. They had the exact same command for moving sites in SharePoint 2007, and it worked.
When you click the button, what likely happens is there is a stored procedure that executes and moves all the data to the new location.
Databases are designed to handle the all these changes. You don't create more of a "mess" in the content database by moving a site around compared to the daily "mess" of adding new documents to document libraries all over the place. In fact doing a PowerShell export, delete old site, import process is probably more messy because the old site isn't 'deleted' it's moved to the "Recycle Bin". And some of the GUID's associated with the site will be changed on the import.
Basically my recommendation is use the Move command to move sites around as that's the easiest thing to do, and don't worry about the database, because it just works.

Magento how do I override/alter template/payment/form/purchaseorder.phtml file

I need to add some text to this file [template/payment/form/purchaseorder.phtml], for a particular store within clients' magento site. When I make a change to the purchaseorder.phtml file, it changes the text on all the stores. So I need to somehow customize this for one store in particular.
I have read comments on several sites, some mention changing the local.xml, change the config.xml, make changes in admin panel, but this such a small change, I don't want to disrupt anything by going overboard.
I need to extend the functionality on the backend so this change can be made for a particular store or stores. the sites has five stores built into the one install and for now I need to make the above change to just one store.
I think I need to somehow add a PO field Heading and an "Additional Text" option to the Purchase order section in image two. is this correct, if so how do I do this?
Could someone point me in the right direction to making this type of change please.
Note: I can't do the create directory structure, copy files, change needed files option
This is magento 1.7
Copy purchaseorder.phtml file from base/default directory then paste it in your current template. Now you can alter content of it purchaseorder.phtml in your current directory, it wont affect the base file.Like below,
Copy from
app/design/frontend/base/default/template/payment/form/purchaseorder.phtml
Paste to
app/design/frontend/base/current_theme/template/payment/form/purchaseorder.phtml
When you override a section, the folder structure should resemble the default template folder structure like current_theme/template/form/ payment/purchaseorder.phtml .
sorry for bad english.

Sitecore copied item displaying wrong content

I'm new to sitecore have been tasked with creating some ppc landing pages for a client who's developer has moved on.
Their previous developer had created several of these pages in the past and the content is very similar so I have copied one of the previous pages and changed the content.
The problem is that the copy is still referencing the content of the original page, i know this as if i change the content of the original the copy also changes too.
The pages sub items are a mix of rich text fields and custom sublayouts.
Have I done something wrong or is this a bug? Can anyone suggest a fix?
Id imagine something like the reference to the subitems in the database has not changed from original.
How did you copy the previous page? In Sitecore you should be able to use either the Copy or Duplicate command, and be able to change the copied item without the original being changed (our content editors have a habit of doing this as well).
My guess would be that the sublayouts are pointing at a specific item, rather than the Context item, but that would be hard to say without code or ascx snippets.

Teamsite Cleanup

I was wondering what is the best way to do a clean up of autonomy teamsite7. I basically have loads of dcr files that are not in use anymore and want to delete these. Whats the best way to search through the CMS and identify what .page and dcrs are published on the live site and what is not used and can be deleted so I dont have to go through manually?
Template-based pages use extended attributes to associate a generated page with a DCR and Presentation template.
In the past, I have written Perl scripts that would generate a list of the active DCRs. You can then compare the DCRs in the workarea to that list and delete those that aren't on the list.
Basically set it up as a cron job that cleaned up the "templatedata" directory once a month.
If I had this particular scenario, I think my first thought would be to run a simulated comparison deployment with OpenDeploy to generate the list of files that were in the workarea but not on the webserver. You could parse the resulting log with a perl script (or whatever your favorite language is) to then remove those files.