[
https://issues.apache.org/jira/browse/GUACAMOLE-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17136105#comment-17136105
]
Mike Jumper commented on GUACAMOLE-1080:
----------------------------------------
{quote}
Now, it would be ideal if I could insert a PHP call into the HTML fragment that
adds the notifications section which would read from a file, and add properly
formatted notifications. I don't think that's possible?
{quote}
No, not exactly. That's a very PHP way of looking at things, but not how things
work in this case. It is true that older web applications often relied on
dynamically generating HTML through a server-side template language like PHP.
Guacamole does not do this, instead leveraging JavaScript and REST services.
The dynamic interface that you see when you use Guacamole is the result of a
static, JavaScript-driven page interacting with a REST API.
Guacamole's extension API supports exposure of arbitrary REST resources, and
you could certainly use that to expose a service that generates HTML
dynamically, but this would be bad practice. It would be better to use the same
pattern that is already used by the Guacamole interface: static HTML and
JavaScript that communicates with a REST service.
Extensions normally accomplish this through combining the following:
* Altering existing HTML content through special HTML "patches":
http://guacamole.apache.org/doc/gug/guacamole-ext.html#ext-patch-html
* Adding their own JavaScript to the existing JavaScript of the webapp:
http://guacamole.apache.org/doc/gug/guacamole-ext.html#ext-manifest
* Exposing custom REST services as needed (for their additional JavaScript to
consume):
http://guacamole.apache.org/doc/gug/guacamole-ext.html#ext-rest-resources
> allow notifications tab on Guacamole main screen
> ------------------------------------------------
>
> Key: GUACAMOLE-1080
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-1080
> Project: Guacamole
> Issue Type: New Feature
> Reporter: Jason Keltz
> Priority: Minor
>
> I would like if Guacamole had an option to enable a "notifications" or
> "notices" section on the main screen between RECENT CONNECTIONS and ALL
> CONNECTIONS. It would be nice if Guacamole could read this information from
> a configurable file on the system. Here, I could include messages like:
> "05/24/2000 10:00 AM - Hosts 1-50 are reserved for class X right now - but
> hosts 51-100 are available."
> "05/24/2000 10:00 AM - Hosts in the Windows group are presently unavailable.
> We are presently investigating the cause."
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)