New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Astroid 2.6.0 fonts folder not working anymore #210
Comments
Hi @Joomlaplates Please help me check it! If everything is good. I will release fixed bug version. Best Regards, |
Please help me download developer here https://github.com/templaza/astroid-framework/archive/refs/heads/developer.zip |
Hey Sonny, thank you very much for your work and the quick help with problems :-) |
Hi @deltapapa01 I updated feature load font from images/{template}/fonts folder in d572854. You can download developer branch for testing. Thanks & Best Regards, |
Hi, i download and test the dev branch, in the first look it looks good :-) WBR, |
You can use both of them. No need action. System will check both of image and media folder |
Okay, i delete the folder under /cms/media/templates/site/fonts and make a new folder under /cms/images/astroid_template_zero/fonts. But now, the fonts will not shown as custom fonts in astroid backend.... WBR, |
I just update my comment Just join the discussion as updating to 2.6.0 cause big difficulties for me to This is serious business here...
————————————————————————————————————— With JCE you can make a WYSIWYG editor BECAUSE it can load the template CSS, custom local fonts, Awesome icons... directly in the editor windows. For me this is primordial, I will not use a framework that does not permit that.. |
May you send me your admin acc via sonlv@templaza.com? I will help you check it |
Hi Sonny, I am on testing and I run in different problems. |
In Joomla 4. fonts folder will move to media folder. You have to upload ttf file to media/templates/site/{your-template}/fonts Please help me try it again! We are forward to Joomla 4.3 and Joomla 5 in the next year. So we need prepare to follow Joomla structure, asap |
Anyway another idea: Can you add an upload button for fft fonts in the backend? For this idea. You can use com Media upload your ttf font to images/{your-template}/fonts It will load perfectly in the backend |
Ok, if I follow the discussion, Astroid 2.6.0 is not Joomla 3 compatible? |
Hi Sonny, |
@Joomlaplates — 2 questions
|
Astroid 2.6.1 is fully Joomla 3 Compatible. |
You guys scared me for a second ....... |
Sure let's try to download 2.6.1 and upload to your server. Feel free to give me your feedback. |
Same link above (developer branch)? — I guess, for a website with local custom fonts I have to follow what is said here and change my call in my —> astroid_template_zero > scss > custom > custom.css ? |
@Chacapamac I think you misunderstood about @deltapapa01 ideas. He refer a way to upload local font via JCE or Media Component. So that customer can easy to upload local font via JCE instead of FTP account. I noted that Astroid is fully compatible with JCE. You can use JCE without any worry. Best Regards, |
Yes Joomla Root folder/images |
Thanks @Joomlaplates , I find that a bit crappy as user will see that {your-template} folder in their images manager that already have others Joomla system folders (like banners) — At least with JCE you can add a clean root image user folder to clean the clutter. JCE will still be able to load the Astroid templates css in (as example) —> astroid_template_zero > css ? |
Hi Sonny, WBR, |
Hi @Joomlaplates @Chacapamac @deltapapa01 I upload my screenshots here. I hope you understand how to setup local font on Astroid 2.6.1
Let's check it and give me your feedback. Thanks & Best Regards, |
Great, I will test all that with Joomla 3 & 4 |
Hi @Chacapamac, Astroid supports 'otf', 'ttf', 'woff' only. Please help me remove woff2 files. I test on my localhost and it works perfectly. Best Regards, |
@sonvnn , This is my Astroid setup on this test website — Before doing my test, I clean all caches (Astroid, Joomla, Browser) and reload the front page before going to the administration to re-generate the compiled css Results: All woff files are working woff files ( taken from other websites and download from Google fonts directly. |
@Chacapamac please send me your admin acc via sonlv@templaza.com. I will help you check it. Thanks & Best regards, |
Just Send, take your time Sonny. No rush! Good Day to all Astroid fans! |
I got it. I will check it tomorrow. Thanks, |
Thanks @sonvnn Are you making that move (from folder “templates” to “medias”) for the new Joomla 4 “Child Templates”? Good Day! |
Hi @Chacapamac , This issue happens because Deprecated issue with PHP 8.1. I updated FontLib to fix Deprecated issue on 5e41a24 Now, Your site works well. Please help me check it again. Best Regards, |
Astroid 2.6 will move astroid, params and fonts folders from "template" to "media" |
Great @sonvnn , IMPORTANT QUESTION:
My question is, if that move is done by Joomla itself and need to be done by ALL Templates providers or only by Astroid? • I ask the question, because, JCE Editor seem to not be able, so far ( I’m discussing with the developer of JCE, Ryan on that problem right now!) to display (as it was when the CSS was in the “templates” folder) all the css (compiled and all otthers) in its edition window, loosing the so important WYSIWYG (What You See is What You Get) ability of JCE. |
I decide to go deeper to understand what we are doing here and why, and also answer my own question......... 1. To respond to my question about the stuff moving to the “media” folder???? — To permit this possibility you have now 2 places where template files reside
In the case of Cassiopeia • In the Joomlaroot > media > templates > site QUESTION: —————————————————————————————— In the case of Astroid Zero & One, the parent important files (css,images,js, scss) are mostly duplicated to the “media” folder** @sonvnn , Can you explain the difference between Cassiopeia & Astroid? I take my infos on Child templates from: |
Hello @Chacapamac
Now Joomla supports load file both of
In the next Astroid version will support load
This happen because you install Zero in old site with old files from Zero or One template version. Please download fresh Joomla from Joomla.org and install Zero or One template to that site. You can see they are not duplicated anymore. Please check sceenshots of fresh Install below:
I noted that please install on a fresh Joomla with first install of Astroid and Zero or One. No update in your old Astroid site. Please help me check it! |
Thank You @sonvnn for the detail answer. It answer all my question. Good Weekend! |
@sonvnn, you said
You understand that it is not possible to do this with an existing website without having to rebuild the website almost from scratch, this is not a solution for complex website. What I’m searching now is a safe way to pass an existing website to this new structure. 2 questions: • If you have any hints how to achieve that, your welcome? For now all my existing websites are on:
|
On some sites where the template was moved to media, As a precaution I made a local copy of the old template/astroid_template_one (or zero) folder then I deleted all the sub-folders except html and language |
Astroid 2.6 will move Astroid, Params and Fonts folder only. Because some old templates (from JoomlaPlate, Joomdev and TemPlaza) are not ready for Child-template. They need time to Joomla Template provider update template xml structure and scss code. If Astroid move all folders to Media folder, they might break customer site. In Zero and One template will create all folders except "html" to Media folder. And Astroid will detech folders both in Media and Templates. If a folder (ex: scss) is exist in Media, Astroid will use it instead of "scss" folder in templates. So, don't worry about old folders in templates folder. They will not use anymore until folders in "media" exist. If you don't like to see them, you can remove them manually. Please check if a folder is available in Media folder, you can remove it in "templates" folder. That is the solution. Thanks & Best Regards, |
Thanks a lot @sonvnn for the clear and complete explanation. I test it myself and I’m writing an article concerning the new template child possibility and the necessary update to Joomla 4.1+ and Astroid 2.6.0+ (You can have it for the Astroid website if you like it at the end) I test with a new website and update from —> Joomla 4.0 — Astroid 2.5.20 / Astroid Template Zero 2.5.19 This is my test Astroid Zero setup: WHAT I FIND —————> ( Tell me if I’m right? ) RESULT: No problem with frontend website / custom fonts / custom sccs ONE QUESTION HERE: —————————————————————————————————————— • Updating to Astroid Framework 2.6.0 or higher • In “templates” folder RESULT: No problem with frontend website / custom fonts / custom sccs ONE QUESTION HERE: QUESTION: (I am testing that after) Good Day for the Astroid Fans! |
@Chacapamac I will answer you questions one by one, tomorrow. In the next time if you have a question, please create a new topic on discussion. It will help others find their solution. This issue is closed. It is very difficult to follow up. Best Regards, |
I’m testing all that now... Take Your Time no rush! |
@sonvnn You don't have to read my last post, I answer my own question about the “scss“ folder with my new tests
Now I will try to update a complex Joomla 3 website, If you have any hints, you're welcome Just after I write this, I will send you a pdf by an email name “Child Template Update” where I wrote in detail the process. (it’s only a draft...) — The only “bug” that I find so far is that, if you have a “custom” folder with a “custom.scss” when you update the template to a “Child Template” ready Astroid, you get a 500 error in frontend — You need to manually move the “scss” “custom” folder (with the “custom.scss”) to the “media” folder. |
Hi @Chacapamac
It depends of your xml file. Please check your xml structure https://github.com/templaza/astroid-framework/blob/zero-template/templateDetails.xml#L27:L33
If you update Astroid 2.6 only "templates/your-template/scss" is still work normally. You don't need move it to "media". If you would like to move it to "media" please check your scss files to correct
You can update Astroid in Joomla 3.10.11 without any issue.
You have to place custom folder in same location with Best Regards, |
Sorry @sonvnn if use this post to talk about that. I did, because the original fonts bug was due to this new structure to allow Child template. Thank You to help me here.
For the 500 error: I think I’m OK from there — Thank You! |
Hi, |
Hi Sonny, big problem.
The fonts folder is not working anymore. I think it is because you move some folders from template to media folder.
Many people from EU use this trick and add their own fonts into this folder to avoid loading from Google fonts.
Here is the description what I mean ( switch to english)
https://www.joomlaplates.de/joomla-tips-und-tricks/google-schrift-deaktivieren.html
Greatings Peter
AND btw you cant downgrade from Astroid 2.6.0 to 2.5.20 because all files are already moved and not copied to Joomla/media folder
The text was updated successfully, but these errors were encountered: