[opencms-dev] need some help on customizing the <cms:link> tag

Jordi Martí jmarti at theinit.com
Thu Sep 4 17:10:15 CEST 2008


I wouldn’t mess with opencms in that way
 I would simply create a filter and
log all links to /opencms/opencms/
.

why can’t the URL be that "link id" you talk about?

   

JORDI MARTÍ 
Email: jmarti _at_ theinit.com

---

De: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org]
En nombre de kk
Enviado el: jueves, 04 de septiembre de 2008 16:58
Para: opencms-dev at opencms.org
Asunto: [opencms-dev] need some help on customizing the <cms:link> tag

Dear together,
 
my name is kunkun. I am a computerscience-student in Germany. I am working
on a project, which extends opencms with some new features.
 
The problem is:
 
1. I have to mark the links, that i create on a site, with something like an
ID.
2. Then i have to log the Link ID, whenever the link is clicked on the site,
when it is made online.
 
Can u give me some Ideas, how to do that?
 
My idea is to create a class, which inherits the internal link class of
OpenCms, and change the html-code that is generated during constuction
of the link.
 
But with which class should I start. There is a class named CmsJspTagLink,
which can be used with <cms:link>.
The class CmsLinkManager is also used to substitute the name for links
inside the VFS System. But how do i do
it in general purpose not only for internal links?
 
I am looking for some ideas asap.
 
Thank u very much.
 
Kunkun




More information about the opencms-dev mailing list