TLWebdesignNL
unread,Jun 26, 2020, 7:46:01 AM6/26/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Joomla Component Builder, TLWebdesignNL ., jcodewalker, Joomla Component Builder
It worked like a charm. Did took me some time to figure out how to do it so i'll write it down here for future reference for other users.
I created a Library in JCB with these settings:
- Target: "media"
- File Behaviour: "Custom script" (i tried "do not add" but then i can't specify a file to include in the package. I couldn't find any info in the video tuts on what "do not add" could be used for)
- PHP setDocument(): // ( I just added two slashes so i didn't get an error on save because it expects a script)
- Then i pointed the target path to the assets folder in my component. like this "/components/com_componentname/assets/"
Then i used this code to import the document: "jimport('components.com_componentname.models.filename', JPATH_ROOT);" inside my function inside the php scripting area of your needs.
- where componentname is your components name of course and filename is the name of the file without extensions. Make sure not to use periods in your filename!
If i did something wrong or if it could be improved on feel free to reply.
Kind regards,
Tom
Op donderdag 25 juni 2020 om 09:19:52 UTC+2 schreef TLWebdesignNL .: