University Web Developers

University Web Developers

I was recently upgraded to the Enterprise Edition and was excited to begin using the widgets I had heard so much about, e.g., news pulls, photo galleries, etc. EXCEPT, there are zero pre-built widgets to dissect and figure out how to build a new one. Cue Game show loser sound effect... "WAAAH wahhh waaaaahhhh"

I get that they begin with structures, but what I don't get is how to make the variables as part of the structure and how, in the end, those would get pulled into the widget.

Here's what I'm thinking would be the end result. User wants to make a photo gallery. Adds "Widget-Photo Gallery" to their container. A pop-up window asks them to browse for a folder and voila! Photo Gallery.

If you choose to reply, Fienen and/or Falzone, type slowly so I can understand. :)

Tags: widget

Share

Reply to This

Replies to This Discussion

I am working on this exact same puzzle right now. So the answer has and audience of at least two. :)

Reply to This

I love how you call out Chris and me specifically on this, heh.

Widgets are crazy easy. I actually just finished up on one for departments to use to pull in custom listing of news from PR based on categories. It took less than an hour to set up.

If you are familiar with writing dynamic Velocity code, you pretty much won't have an issue. Let's use your case of a photo gallery (and we'll assume you're gonna use the built in gallery macro).

Create a structure with a type of widget, and call it something like "Photo Gallery." Add a text field called "Gallery Path." That's where they can put in the folder name with their pictures. Now, edit the Widget Code field, and you'll do something like this:

<h2>$widgetTitle</h2>
#photoGallery("$galleryPath")

Bam, you're done, instant widget. Now, you could start taking it further, like add fields for photo height and photo width, then set them in the widget code. That's what I usually do. When I use a widget to serve as a UI for a macro, I'll add a section at the bottom with all the optional elements you can set, and in the widget code, I see if those have been entered, and if so, add a #set() line for that macro variable.

There's also some info in the docs about how to set it up that'd probably be helpful: http://www.dotcms.org/documentation/widgets If you want some real time help, come by the IRC channel (http://www.dotcms.org/community/irc.dot) or catch me on IM or Twitter.

Reply to This

Hah, there's my name. Michael's answer is great so I won't go much farther than saying that there should be some simple examples like this in starter site. I thought there were some, but if not, then hopefully the DotCMS guys are listening and they'll put some in. You could also stop by their JIRA and put in a request: http://jira.dotmarketing.net

Reply to This

I think I've pretty much got it.

1. Create Structure - Make sure it is a widget structure type.
2. Add Custom Field
3. Learn Velocity
4. Insert Velocity and lucene query into Widget Code field
5. Have users add widget to pages and watch your site blossom.

I'm still a little stuck on #3.

Reply to This

yep. #3 is a doozy.

Reply to This

So yeah, velocity is a strange animal, but as far as programming goes .. it really is not that hard.

The main concepts you need to know are
#set - sets a variable
#if ... #else ... #end - for conditionals
#foreach ... #end - for looping

Macros -- Macros are like a chuck of code that just gets executed. They cannot return a value, but they can #set a variable.

Viewtools -- Java Objects. Velocity is Java under the hood so for the most part .. whatever you can do in Java you can do in velocity.

That is really all there is too it.

1. Check out the user guide: http://velocity.apache.org/engine/devel/user-guide.html
2. TRY it .. you're never going to learn velocity unless you get your hands dirty
3. If you can't figure something out .. join us on the irc channel .. #dotcms on freenode.

Good luck :)

Reply to This

actually... I just did it in about 2 minutes. Easy. The basic bit anyway. Now I realize that I need to create some pretty css to make the gallery not look meh.

Reply to This

RSS

Elsewhere

Latest Activity

Justin, just got through with an OmniUpdate CMS demo. The application is unbelievable. It is awesome. If we had the money we would right the check right there. What is cool about the company is they are trying to work with us. I think that this sp...
3 hours ago
Sam, beside Joomla I have used DotNetNuke also and I have experienced the same type of issues with DNN. Installation. I have had huge issues and a lot of wasted time trying to install DNN and trying to get it up and running. Once I have it install...
3 hours ago
Darren Ladner added a discussion
I need a new calender of events type software. Right now we were using the open source vtcalender system until it broke. This system has been nothing but problems. The previous web designers were the ones that put this calender system into use. Wh...
3 hours ago
I sent them an email looking for a baseline cost but have not heard back from them yet. We are currently debating whether or not this is an in-house project. Though I'm more prone to go with the vendor if they offer extensibility we don't have t...
9 hours ago
John Wilson added a discussion
Our Admission office is collaborating with a number of schools to create a Common Application. This would collect all the basic information and allow the applicant to select which schools should receive it. Anyone doing this now? What technologie...
9 hours ago
I just got off a concall with Bb. I'm waiting for pricing structure and some other details, but I was impressed with their service.
9 hours ago
I also would like to hear what people think. I've found in the past 2 years that the best people I have hired are ones I have recruited. I'm becoming a social media headhunter. :) Find people who do it well, then go get them. Of course that isn't ...
10 hours ago
10 hours ago
Rachel Reuben added a discussion
At the Stamats Integrated Marketing Technology conference (#stamats09) yesterday, several of us were discussing various components of our job descriptions for student social media interns in our offices. I'd like to create something new for next s...
11 hours ago
Rachel Reuben looking to see if there's a discussion forum with sample social media intern job descriptions
11 hours ago
OmniUpdate is pleased to add East Central College in Union, Mo as new OU Campus CMS users. Welcome to our client family!
11 hours ago
We have one person in our dept (Strategic Communications) who manages content for our "official" university FB and Twitter pages, but there are 2 other people in a different department (Public Affairs) who have access but don't do anything with so...
11 hours ago
Our MarComm office handles as much as other departments on campus can throw at us. From admissions for traditional undergrad, transfers and grad to alumni info, events and general newsletters--there's seemingly a need from every aspect of the inst...
11 hours ago
I'm in. pfantaske at gmail dot com
12 hours ago
Eloine, Maggie Corbin, Laura Huff and 1 more joined University Web Developers
12 hours ago
Michael Fienen added a discussion
We just had a meeting today to discuss how the university is handling email communications regarding internal and external audiences. We have had them for some time now, and the focus is now shifting to make them more sophisticated. The big challe...
12 hours ago
I'm on at jennahlik@googlewave.com
13 hours ago
Deborah added a discussion
Can anyone recommend some good examples of online admissions applications that: 1. use web standards: good form markup, inline validation 2. display status of the process (step 1 of 8, etc) 3. are accessible 4. are usable and visually attractive ...
yesterday
Be sure to read up on the review we did of MobileEducator at .eduGuru: http://doteduguru.com/id3686-mobileeducator-iphone-application-and-cms-review.html The problem with prospective students is that I haven't seen a drop of research of evidence ...
yesterday
Better to ask forgiveness than permission. Thus far, none of those companies have shown an interest in enforcing any trademarks or copyrights via litigation with respect to community created badges. It's a case where we are driving traffic to them...
yesterday

An adjunct to UWEBD. UWEBD has been in existence for more than 10 years and is the very best email discussion list on the Internet, in any industry, on any topic.

About

Terry Calhoun Terry Calhoun created this social network on Ning.

© 2009   Created by Terry Calhoun

Badges  |  Report an Issue  |  Privacy  |  Terms of Service

Sign in to chat!