Posts made by Itamar Tzadok

It doesn't work because the field elements and the ||myfield#id|| tags are available only in the Add Entery template.

You can assign an id to the img element and let the js check its src attribute and if empty assign a default value. Something like:

<div id="mydiv">

     <img id="id_myImage" src="||myfield||" />

</div>

<script type="text/javascript">// <![CDATA[
var myImage = document.getElementById('id_myImage');
if (myImage.src == '') {
      myImage.src = 'url-to-default-image-src';
}
// ]]></script>

smile

I can only reiterate Colin's callings, "moving objects attract the eye, therefore distract from other shortcomings." (Well, perhaps without the 'therefore' because it doesn't really follow) But I'm not so concerned with the moving Big Arrow as with the moving dragged and dropped files. The teachers' click saver can easily become the students' nightmare. I've seen too many teachers dumping in courses files over files and more files. It has always been easier than carefully constructing well structured content. And now it's going to be much easier. smile  

Average of ratings: Useful (1)

Adam, have you used settings.php in a local plugin?

The core implementation of local plugins management seems incomplete. It doesn't show a link to the settings of a local plugin with settings. The settings navigation doesn't show that link either. Consequently, there seems to be no way to change a config setting of a local plugin other than deleting and reinstalling the plugin. smile

Bob, not sure that this may be useful to you but I've just completed an initial implementation of a local plugin that adds a selected list of loginas users to the settings navigation. This is meant to allow admin to quickly switch persona while administering the site. At the moment it's not too friendly for setting the selection of users, mainly because the core local plugins management is halfbaked. See Login as option in the illustration below. smile

Here is a quick speechless Hello World demostration of creating a simple (one field, one view) dataform. This is a four steps process:

  1. Add a dataform on the course page (default settings)
  2. Add a text field (default settings)
  3. Add a tabular view (default settings) and make it the default view
  4. Add a new entry to the dataform

You can see in the final step that the default tabular view displays for each entry its author name and picture.

Best viewed on YouTube. smile