Hey guys,
I have perhaps a dumb question but here goes; Is it possible to redirect Trongate to look for the public/themes directory inside of a sub-folder? Or would that break things? Assuming it were even possible that is. I ask because I was considering putting the public "themes" directory into an "assets" folder to consolidate things a little bit, but don't see anywhere in the framework where the directory for "themes" is mentioned. Is this even possible? Thanks
Redirecting The Themes Directory?
2 years ago
2 years ago
#1
2 years ago
#2
Hi Josh,
Of course, it is possible :)
Just use the module asset trigger found in config.phpin your path
an example would be:where the above module name is 'test'.
I hope that helps.
Cheers,
Si
Of course, it is possible :)
Just use the module asset trigger found in config.phpin your path
an example would be:where the above module name is 'test'.
I hope that helps.
Cheers,
Si
2 years ago
#3
Thanks DaFa for your response!
However, I am little confused.
You mentioned using the "module assets trigger found in config.php". Maybe using the term "redirect" was the wrong term.
To be clear and make sure we are talking about the same thing, what I am trying to do is create an "assets" folder inside the "public" folder of the base URL of the framework. Not inside any module. So, I am confused why a module would have anything to with that core "public" folder that is not inside any module?
Could you explain how Trongate knows to look in: "/public/themes/default_admin/blue/admin.php" Especially, when the only thing I can find in: "/config/themes.php" that remotely points at the "themes" directory is this line:
But even that doesn't clearly point at where Trongate gets the current "/public/themes" directory from, as far as I can tell... What am I missing?
Thanks again!
However, I am little confused.
You mentioned using the "module assets trigger found in config.php". Maybe using the term "redirect" was the wrong term.
To be clear and make sure we are talking about the same thing, what I am trying to do is create an "assets" folder inside the "public" folder of the base URL of the framework. Not inside any module. So, I am confused why a module would have anything to with that core "public" folder that is not inside any module?
Could you explain how Trongate knows to look in: "/public/themes/default_admin/blue/admin.php" Especially, when the only thing I can find in: "/config/themes.php" that remotely points at the "themes" directory is this line:
But even that doesn't clearly point at where Trongate gets the current "/public/themes" directory from, as far as I can tell... What am I missing?
Thanks again!
2 years ago
#4
Hi Josh, I thought you were trying to write some cool theme module, my mistake.
Ok, if you were to look in "engine\ignition.php" at lines 25 to 30 you will see how the themes template is being loaded in with this code:
So if you want to create an assets folder in the public folder and access files in it:
I hope this crude test theme explains it.
Ok, if you were to look in "engine\ignition.php" at lines 25 to 30 you will see how the themes template is being loaded in with this code:
So if you want to create an assets folder in the public folder and access files in it:
I hope this crude test theme explains it.
2 years ago
#5
Thank you! That is where the devil of a directory was hiding! It appears all I had to do in Trongate was change the set directory to look in "assets" for the "themes" folder and it was like nothing changed. I have already been moving the multiple inline embedded style sheets from their individual php files to their own CSS style sheets! If there is subsequent updates for Trongate may I suggest putting ALL the style sheets in their own CSS file, then into a conventional "assets/css/" directory and then just linking them in the files they are needed. It's very confusing when editing a file in my browser's Web Developer Console and all I see in the Style Editor console is
In any event, we are golden now!
Thank you!
In any event, we are golden now!
Thank you!
2 years ago
#6
Glad to see you're Golden now. Could you please close off this thread?