I want to modify the module chrome for the Joomla custom html module. I understand that I can simply overwrite it or create an alternative chrome by creating a modules.php file in my template html folder. However, I have no idea where I can find the code for the existing, standard Joomla chromes so that I can modify them - does anybody know where the standard chrome php/html markup files are located or generated in the file system? Of course I could write it all from scratch in theory but I just want a slight variation to the existing html5 module and I would like to see how it is constructed to learn from it. Anybody got any clues where t can be found in Joomla 3.1? The documentation is sparse on the matter.
You can use the system modules.php file that comes with joomla as a starting point for your own module chrome. It is located under the templates/system/html/modules.php
For the custom html module overrides:
Copy the default.php file located under the /modules/mod_custom/tmpl/ directory over to /templates/yourtemplatename/html/mod_custom/ directory.
Related
I manage a website which is based on Drupal CMS. I have FTP access and I want to modify the structure of the header.
I know that the header is loaded from separated php file but I don't know what is the path to the file and how to find it in FTP.
Is there any way in Chrome dev tools to find the path to the file and is there a general way to find the files from which some part is loaded?
Check under "Appearance" from admin menu what theme is used and download whole theme over FTP. Themes should be in sites/all/themes dir. Then search the theme files and change what you need.
I don't think that browser can be aware of theme structure since it receives the whole pages and it can not know how page html is built on server side. There is an drupal module called Theme developer which can help you with that:
https://www.drupal.org/project/devel_themer
Unfortunately it exists only for Drupal 6 & Drupal 7 - not sure what version of drupal uses your site.
I recently had a task dumped on me, all I need to do is add a link header to a template in joomla. I'm able to do this directly inside the default.php in
/modules/mod_articles_category/tmpl/default.php
but of course it shows up in any module that uses that template, which isn't acceptable.
I havn't touched joomla before yesterday and I'm suprised at how painful this has become!
I've been following tutorials, creating an override template in
templates/template_name/html/mod_articles_category/default.php
but I dont see any option to utilize this override template in the module options of the admin console.
I also tried creating a duplicate of the module itself with the link header simply added into the default.php file but don't have any option to have this module installed since there is no module manager extension, just barebones joomla 3. What I'd like to do is use the override template, since it seems like the simplest solution.
What am i doing wrong that I cant see any effect from my override template?
Rename the file templates/template_name/html/mod_articles_category/default.php to something custom like templates/template_name/html/mod_articles_category/linkInHeader.php then save it.
Go to your module manager and open that module. GO to Advanced tab & select linkInHeader in Alternative Layout dropdown. This should do the tricks.
I have developed a joomla extension and want to load a php file within my extension directory onto joomla's back-end (Admin page).
For developing the extension, I have followed the developer document of joomla and install it on an instance of joomla. It located at administrator\components\com_myextension as the picture below:
Note: The root folder of joomla is jStore
For my intention, to achieve the result I have to define the behavior in xml file so that myextension.php file can be included whenever admin page viewed or to write a function to include myextension.php file when my extension installed. Neither way I don't know how to do that yet!
In conclusion, what I want to achieve is to load the file myextension.php whenever joomla's admin page loaded. And this must be automatically.
Regards,
Dung Tri
I have figured out a new way to run a php script after my plugin activated.
The way is to develop a system plugin for Joomla. The system plugin support some functions that can automatically run when admin page is viewed like: onAfterInitialise, onAfterRoute, onAfterDispatch, onBeforeRender.
You can see a tutorial at docs.joomla.org/J3.x:Creating_a ... for_Joomla and download sample project at github.com/joomla/joomla-cms-examples
I have a PHP file, which uses jquery and other, It uploads the image to upload folder , I want to use the same structure to my joomla 1.5 site. I am not sure how can I get this working in side a module . I tried taking all the file with default joomla module structure but I could not see more than the title of my joomla module . Not sure If I am missing something . Please guide me how I can take this to my site ?
img : http://i.stack.imgur.com/3yk0h.png
We firstly you will need to create a basic Joomla module structure as you will see in the default Joomla module such as "Login". Seeing as you have only provided a screenshot of the files and folders you're using, I am limited to what I can provide you.
So the first link is this:
http://docs.joomla.org/Creating_a_simple_module
It shows you how to create a simple module and after that, have a search on Google for other tutorials.
Also, if you don't want to create you own module, you could always use a pre made one from the Joomla Extensions Directory.
As we see in Joomla 2.5 if we click on template then we saw lit of CSS. I want to generate exact list of JS(Javascript) files along with that. If we click on Javascript i am able to edit it.
Now, second question how i can create up loader for Joomla Admin Panel. My clien want to upload CSS and JS files of his own. I checked out few link and extensions but not able to understand. any help on above please
I had check ed following link for uploading but not able to understand how to implement
http://docs.joomla.org/Creating_a_file_uploader_in_your_component
Thanks,
Manpreet
The CSS and JS editor is only available in some templates. Also it is able to edit the JS and CSS files that are embedded through your template. You can view these files in your index.php
(/templates/your_templates/index.php )
That link you have posted is about creating a component (nothing to do with templates), also is impossible to upload CSS and JS files through the media uploader , first of all the files are uploaded by default in /images/ folder, secondly I am not quite sure how is it possible to work.
BUT there might be a tricky solution for your problem. Each component, module or plugin is able to embed its own styles and Javascript files. Take a look at your template's source code, there must be a line like this
<jdoc:include type="head" />
This mentions to the joomla core that there will be embedded the additional files in the head of the HTML document.
My approach would be presented four generic steps
a) Create a folder where your client can upload several CSS and JS files
b) Create a plugin in order to do the uploaded stuff
c) In your plugin implementation add some functionality for editing the files (you can use any jquery's editor plugin to display the code in a popup or even joomla default editor
d)allow user to choose which files wants to embed
As I can imagine it will be a very hard task to accomplish since you have to face lots of problems (file uploading restrictions, file rights etc) but it's not impossible to do
Good luck with your project
Having answered your previous question regarding basically the same thing, I will say again, you can download the file uploader component which I provided you a link for or just download a File Management extension from JED.