Các bài đăng được tạo bởi Itamar Tzadok

Maybe because there is simply no such thing as one-size-fits-all report.

The Dataform module is better equipped than the Database for this purpose although some of relevant functions have not been given attention lately and are likely broken.

One currently broken option is the export to portfolio which allows for exporting entries to html file. I don't think that I will be able to fix that in the near future, unless someone commissions the work. But, it may be possible to simply add an option to send dataform view content directly into an html file. I'll look into that and if not too time consuming I'll add it to one of the upcoming releases.

A working option which got some attention and should work reasonably well is the pdf view. It's a view type which allows the user to export the view content into a pdf file. It is currently not included in the standard release of the Dataform but can be downloaded from git at https://github.com/itamart/moodle-dataformview_pdf.

cười

The css I posted is just a stub. It really depends on the theme you're using. Typically you would inspect the page html with the browser dev tools, find the container elements for the areas you wish to remove from the printout and add css rules display: none for these elements in the css tab under the @media print. cười

They can print what they see on the page via the browser print option. You can add a button to template to open the print dialogue:

<button id="printbutton" onclick="window.print();">PRINT</button>
You can add @media print css in the css tab of the activity to remove blocks, headers etc. or to add some styles to the printout. Something like:

@media print {

html, body {
margin: 0;
padding: 0;
width: 100%;
}

body {
background-color: White;
color: Black;
font-size: 75%;
}

/* Hide the side blocks. */
#block-region-side-pre {
display: none;
}
}
hth cười

Moodle in English -> Database -> Dependent Menu-Field -> Re: Dependent Menu-Field

Bởi Itamar Tzadok -

The change in the js should be

var submenus = ['cars', 'planes', 'ships'];
var menudependencies = [
[],
['cars'],
['planes'],
['ships']
];

In the add entry template code make sure to remove redundant spaces between the square brackets of the field patterns, for example,

[ [Categor

should be changed to

[[Categor

hth cười