Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#151 Re: Paramétrage et intégration » Service proposition de contenu » 18/03/2014 17:54:15

C'est sans doute lié à une erreur d'accès au back-office en effet, mais sans avoir les logs, difficile d'en savoir plus.

#152 Re: Discussion générale » Ametys 3.5 » 27/02/2014 10:58:36

La raison historique à ça est qu'à l'origine, l'authentification par formulaire n'existait pas. Nous n'avions que l'authentification par SSO (CAS, NTLM, ...) ou par HTTP/BASIC, pour lesquels la déconnexion n'a souvent pas de sens.

Mais il est vrai que maintenant, c'est nettement plus discutable wink
Il est prévu de régler ça très bientôt.

Sur un sujet connexe, en tant qu'administrateur, dans l'application _admin, il est possible de se connecter au CMS "en tant que" n'importe quel utilisateur.

#153 Re: Utilisation » Actualisation du service Contenu d'un Répertoire » 26/02/2014 13:33:36

Bonjour,

Ca ressemble en effet à un problème d'invalidation de cache et donc à un bug !
Vous pouvez ouvrir un ticket (en anglais) sur en expliquant le mode opératoire pour reproduire le problème ?

Merci,
Cédric

#154 Re: Développement » Développement et plugins Eclipse » 25/02/2014 13:26:50

Bonjour,

On développe tous sous Eclipse, mais on a pas de plugins dédiés.

Lepido était effectivement un plugin Eclipse pour manipuler les sitemaps Cocoon, mais il n'est plus maintenu depuis des années, et en fait n'avait jamais eu qu'une utilité toute relative. Ca n'avait d'ailleurs rien à voir avec Ametys, mais uniquement avec Cocoon.

On s'est souvent posé la question d'avoir un plugin Eclipse pour écrire un plugin Ametys, mais dans la pratique, on fonctionne souvent par copier/coller, donc on a jamais rien fait de ce côté.

Cédric

#155 Re: Paramétrage et intégration » calendrier agenda personnalisé » 10/02/2014 23:05:02

Et en y regardant de plus près, il vous manque aussi une instruction <xsl:param> dans votre template :

<xsl:template name="timestamp">
--->        <xsl:param name="date"/>      <----
        <script type="text/javascript">
            var d = new Date("<xsl:value-of select="$date" />").getTime() / 1000;
            return d;
        </script>
    </xsl:template>  

#156 Re: Paramétrage et intégration » calendrier agenda personnalisé » 10/02/2014 23:01:41

c'est juste que dans une instruction <xsl:with-param>, il ne faut pas utiliser de '{' autour de la valeur

Ca donne donc :

<xsl:attribute name="data-date"><xsl:call-template name="timestamp"><xsl:with-param name="date" select="$day/@date"/></xsl:call-template></xsl:attribute>

#157 Re: Paramétrage et intégration » Affichage listes de formations sur le front-office » 03/02/2014 13:10:34

Bonjour,

Avez-vous pensé à valider vos formations ? Sinon elles n'apparaitront pas en ligne.

#158 Re: Développement » Blog et template » 20/01/2014 15:47:37

Bonjour,

Du point de vue du noyau Ametys, un blog est un site comme un autre, avec sa propre skin, qui est nommée comme vous le souhaitez.
Ensuite, pour fonctionner correctement, le plugin blog attend effectivement un template nommé "blog" dans sa skin.
Idéalement ce template doit au moins contenir trois zones "default", "about" et "aside" qui permettent de pré-positionner des services et des contenus à la création du blog.

Un embryon de documentation est disponible à , n'hésitez pas à nous dire s'il vous manque quelque chose.

Cédric

#159 Re: Discussion générale » bien démarrer avec ametys » 10/12/2013 18:46:43

il n'y a qu'une seule version d'Ametys, c'est la même quel que soit l'usage que vous en faites.

Il y a deux modes de téléchargement proposés sur le site, mais c'est bien le même logiciel.

#160 Re: Discussion générale » bien démarrer avec ametys » 04/12/2013 11:11:50

Oui il faut un hébergerment java.
Certains hébergeurs le proposent en mutualisé, mais pas tous.

#161 Re: Discussion générale » bien démarrer avec ametys » 03/12/2013 16:52:37

Bonjour,

Quels seraient les critères de votre moteur de recherche ?
En tout cas, toutes les données sont indexées en interne et sont destinées à être recherchées.

Pour le paiement en ligne, nous n'avons pas pour l'instant de plugin packagé pour faire ça, mais quand le cas se présente, on se contente d'intégrer le code HTML fourni par paypal ou autre.

#162 Re: Administration » Conseils hébergement » 26/11/2013 11:39:33

Pour être complet sur le sujet, vous pouvez aussi jeter un œil à Lunacloud :

#163 Re: Administration » Java Process Won't Die » 26/11/2013 11:04:50

Hi,

It's a known issue.
AFAIK, Ametys itself does not create non-daemon threads, but the Jackrabbit library (Apache's JCR implementation) does.
It may depends of Jackrabbit's underlying storage. If Jackrabbit is configured to use the embedded Derby database (this is the default), it seems that the issue appears more often.

I personally almost never use the shutdown.sh script.
I prefer to "kill" the java process (not "kill -9" (SIGKILL), only "kill" (SIGTERM)) which had proven to act as required and usually properly free resources.
This is what is used by init.d scripts when you install tomcat as a package.

#164 Re: Administration » Conseils hébergement » 25/11/2013 21:30:28

En effet il faut un hébergement Java.

Soit en hébergement mutualisé, il y en a beaucoup moins que d'hébergeurs PHP, mais ça existe tout de même : , , ...
Soit avec un serveur dédié chez n'importe quel hébergeur, c'est pas forcément plus cher (pour les petites configs), mais il faut tout installer soi-même.
Tout dépend donc du besoin et du budget ...

#165 Re: Administration » listed des utilisateurs du back-office » 18/11/2013 17:11:21

Bonjour,

En passant en Java, il suffit de récupérer le "UsersManager" et d'appeler la méthode getUsers()

Cédric

#166 Re: Users » Creation of Custom Widget (Service?) » 12/11/2013 11:23:22

Indeed, your plugin.xml is syntactically wrong.

A plugin is made of "features", each feature may contains "extensions".

Your plugin should then look like :

<?xml version="1.0" encoding="UTF-8" ?>

<plugin xmlns="http://www.ametys.org/schema/plugin"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.ametys.org/schema/plugin http://www.ametys.org/schema/plugin-2.0.xsd"
        runtimeVersion="2.0" version="2.0">

  <feature name="spreadsheet">
    <extensions>
        <extension point="org.ametys.web.service.ServiceExtensionPoint"
            class="org.ametys.web.service.StaticService"
            id="org.ametys.plugins.spreadsheet.Spreadsheet">
 
            <url>service/spreadsheet/spreadsheet.xhtml</url>
 
            <label i18n="false">Spreadsheet</label>
            <description i18n="false">Create Custom Spreadsheet</description>
 
        </extension>
    </extensions>
  </feature>
</plugin>

Concerning the attributes :

- an extension is always an extension to an "extension-point". There's several extension points in Ametys to help plugin writers to customize many parts of Ametys. The "point "attribute" refers to one of these points.
A plugin itself may create new extension points if needed.
The list of existing extension points and all available extensions to them is found in the Administration application, under the "Plugins & workspaces" section.

- the id is the identifier of your extension. it should be unique among other extensions to the same "extension-point". We use to have globally unique identifiers.

- the "class" attribute points to the actual Java class implementing the extension. In your case, "StaticService" is the most simple implementation of a Service, taking all its parameters in the XML conf of the plugin.

#167 Re: Users » Creation of Custom Widget (Service?) » 09/11/2013 19:54:02

Hi,

The first thing is to ensure that your plugin is actually recognized and parsed. Ametys handle two packagings for plugins : bundled in jar files and located on the file system in the "plugins" directory.
For jar-bundled plugins, the system looks for special files located under the META-INF/folder in the jar itself.
If these files are not present, the plugin is not loaded.
To begin the development of a new plugin, I strongly suggest to begin to test it directly in the application, by putting it in the "plugins" directory of your web application. You should have examples in the downloaded package.

The structure should look like :

webapp-root
  |-- plugins
         |-- your-plugin
                |-- plugin.xml
                |-- sitemap.xmap

Once done, there's several ways to ensure a plugin is actually loaded by the system, either by looking at log files (loaded plugins are logged as INFO at starting-time), or by looking at the "plugins and workspaces" part in the administration application.
Once the plugin is actually loaded, your service should show up.

Label and description actually refer to i18n keys, replaced at runtime by their translated counterparts. For testing purposes, you could also put non-i18n messages with the following format :

        <label i18n="false">My label</label>
        <description i18n="false">My description</description>

#168 Re: Développement » Environnement de développement » 05/11/2013 13:34:35

Bonjour,

Alors je vais essayer de répondre dans l'ordre !

1) Tout dépend de ce que vous essayez de développer. Je pars du principe que vous voulez modifier la charte graphique ou les paramètres de l'application, donc dans ce cas le mieux est de partir du template de démo. Vous pouvez de manière générale vous référer à la documentation d'intégration :  ou poser vos questions ici.

2) les chartes graphiques crées dans le répertoire skins sont immédiatement disponibles dans Ametys. En allant dans l'interface d'administration des sites, et dans l'interface de configuration d'un site en particulier, vous pouvez modifier sa charte graphique en sélectionnant parmi toutes les skins existantes.

3) Là encore, tout dépend de ce que vous voulez migrer d'une instance à l'autre : du code, des paramètres, des chartes graphiques, des données ?
Si c'est une skin, il suffit de copier le répertoire dans son intégralité, il ne dépend de rien d'autre.

#169 Re: Users » Creation of Custom Widget (Service?) » 04/11/2013 12:28:50

Hi,

Indeed, what you call a "widget" is actually a "service" in the Ametys world.
A service is made of:
- A definition (in the plugin.xml), containing service parameters, a Java class, and a service URL
- A configuration panel for the contributor to define settings, which is by default automatically generated from the service parameters
- the Java class is responsible for parsing the XML definition and managing the service instance. You may use "org.ametys.web.service.StaticService"
- the URL is internally called when the Page is rendered. It should be matched by a Cocoon pipeline in the sitemap of the plugin containing the service.

The documentation is actually very poor about that. We're currently doing a major rewriting of the documentation, including service development, but it's a loooong task smile
In the meantime, please ask any question here or look at existing services in the web plugin.

#170 Re: Administration » Setting up servers » 28/10/2013 15:36:05

while you're 100% right when it comes to developing new features, it is more rarely the case for publishing internet/intranet sites, where composing should be often near real-time and where CMS have builtin workflow features to implement the compose/validate/publish cycle!

Anyway, copying the repository depends of the underlying storage system used by Jackrabbit. If you use the default one (embededd Derby database), the "repository" directory is self-contained and you may simply copy the whole directory from one place to another.

#171 Re: Administration » Setting up servers » 28/10/2013 13:23:18

ah
Do you mean you want to define/compose a site (sitemap, page, contents, ...) on a system and then publish it on another system ?
Ametys currently don't have any export/import feature for a single site (it is planned in a future release, but I don't have any schedule yet). You may want instead to copy the entire repository (containing all sites) from one system to another.

#172 Re: Administration » Setting up servers » 28/10/2013 12:35:55

What do you mean by "development" ? Do you mean new features/plugins ? New graphical skins ? Updated config files ?

#173 Re: Users » Installation » 21/10/2013 14:59:45

After a quick look at imbahost.com, it seems that only PHP hosting is allowed
Ametys is written in Java and thus certainly cannot be hosted there.

Regards,
Cédric

#174 Re: Administration » Empty Config Error Codes » 15/10/2013 21:50:24

Hi,

My first guess is that you're having a filesystem rights issue.
Could it be that you're using the Ubuntu-packaged Tomcat 7 (process run as "tomcat7") and the application unzipped as another user (probably yours) in a directory where "tomcat7" does not have any write access ?
If so, there's two main solutions : either don't use the packaged Tomcat, but an unzipped Tomcat run with the same user than Ametys files, or give the Ametys files a write access to the user running Tomcat.

The environment you describe is perfectly suited to run Ametys, and actually probably the most used in production.

When write access is allowed, a log file is output in the WEB-INF/logs directory of the application

Regards,
Cédric

#175 Re: Administration » carte interactive » 11/10/2013 15:55:32

Il y a une erreur dans les logs ?
Dans le navigateur ?

Le navigateur doit avoir accès à Google Maps, mais pas forcément le serveur.

Board footer

Powered by FluxBB