In a Joomla website, can I directly edit the default.php file in the modules folder's template folder? Or are those automatically generated while creating the site? Any guidance is appreciated. Thank you.
Please provide me with concrete images and stories about Joomla instead of repeating what documents say please.
[UPDATE] As long as it works, I edit ALL myself. Oh yes, soo good my first obstacle is being clarified.
if you want to make some changes to the files placed in modules/mod_abc/tmpl
(replace mod_abc with your module name)
you need to copy that file to joomla-root/templates/[your-current-template]/html/mod_abc/
then you can edit your file here. This is the standard joomla way to override module template.
Related
I would like to customize view.php file which is the core file of moodle, since modifying it in core is not good practice I would like to modify it from my theme,
By default there is a cool theme, I just copy pasted the course directory into it and Try to customize it but moodle is not recognizing my directory.
What is the procedure to do this kind of customization, I check this link but unable to follow it since I don't understand. Can any one help me here about it?
Despite the fact that there are several view.php files, which one do you want to adapt?
Please note that you cannot simply overwrite for example course/view.php in your theme. You have to override the specific renderers, see https://docs.moodle.org/dev/Overriding_a_renderer
To override an url in Moodle you may use custom scripts. However if it's a matter of a renderer you should try overriding that first.
I am trying to include the Redux Framework in my theme. I decided to try the online builder of Redux Framework: http://build.reduxframework.com/ to generate the necessary files for me.
The builder of Redux provides two options:
(1). To generate and export the admin folder.
(2). To generate and export a starter theme with the Redux settings.
I think i need option (1) since i have a theme already in my hands.
The admin folder contains the following:
(1). The Redux Builder generated (.Json) file.
(2). The admin folder itself - which contains the framework and extensions folders along with two (.php) files: (admin-init.php) and (options-init.php).
The documentation of Redux Framework teaches us how to load the config file of the framework inside our theme. It does not inform us through what to do with the exported admin folder and how to use it in our theme - in case we chose to use the online builder.
The online builder of Redux framework states the following:
Download just the admin folder portion. This will provide you with a
folder you can place in a theme or plugin and include
~/admin/admin-init.php to initate it.
Side note: It is written as "initate" instead of "initiate". If any of the developers happen to read this question, it may be a nice thing to correct this small typing mistake.
My Question:
(Q1). How should i initiate the admin file? I couldn't find that in the documentation. Is it about copying its content to the (functions.php) file after fixing the directories? Or something else is required?
Include the Redux framework.
Copy the generated admin folder to your theme.
Copy the contents of admin-init.php to functions.php file of your theme.
Fix the directories names and files depending on your theme's structure.
Is that right or i am missing something up there?
Any clarifications, answers or comments will be greatly appreciated.
Thanks in advance for your help!
There is another way to initiate, i don't know if it's the best way or not
in my themes, i add :
require get_template_directory() . '/admin/admin-init.php'; )
in my function.php so i don't have to fix the directories files and names in redux admin folder depending on my themes.
Lead dev of Redux here. Good call on the spelling check.
Just include that file and that's it! :)
I am trying to make a simple system with plugin and themes support, but I need translation for them. The file path of languages with /en/LC_MESSAGES is too big and I want simple and it should be put only in languages folder of the plugin, just like Wordpress. I see that Wordpress seems to use a hardcoded version of gettext stored in the folder pomo. Is it taken from another project? Will it be easy to extract this classes and adapt to my project? Do you know any other project that I can reach the same result?
PS: I don't want to recreate Wordpress, it is a very simple Framework and not a CMS system. It is mandatory to have localization, so I have to find a way to do this and make the simplest as possible to the users.
Any help appreciated.
Thanks in advance and sorry for my bad English,
Vinicius.
Found this class written by Danilo Segan that does exactly what I need, standalone gettext parser
I am using Joomla 2.5.4 for my web project and I am using MyBlog extension for the blogging feature for my web. now, I want to remove the 3 menu buttons ( Preferences, Statistics, & Comments) in MyBlog. i look over in the MyBlog Configuration but there is no config there on how to remove it.
do anyone can help me on where can i remove this menus using configuration?
thanks in advance ...
Might be an idea to contact the developers of this extension. Seeing as its a commercial extension, you will be very lucky to get answer. If the extension used "views" folder rather than admin.extensionname.html.php then I would have thought the code you are looking for will be in the file in the specific view folder. Sorry, its not much to go.
Under the path "\sites\all\themes\fusion\mytheme\", I found that some php file called "taxonomy_term_page.tpl.php", "views-view-fields--product-brand-category--block-2.tpl.php"... will generate some specific content on specific page, how can I configure this php file to specific link/block or whatever?
Yeah it would be a bit long to explain what to do with regards to what each file does. You would need to play around a bit and see how it all works.
I would recommend that you check out:
http://drupal.org/theme-guide/6
and read up on how the theme system works for the Drupal version that you are using.
but for example the "taxonomy_term_page.tpl.php" would be used to change the output of content that you would visit for a taxonomy term that you created.
eg. mysite.com/taxonomy/term/ which might be mysite.com/cooking-books/italian-pizzas
and the "views-view-fields--product-brand-category--block-2.tpl.php" would be for theming the output to one of your views which is configured to output as a block...
I'm happy to answer any more of your questions
You aren't going to be able to configure a specific file to fill the role for a specific theme (the files are picked by their file name for their purpose).
You should check out the devel module (specifically the theme devel module), which can tell you what parts of the output are expected in specific files. I'm not sure if the themer module is still in devel for 6.x, but if it isn't, try the devel_themer module.