astridx / boilerplate Goto Github PK
View Code? Open in Web Editor NEWThis project forked from joomla-extensions/boilerplate
Boilerplate files for Joomla! extensions
License: GNU General Public License v2.0
This project forked from joomla-extensions/boilerplate
Boilerplate files for Joomla! extensions
License: GNU General Public License v2.0
In the file script.php
function install($parent)
{
echo Text::_('MOD_FOO_INSTALLERSCRIPT_UNINSTALL');
return true;
}
Should
function install($parent)
{
echo Text::_('MOD_FOO_INSTALLERSCRIPT_INSTALL');
return true;
}
?
Just out of curiosity: why is the component name plural? Why 'com_foos' and not 'com_foo'?
because otherwise there are errors while creating a item
And views for lists in front end are missing
upload new files.
Example for log
almost all links are broken :(
The folder given for these should be "site" and "admin" respectively.
It seems to refer to the folder in the package, not the folder to which they're copied.
I looked into the Joomla Docu [1] and I wonder if this line should not contain MVCComponent instead of FossComponent
[1] https://docs.joomla.org/J4.x:Developing_an_MVC_Component/Developing_a_Basic_Component
In the general readme it states the following
Tutorial Sample Files
You can find the Tutorial Sample Files in the folder Tutorial :)
You may have to update the readme or create the tutorial folder again or i miss something.
The "word" tutorial could be a link to the file.
I like to compare the changes between the "stages"/versions by my merge tool. Therefore i would like to get all examples in one base folder
The versions exist in several repositories so it is against the dry principle to keep it on a second place as double content. So i will be not disapointed if you ignore my wishes.
Hallo Astrid,
going through the wiki i stumbled over some links not matching wiki pages
It looks like the three numbers up front have to be updated in the links
And i want to tell you that i appreciate your work very much
Regards Thomas
I have been working through the tutorial and I can't get the select foo button to work in the backend menu. I have downloaded the completed tutorial and installed it on my site and it seems that the same issue persists there. What do you think I am missing here?
Hello Astrid,
The order of your folders may be more clean if you use two digits for the starting numbers of the folders for one digit numbers.
1.xxx -> 01.xxxx
This is a recomendation so you may ignore it completely
PS: Thanks for your hard work on the boilerplate for J!4
Hi Astrid, trying to follow along with you tutorial and book....
When adding the categories, why do you add an index in de sql update file, but not in the install.mysql.utf8.sql ?
ALTER TABLE #__plans_details
ADD KEY idx_catid
(catid
);
from what I understand this now only added to the table when updating but not when reinstalling.
when you create an item in the assocciations component. You can not do this, because the item reloads all the time
Could I suggest not using "Joomla" as the company name in these examples.
Certainly for namespace beginners (like me) it makes it hard to know when to use "Joomla" and when "".
überall BUMP_VERSION or everywhere 1.0.0
You can set start and end publishing dates.
You can also change them to another date.
But when you empty the fields this publishing dates keep coming back.
see:
https://user-images.githubusercontent.com/1471185/127914407-a7c80869-af9c-42ea-87b5-26ae89ba2682.mp4
So it seems this code don't work well (FooTable.php), while it's the same as in com_content
if (!$this->publish_down) {
$this->publish_down = null;
}
if (!$this->checked_out_time) {
$this->publish_down = null;
}
When i change "null" to "0000-00-00 00:00:00" it works again but that's not the Joomla 4 style so i would like to avoid this.
The checked_out_time is also saved as "0000-00-00 00:00:00" when empty, so it could be the same sort of 'problem'.
I will report a solution when i found one :)
Hi Astrid,
Thanks for this Extension Development Tutorial. It is very helpful
I created a custom field and fieldgroup.
I also created another category.
When i switch category, it don't work.
Changing field-type "categoryedit" to "category" works, but then the custom fields attached to a specific category don't show automatically so it's not an ideal solution.
I can't find the difference with com_content or com_contact.
Do you know how to fix/debug this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.