CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Dojo to simplify a complex profile
Pages: [1]

Author Topic: Dojo to simplify a complex profile  (Read 947 times)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Dojo to simplify a complex profile
August 18, 2009, 10:50:30 am
Hi dudes,

I've been working on making some complex data available through a profile and have been exploring a couple of approaches.  Both are work in progress right now.

One is the use of Dojo to break up the search form and I'm having a couple of problems with the Dojo (the other is documented here: http://wiki.civicrm.org/confluence/pages/viewpage.action?pageId=18808859).

This post is about the Dojo approach...

You can see the directory here: http://directory.cavsa.org.uk/civicrm/profile/?reset=1&gid=3.  You'll need to log in with username and password of 'civicrm' and 'civicrm'.

I've only edited one file so far - Search.tpl - which I attach so you can see what I've been up to. 

I think this approach has potential (and I'll write this all up with a wiki and blog post when finished) but the problems I am experiencing (that i'd love some help with) are the following.

1) I would like the Dojo box to automatically resize so it can cope with different amounts of info in each box.  At the moment, the extra scroll bar that sometimes appears and the large amount of white space when the height is fixed at 600px makes the interface v. clumsy.  This post (http://www.dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/tabcontainer-1) makes me think this should be easy in Dojo but my attempts at doing so haven't worked out.  (btw. if we can work this out then I would recommend applying it to the contacts tab as well).

Maybe I can use jQuery to do the same?  A couple of pointers would be great.

2) Once I have carried out a search and then click on 'New search', the search criteria do not re-appear.  All I can see is a  0px by 0px div.

I think this is something to do with the fact that it is a Dojo tabcontainer but again, not being a Dojo/javascript person, I don't know what I have done wrong.

Let me know if I've missed any important bits of info.  Thanks for the help,
Michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Dojo to simplify a complex profile

This forum was archived on 2017-11-26.