Bug #7280
How to create private links to local page in main menu
Description
Hello,
I wonder how I create private links cms.
My problem is:
I want to create private links, ie, only after the user connects he can see a link on a cms page (meaning a page created inside the homepage).
- Optional
- Use ::private at the end of the link to show it only to logged-in users
I tried:
http://www.chamilo.org/::
http://www.chamilo.org/::private
What am I doing wrong?
From already thank you very
Marcelo Bassuma
Note by Yannick:
The idea (as in the video added by Marcelo) is to add a new page without a link, but to be able to set it as private.
At the moment, I believe the code checks if there is a link, and if so, it sends the user to the link itself. If there is no link, then it sends the user to the content created locally. However, this prevents the system for detecting a "::private" without link...
Make sure using "http://::private" or simply "::private" sends the user to the content page, but only shows the link to connected users.
History
Updated by Yannick Warnier over 6 years ago
Hi Marcelo,
If you have Chamilo LMS 1.9.8, it should work with the ::private suffix, just as you mention. It won't work on any prior version, though.
Updated by Tomas Rodrigues over 6 years ago
- File chamilo cms.mp4 added
Hello, Yannick Warnier very pleased to talk to you.
Yes, I'm using the latest stable version of chamilo v1.9.8.
I leave your http: // :: private, Yes the link only appears for who's logged more gives error on the page.
Now when I leave http: //, the link appears for anyone and works very well.
By faver made a video about it.
thank you so much
Marcelo Bassuma
Updated by Yannick Warnier over 6 years ago
- Subject changed from How to create private links cms to How to create private links to local page in main menu
- Description updated (diff)
- Category set to Administration
- Status changed from New to Assigned
- Assignee set to Angel Quiroz
- Target version set to 1.9.10
OK, now I understand!
You are putting a link as "http://::private" but in fact it is a private page.
I think you are right: we didn't plan for this case.
I'm re-editing your bug report so it is clearer.
En el futuro, si quieres, puedes reportar los problemas en portugués, deberíamos poder entenderte melhor (y responder en español).
Updated by Tomas Rodrigues over 6 years ago
Oi,
Desculpe-me estou usando o google tradutor do português Brasil para o inglês, sendo assim, não sei como ele traduz.
Eu errei em escolher o setor. Era para suporte e não bug. Erro meu.
Agora , eu entendi o que você falo, só funcina para páginas externas. Fiz teste e esta ok. http://chamilo.org::private 100%
Obrigado pela resposta rápida
Marcelo Bassuma
Updated by Angel Quiroz over 6 years ago
- % Done changed from 0 to 10
He probado agregando validación para enlaces vacíos privados (http: //::private y https: //private)
Pero las nuevas tabs se agregan como públicos
Sigo arreglando este bug
Updated by Angel Quiroz over 6 years ago
No he podido solucionar el bug, me sigue registrando como públicas
Tampoco puedo eliminar los enlaces creados. No sé si es sólo mi problema o es otro bug
Updated by Angel Quiroz over 6 years ago
- % Done changed from 10 to 20
He logrado registrar enlaces privados vacíos
Pero fatal validar que estos enlaces no sean accesibles cuando el usuario ha cerrado sessión. Es decir, que si registro un https:// ::private con nombre 'PrivEmpty' me genera un tab en el menú con el enlace a index.php?include=PrivEmpty_spanish.html. Y cuando cierro sesión, todavía se puede ingresar a esa URL
Updated by Tomas Rodrigues over 6 years ago
- File chamilo link cms.mp4 added
Angel Quiroz wrote:
Commit: https://github.com/AngelFQC/chamilo-lms/commit/d287fc84a909e99c0a8e0a67cc0dd823c7a768ea
Olá,
Eu fiz as alterações e testei aqui o resultado é este:
1. Agora posso excluir os links cms criados.
2. Se o usuário copiar o link privado gerado, sim é verdade, ele pode acessar mesmo não tanto logado.
3. Tudo que eu criar dentro da caixa de conteúdo ele salva, mais some quando você quer editar
Saudações,
Marcelo Bassuma
Updated by Yannick Warnier over 6 years ago
- Status changed from Assigned to Feature implemented
- % Done changed from 60 to 100
Hola Marcelo,
Entendemos lo que explicas, pero lamentablemente no podemos hacer esto en Chamilo 1.9. En la versión principal siguiente de Chamilo (para Junio 2015) tendremos un sistema de gestión CMS más avanzado que probablemente te permita hacer esto.
Por todo lo explicado, cierro esta tarea ahora. Gracias por tu participación
Updated by Tomas Rodrigues over 6 years ago
Yannick Warnier wrote:
Hola Marcelo,
Entendemos lo que explicas, pero lamentablemente no podemos hacer esto en Chamilo 1.9. En la versión principal siguiente de Chamilo (para Junio 2015) tendremos un sistema de gestión CMS más avanzado que probablemente te permita hacer esto.
Por todo lo explicado, cierro esta tarea ahora. Gracias por tu participación
Oi,
Tudo bem, vamos aguardar a nova versão. Mais quero deixar claro que o Chamilo 1.9.8 está ótimo, bonito com os novos modelos Style, vários recursos, etc.
Parabéns pelo trabalho.
Marcelo Bassuma