Posts made by Itamar Tzadok

Hi Sebastien,

I've replied to your query on the plugin page but here it is again.

First, the default view is the view that will open whenever you access the activity without specifying a view. This is typically the case when you enter the activity from its link on the course page, but there are other occasions where this may happen. It's a fallback view so to speak. You may use it for creating the entries but it's not necessary and in many use cases it is not used for that.

Now, if you want to open entry details from one view in another view you can use the pattern EAC:more:target-view-name. For example, if you have the views List and Single and you want to allow the user to open the entry in the Single view from the List view you can add to the entry template in the List view the pattern EAC:more:Single.

The same approach holds also for editing an entry, with the pattern EAC:edit:target-view-name. In this case you can also set the editing view to redirect to another view (e.g. back to the List view) after saving the edited entry.

hth smile

Average of ratings: Useful (1)

Moodle in English -> Testing and QA -> Running tests on mac sierra

by Itamar Tzadok -

Can someone advise a configuration of the testing environment on mac sierra with chrome?

I can't get it to work. Maybe too recent versions of browser and selenium just don't work. Or maybe I just don't configure it properly for mac. So far selenium starts, then when running behat, firefox launches, hangs for a few seconds and closes. The selenium terminal shows "plugin-container[27987:4190398] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8f3b, name = 'com.apple.tsm.portname'".

Any advice would be greatly appreciated. smile

Average of ratings: -

The default size of a select box is determined by the max length of the option labels. If for instance your options are

10
20
30

given that the field adds 'Choose...' as the neutral option, the default size would be the length of 'Choose...'.

You can use css to set a smaller width to the element, in which case the 'Choose...' will be clipped when the box is collapsed.

If you want to replace the 'Choose...' with something else, e.g. '...', you will need to use javascript.

hth smile

The [[entryid] ] is suspect because it is a temporary hack. It is replaced in forthcoming releases with [[ENT:id] ]. It does not work in the aligned view. It does not work in the csv view b/c it is derived from the aligned view. You should be able to use it in other view types. The EAC:anchor is not meant to display anything. It is meant to create a reference point by the entry id. hth smile

EDIT: The [[ENT:id] ] will work in all views. smile