Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#51 Re: Development » Eclipse Project Creation » 23/05/2018 14:52:11

If you are talking about the kernel sources you downloaded : the only suported IDE is eclipse (lucky you!)
And the .project and .classpath are autocreated.
But you need to have the IvyDE plugin.

If you are talking of a new project using Ametys, you jave to do it on your own.

#52 Re: Development » Regarding DataSources » 23/05/2018 14:50:33

There is always an internal datasource.
When configuring the application, you can displatch all features to other datasources.
The only thing that will remain in the internal datasource is the list of "admin" users. Because when in safe mode, this is the only accessible way to authenticate admin users.

No we do not provide the mecanism to get tomcat resources.

#53 Re: Development » Steps to build Ametys from Git Repository » 23/05/2018 14:48:09

Indeed, when configuration is not set, application is in safe mode

#54 Re: Development » Steps to build Ametys from Git Repository » 23/05/2018 10:00:04

If you are in SafeMode this is not an issue.
I will turn this into a Info in safemode ()

#55 Re: Administration » solr integration » 23/05/2018 09:58:33

Solr is required for many features
In the current versions we are still doing some internal search using directly JCR, but we are trying to transfer all our requests to SOLR. So more and more features will require it.

For example the aggregation service is currently not using SOLR but it will in the 4.2...

#56 Re: Development » Ametys Page URL » 22/05/2018 10:25:20

Hi,

currently there is no way to do so, and in my opinion it would be really hard to do since this would have many many implications...

for our customers, having url in en/* even if they handle only one language is not an issue for them...

#57 Re: Development » Steps to build Ametys from Git Repository » 22/05/2018 10:22:34

Indeed, the ojdbc cannot be exposed due to its licence.
There are many way for you to fix this, but the simpliest is to remove the dependency and to do not try to execute the Oracle tests.

No there is no task to build all modules in a row.
Here is a script I have to build the kernel modules in a row

File to put at the root of the "01 - Runtime" :

<project name="All" default="all" xmlns:ametys="antlib:org.ametys.tools"
                                                     xmlns:clover="antlib:com.atlassian.clover"
                                                     xmlns:ivy="antlib:org.apache.ivy.ant">

    <basename property="branch" file="${basedir}"/>

    <target name="all">
        <ant dir="."/>
        <ant dir="../../02_JCR/${branch}"/>
        <ant dir="../../03_Repository/${branch}"/>
        <ant dir="../../04_Workflow/${branch}"/>
        <ant dir="../../05_Explorer/${branch}"/>
        <ant dir="../../07_CMS/${branch}"/>
        <ant dir="../../08_Web/${branch}"/>
    </target>

</project>

#58 Re: Administration » Migration v4 » 16/05/2018 17:11:43

Je ne suis pas très bon en anglais, mais la phrase est sortie du contexte : il s'agit de migrer du code développé et pas des données.... big_smile

#59 Re: Development » Steps to build Ametys from Git Repository » 03/05/2018 12:16:02

Ok.

You have to know that our dependency system is ivy.

Have an ametys root directory, such as : D:\Ametys
Clone this git () at D:\Ametys\tools\master
Then you can launch "dev/download-sources/download.xml" that will download all Ametys (just cancel the login dialog to be anonymous)
Then you can launch any build.xml at the root of each project to build it in your ivy (default location is tools/masters/dev/ivyrep)

If you use Eclipse, there are a few more recommandations to do BEFORE, so please let me know.

#60 Re: Development » Steps to build Ametys from Git Repository » 02/05/2018 15:06:21

Hi,

before I enter into long explanations, I will first ask you : why do you want to rebuild Ametys on your own?

Ametys is different (better smile) thanother products: you never have to change it in order to add your own features... all is based on plugins and extensions. Thanks to this, upgrading from a version to another version is quite simple.

So, about 99.9% of people who ask how to build Ametys, does not need it smile
The staying 0.1% want to do it for the "sport"...

#61 Re: Paramétrage et intégration » Intégration d'un script sur une page uniquement » 02/05/2018 14:19:30

Bonjour,

A l'intérieur d'un contenu, vous pouvez utiliser le htmlexpert.
En mode 'plein écran' il vous permet d'insérer des liens vers des resources (un fichier javascript par exemple).

#62 Re: Administration » JCR Repository export/Import » 27/04/2018 09:32:09

Hi,

Currently this does not exists.
A few years ago we tried to make one, but we failed to do some generic stuff and we had to do it for specific needs.
We are planning to work on this, but I cannot tell you the agenda or even what the feature will exactly contains

#63 Re: Development » Accessing the HttpRequest and the HttpSession » 10/04/2018 09:54:53

you can access request parameters using AmetysXSLTHelper

But there is no equivalent to access the session.

You can create your own XSLTHelper in java to add any function you need.

No XSP is not supported in the skin rendering. But when you create your own service, you create your own pipeline and thus can you use.

Last thing, if you use stuff from the request beware that cache can be an issue for you.
For exemple, if you use request parameters be sure to be in a non cached context! Remember to test in production mode (using the configuration parameter)

#64 Re: Development » Fetching the contents of one article alone » 05/04/2018 10:43:59

If your purpose was to display on the main page only summaries of articles, you should consider create subpages with one article on each page, and on the main page use the "content digest" service.

You can also on the main page, insert "shared content" to insert manually, contents from another page

#65 Re: Paramétrage et intégration » [Résolu] Passage en HTTPS » 28/03/2018 17:59:45

Bonjour,

l'erreur doit apparaître dans les logs du back office.

Quelle url avez-vous spécifié dans la configuration générale du back-office, à la section "site web" ?

#66 Re: Development » need explanation on how the multimedia plugin works » 27/03/2018 18:08:51

When you define a content type, you have to set the pipeline that render it.
Most of the time, redirecting to the default "web" pipeline is fine.

In your case, you juste have to change the pattern to match your content type id.
And the last wildcard is used to choose the name of the XSL file.

E.g. in multimedia the id "org.ametys.plugins.multimedia.Content.audioGallery" will use a XSL file named "audioGallery/audioGallery-{view}.xsl"

#67 Re: Development » Scheduled Pages » 27/03/2018 18:04:08

Hi,

What you could do it to affect a non-zoned template to the node page.
In this template, you will redirect you javascript or html tag...

that's not clean, but I tested all Ametys redirections and they all are 301...
Some of them have improvement issues opened, to make this modifiable

#68 Re: Administration » Clustering Ametys Servers » 21/03/2018 18:51:09

you can cluster the front-office as a classic j2E app

for the back office, the issue will come from the JCR, that cannot be accessed by many applications at once when stored localy.

we never needed to cluster any of ours instances for performances purposes.
why do you want to cluster?

#69 Re: Development » Scheduled Pages » 21/03/2018 12:08:47

blank pages send a temporary redirection code ; so visitor's browsers will keep asking

#70 Re: Development » Scheduled Pages » 20/03/2018 19:28:12

Hi
Basicaly, this is not possible
A way to do so could be to have one "blank" node page with 3 sub-pages.
Each subpage would have a 1 week publication duration.

* Landing page - blank page
** Page week 1 - page with content for week 1 with publication date week 1
** Page week 2 - page with content for week 2 with publication date week 2
** Page week 3 - page with content for week 3 with publication date week 3

So as the landing page will redirect to its first publicated page, on week 1 it will redirect to "page week 1" and so on...

#71 Re: Administration » Gestion du cache dans le plugin messaging-connector » 16/03/2018 13:20:25

Je crois qu'à chaque fois qu'une personne se connecte, on envoie une requête à Zimbra et on conserve le résultat pdt N minutes.
Mais pour ne pas exploser la mémoire, on limite le nombre de choses mises en caches à X.

Par exemple, l'utilisateur 1 se connecte. Cela créé une entrée dans le cache.
Si il se promène dans l'intranet, on ne refait pas de requêtes à zimbra avant que la durée du cache soit écoulée.

Mais la taille du cache est important par rapport au nombre d'utilisateurs connectés en moyenne.
Par exemple, si X = 3 et que vous avez 4 personnes connectés.
U1 se connecte, absent du cache => requête zimbra, le cache contient [U1]
U2 se connecte, absent du cache => requête zimbra, le cache contient [U2, U1]
U3 se connecte, absent du cache => requête zimbra, le cache contient [U3, U2, U1]
U4 se connecte, absent du cache => requête zimbra, le cache contient [U4, U3, U2]
U1 navigue, absent du cache => requête zimbra, le cache contient [U1, U4, U3]
U2 navigue, absent du cache => requête zimbra, le cache contient [U1, U1, U4]
etc..
Et votre cache ne marche plus du tout.


Donc si vous avez suffisamment de RAM, n'hésitez pas à mettre une valeur confortable à X ; pour ne pas tomber dans ce cas de figure

#72 Re: Paramétrage et intégration » Bouton de déconnexion » 05/03/2018 21:58:00

Bien sûr, c'est toujours intéressant pour nous et pour la postérité !
Merci à vous

#73 Re: Paramétrage et intégration » Bouton de déconnexion » 05/03/2018 18:55:28

voilà, sur votre page de deconnexion, par exemple, vous pouvez mettre dans le code html une redirection vers le cas logout, le problème étant que vous n'avez pas le moyen de vérifier que la personne était logguée via CAS

#74 Re: Paramétrage et intégration » Bouton de déconnexion » 05/03/2018 17:36:53

Quand vous dites que votre SSO ne reconnecte pas automatiquement,
cela signifie que vous avez décoché "Utiliser le mode passerelle" de votre population administrateur dans l'admin d'Ametys ?

Le mode passerelle, signifie que dès que vous allez sur Ametys, une brève redirection vous renvoie sur CAS : soit vous êtes déjà connecté sur CAS et l'affaire est terminée ; soit vous n'êtes pas connecté sur CAS et vous revenez sur Ametys qui vous propose de vous connecter en formulaire ou avec un bouton CAS.

De ce que vous me décrivez, vous êtes en mode passerelle et tout est normal.

#75 Re: Paramétrage et intégration » [Résolu] Modifier la page de succès lors d'une déconnexion » 05/03/2018 16:29:40

Je pense que cela se passe dans une surcharge que vous feriez ici :
services\web\pages\frontoffice-login\logout.xsl

pour surcharge ce code là

Board footer

Powered by FluxBB