EEConf 2024 is around the corner! EEConf 2024
Hi All, My old profile didn’t work on the forum so I made a new one. I have a short question, since technology has changed quite a bit since I used the EE last, I wan’t to make sure that I will be able to do something like in
with EE, is a way that in the backend I would be able to make a new lesson and automatically a new accordion level would be added and javascript updated with where I would use variables instead of numbers like in this code:
$('#btn_lesson-1').click(function(){
$('#lesson-1').show();
$('#lesson-2').hide();
$('#lesson-3').hide();
});
$('#btn_lesson-2').click(function(){
$('#lesson-2').show();
$('#lesson-1').hide();
$('#lesson-3').hide();
});
$('#btn_lesson-3').click(function(){
$('#lesson-3').show();
$('#lesson-1').hide();
$('#lesson-2').hide();
});
Thanks.
Piotr, I’m far from a javascript expert, but I think some javascript could probably be written that would account for an unlimited number of accordion items, and wouldn’t need to be updated to account for additional content. Probably some accordion js plugins out there. But if you stick with what you have, it would be doable in EE.
The Pro version does not really have anything particular that would help you here, except if you prefer users to edit directly on the front end, that might come handy.
But still, Pro is a way to support EE with an affordable yearly cost, and you receive support. Said that, you might consider it eventually. Personally, I think Pro is more targeted at running projects that look to have a commercial company behind them for support. It makes sense once your site is production ready.
Nothing on the latest EE is missing in terms of older versions, except modules support, for example if your old version relies on add-ons they might not be compatible anymore but internally everything you could do in older versions is available in the latest release as well but better.
Bootstrap, JavaScript, PHP, HTML, CSS, you can edit and integrate all types of code in templates and make them dynamic by using channels, variables and other parameters.
Your requirements are rather simple, and making courses or learning sites is a good fit for Expression Engine.
I would start first by creating the templates HTML files for your site, including all the JavaScript and accordions, and content. Just like how you like it to look in a regular site. Then start to take pieces part, and put the JS code in its own template or partial templates, and eventually integrate the channels to them to be able to generate them on the fly or dynamically once you start to create courses. A course would probably be its own new channel entry.
This is very doable and nothing very complicated for someone that knows a bit around EE. For newcomers, you have great documentation you can follow and play around in your test installation. Once you understand how EE works, it makes sense. If you already run an older EE site, it should keep working once upgraded, as long as you don’t rely on add-ons which are not supported in the latest release.
Thanks, I am installing the latest version, going trough the instructions. DO I really have to change all the permissions?
system/ee/
system/ee/* (only top-level files and directories need modifying)
system/user/config/config.php
system/user/cache/
system/user/templates/
images/avatars/
images/captchas/
images/member_photos/
images/pm_attachments/
images/signature_attachments/
images/uploads/
themes/ee/
themes/ee/* (only top-level files and directories need modifying)
themes/user/
looks kind of strange to open all these folders with 777
No, absolutely not. In the docs it says “in a worst-case scenario” (which means your web server is probably not properly configured if you need 777 to write to folders)
Just set all permissions to the lowest possible, if you get an error, for example since EE needs to write templates or cache, you start to increase them slowly until you see it working, for example most servers will only require 751 or 755 for write, if your user has write access to the folders under your account you can just use the defaults. Are you using a Windows server? Because those instructions are for IIS web servers, not Apache under Linux.
Just let your server use the defaults.
Check this: https://docs.expressionengine.com/latest/troubleshooting/general.html#file-permissions
For a new installation just use the defaults, you can later increase them if you see an error. Usually, directories to which you need to write files require higher permissions. That would be the cache, or image/file upload directories, of templates (if you are going to edit templates from the control panel, if you don’t, they are not required)
Best security practices with all software programs, is to start with the lowest possible and if something does not work, increase them slowly until the permission that works. Not the other way around, you don’t want to set all to 777 as you might then forget to lower them, it would be a security risk. Unless this is a test installation and nobody has access, and you are just debugging server permissions. But even so, ideally your test installation should match the production one.
I thought so, this looked so strange to, but it says so in the instructions.
For some stupid reason now it will not install using my database. I tried so many times…
The database user and password combination you submitted is invalid.
I checked 1000 times, all is correct. I need to contact support of the host. Thanks for all the good information!!!!
Did you set the web server on your own, or are you using a hosting provider?
If you are using a commercial hosting provider, the permissions are already set by the host and a proper hosting company will already allow read/write access to all files under your account, which means you don’t need to change them or mess around with file permissions.
Is your database a new one? You should use a new, a clean, empty database for a new EE installation.
No cPanel. They use some strange panel, but I got it to work and now I am going trough the basic course to refresh my memory.
It’s been years since I worked with EE. I had made an applevacations clone website, there were all the hotels and destinations by country, region, room types, dining, everything, pagination for the destinations and hotel list, blog, etc. I was really proud of the site. It was however hacked and deleted at some point and I couldn’t find a copy on my hard drives anywhere.
There’s a copy of it on Archive org
web.archive(dot)org/web/20130620053212/http://patsvacations(dot)com/
I did all by myself with limited knowledge and just the EE manual that I printed and kept in a binder. There were no online tutorials at that time.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.