[opencms-dev] Writing a simple MasterModule

Stephan Hartmann beffe at beffe.de
Sat Jan 24 21:14:01 CET 2004


You have to write your own CmsDbAccess class derived from opencms's.
In your content definition class you register an instance of your dbaccess
by calling
CmsMasterContent.registerDbAccessObject(C_SUB_ID, dbAccess)

(i think it is somewhere in the pdf documentation)

dbAccess is the instance of my derived CmsDbAccess class.



----- Original Message -----
From: "tol" <opencms at recordcaster.de>
To: <opencms-dev at opencms.org>
Sent: Saturday, January 24, 2004 5:53 PM
Subject: Re: [opencms-dev] Writing a simple MasterModule


> Hi @all!
>
> Now I craweld a bit more through (or depper in) the opencms-source. And
> I found a new part counfusing me:
>
> in the doc was written about the filter lines:
>
> filter_all : \
>     select ${colum_names_master} \
>     from $CMS_MODULE_MASTER \
>     where sub_id = ? \
>     order by title;
>
> "stored in a property file query.properties which is located in the
> folder of the CmsDbAccess class"
>
> I searched for it, but I can't find the file!!?? Neither in the
> .master.genercisql nor .file.genericsql nor in the .file.mysql class ...
>
> Äääh .. ok! The property file is still there, but no entry "filter_all"!
>
> Slowly but surely I guess I've to create it by my self! But what, where
> and how?? And whats about the CmsDbAccess class? Created manualy too or
> using one of the existing classes? But wich one? What is right and what
> is wrong? ... questions, questions and questions ;)
>
> best wishes
> Tol
> --
> independent internet radio berlin
> http://www.recordcaster.de
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list