Forums / Developer / Module questions

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Module questions

Author Message

Clemens T

Wednesday 11 May 2005 8:37:05 am

Hey all,
I'd like to ask your opinion on the following issue:

I'm having a module right now and want to port it to Exponential, I'd like to take full advantage of the advantages of Exponential and use user-roles for access rights on the items in my module. Let's say my module is called 'My Documents' and I'd like to be able to upload a file. Everybody is able to download the files, some people are able to upload a file and some others are able to upload as well as move the file to the categorie so it's visible to the 'Everybody' user.

What is the best way to deal with these kinds of problems when I'd like to build a ezModule. Would it be wise to create a contentItem and add a field to it 'url' and let the file upload with some own custom php function? Or should I include the file as a related object? (I have no clue how this is done programmatically... but still). And listing them would mean a fetch on the contentItems. Or is it better to implement all this on my own table in the database? How would I go about fetching the data of my own custom type in the templates/module? (sorry, newbie talking here).

Thanks a lot,
Clemens Timmermans
ps: I'm currently going through the EuroFxRef tutorial, and it's very helpful, but I'm trying to learn Exponential programming and apply it to my own problems, all help is appreciated! thanks.

Ekkehard Dörre

Wednesday 11 May 2005 11:38:36 am

Make a basic install e.g. news with files and you should do all roles, etc. in administration interface without any programming.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing