We've expanded on the power of Comcode in version 3 by creating some new ways to get very powerful stuff done without any trouble at all.
The first is our new 'tooltip' tag. Now using Comcode you can place tooltips very easily:
The next is really cool! You can now make Comcode that spans itself across multiple pages, just like large articles often do on some websites.
In that example I split things over three pages, that the reader can move between at their leisure. The power here is that nothing is assumed - we could have easily decided to allow Comcode pages to be split up into subpages like this, but it would have just got in the way for the majority of users at the same time as being very restrictive and hence only serving the needs of a minority. Using the 'section' and 'section_controller' Comcode tags you can do all kinds of things: for example, you could apply it in a forum post in order to avoid giving the topic an enormous vertical scrollbar.
Here is another powerful new Comcode tag…
This allows ocPortal site administrators to customise pages of their site to display differently for members of different usergroups. This is incredibly useful, because it mean that website layout can now be tailored for the needs of the different usergroups.
For example, if a website explaining a country's tax system was made, the information on that website could be tailored according to whether the reader is unemployed, self-employed, or employed by a company. This would be far preferable to splitting up the website into totally separate sections because information could be selectively displayed to all groups without duplicating anything. Alternativley, you could have sensitive information appear if the current user is in a group with trusted privileges.
In a previous blog post I mentioned how ocPortal's CEDI system (formerly named 'SEEDY') could now function more like a wiki. Well, Comcode has been improved so as to make integration between CEDI and the rest of ocPortal completely seamless:
This example shows how easy it is to link to a CEDI page from anywhere in ocPortal that supports Comcode.
The same can be done to link to a member profile:
Extending Comcode is not the only way we've improved Comcode though. Now for the first time, regular users on an ocPortal can use the ocPortal WYSIWYG editor to visually layout their submissions. Whatsmore, toggling between WYSIWYG and normal editing is very easy, thanks to 'AJAX' technology.
The last improvement to Comcode we've made is a very significant one: Comcode may now be written in XML. For many users, this won't be particularly useful at all, but for some it is a huge benefit because it allows ocPortal data to be used and made by other software far more easily. We've put a lot of work into this, and taken the opportunity to very formally write down a so-called 'schema' for Comcode, that actually allows the XML version of Comcode ('Comcode-XML') to be validated in much the same way that XHTML and other XML languages can be. We've also layed out some guidelines for implementing Comcode support into other software, in effect standardising it.