How to edit a footer in joomla: using media manager image folder? - joomla

I am trying to include a footer on a joomla website and need to reference an image. Ideally it would be editable by the client.
At the moment I have a template which has an index.php file, but if I reference the img src to be in the images folder, it does not reference the template images, but the media manager folder.
What is the best way to approach this please, for maintinability and also to be safe from updates and overwriting them.

You need to create a new "CUSTOM HTML" module and place following code in it. You can even use editor to modify it and upload new pics. I recommend using JCE editor, makes things much simpler.
<div style="text-align:center">
<img src="/path/to/your/images.jpg" />
</div>
So you need to do the following:
Login to Back-End
Go to Extensions->Module Manager
Click "New" button
Click on "Custom HTML"
Configure you module the way you like it. Set "Show Title" to "NO". Make sure you position it in the right spot, most likely you need to use "footer" or "bottom"... this depends on template.

Related

How can I add PHP to a Joomla menu item?

Here's what I'm trying to do:
In Joomla 3.1, I'm using the K2 component to build a full content-driven news website.
All is well, but I just don't like the K2 Login module, and therein lies the rub. That module automatically generates two key links:
• Add Item
• My Page
I want to unpublish the login module and add both of these links to a standard Joomla menu. It's easy to add the "add item" link because it's essentially static.
But the "My Page" link is dynamic. I've found the PHP code that generates it:
<?php echo JText::_('My Page'); ?>
But I don't know how to make a plain old Joomla menu item -- as in, one that I add through the menu manager -- to generate that code.
Note: It's important that I be able to use the Joomla menu structure because I'm also using Joomla's access control to hide or show these buttons. Meaning, I've added a "contributor" usergroup, and I only want them to see these links.
Any bright ideas would be much appreciated! Thank you!
You should go to the template you are currently using, in their you create a html folder.
In that folder you create a mod_menu folder.
Than you got your Joomla root > modules > mod_menu.
And copy files which are inside and drop them in the html > mod_menu folder.
Now you can edit the mod_menu to your favors with a rewrite.
http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
Hope this helps you.

Integration of a footer menu in a Joomla! template?

I didn't find the answer of my question in stackoverflow, so excuse me if this is a duplicate.
I need a step by step guide on How to create a footer menu in Joomla!, and HOW TO USE THIS MENU LATER. I actually created the menu but I don't know how to use it in a template. Please note that I'm new to Joomla! and just use it for the SEO it has.
Thanks in advance! :)
A footer menu is just like any other menu, same concept.
First of all, you need to create the markup in your index.php in your template folder like so:
<div id="footer">
<jdoc:include type="modules" name="footer" />
</div>
Then, in the Joomla backend, create a new Menu type and call it something like "Footer Menu". Once done, start creating a few menu items and assign them to the menu type you created before.
Then:
Create a new module,
Set the type to menu
Open the module in the Module Manager and on the right hand side in the parameters, there will be an option to select which menu you wish to use. Choose the one you have created.
Set the position to footer (assuming that is the name of the position you're using for the footer. If not then use whatever is required)
Publish the module and assign to all menu items
Save
On your website you will see the menu you have created, it will look rather bad but you can now start styling it using CSS to make it look better
Hope this helps

Joomla editor plugin development

I'm trying to make a plugin for each administration page with editor fields i.e. on the new article page or the new category page.
I'm not sure how exactly I should arrange this. It is a must that the triggers already exist i.e. I don't want to edit any template files.
So I have to use one of these then:
system type
content type
editors type
editors-xtd type
Where should I put this plugin? A system plugin might work but then the plugin gets triggered on each page which I find not the best
The content type won't get triggered at all.
The Editors type doesn't work either.
The editors-xtd works but it wants a button back as a return vale and I dont have a button because the plugin is mostly javascript based and automatic
What else can I use?
Thanks
Even though you're talking about a plugin, if you're talking about the editor field Joomla has it built in using JForm:
XML
<field name="test1"
label ="Test Field"
type="editor"
width="300"
filter="safehtml"
/>
(Note: editor, not editors) See this link for more information. Also, looks like this page was just put up yesterday - probably also has more information that could be useful since it sounds like a component may be more useful to you than a plugin.

joomla 2.5 - removing frontpage content block for joomlaxtc website

I have tried to look around all over the place to edit the joomla frontpage. Im using a template from joomlaxtc which is another reason why I believe im having trouble as the coding is a little different.
What I'm trying to achieve is remove the component or article area for my Joomla 2.5 front page.
here is the website
http://colmandesigns.123abc.co.nz/tyrelink/
as you can see the 'coming soon' white text box I want to remove however I only want to remove it for the front page not the rest of the pages.
I can't get your site to come up, but the home page of a joomla site is generally determined by the default item on your main menu.
From the admin Control Panel:
Choose Menu->Main Menu
Locate the menu item on the list that has a star in the "Home" column
Click on the menu item, and from what you see, determine what the article is
Go to that article, and edit there.
This presumes that your home page is an article, as is the case in a standard Joomla site, and doesn't account for anything your template may do in terms of features or settings,
Simply go to the template manager and go to the advanced parameters and see the show component on home page and select NONE
If you want to remove the "coming soon" bit, then go to the module that holds the "coming soon" bit. On the left, you should see "Module assignment." Click that, and choose "no" for Home Page: assign to.
This video may also be helpful.
Your template may have configuration to hide main content block from frontpage but if not then it can be hidden by using code block below on index.php or your php file which will define template layout.
<?php if (JRequest::getVar('view') != 'featured'): ?>
<div id="maincontentdiv"><jdoc:include type="component" /></div>
<?php endif; ?>

How to add js to a joomla template

i need to add js to a specific page in joomla. How do i do that? I cant find any option to edit the html of each page, since i also have to add some little html. How does joomla do that? i can assign a template for a specific site but then you would have to do each change twice...
I need to add a javascript file and some html to one specific site. i read the wiki and googled but i dont get it...
The reason you couldn't find a page to edit is that there is only one page in a Joomla site that builds all the other pages based on the URL, menu ID, and other parameters passed in the query string.
If you only need the javascript on a single "page" then there are a couple of ways to do it depending on where the content needs to be.
If it needs to go in the main content area (the component position) then you should get an extension that allows you to put javascript inside a regular Joomla article. Then you can put what ever code and HTML you need in the article and link to it with a regular menu item.
If you want it to go in a module position, then you can simply use the Custom HTML module. If you turn off the WYSIWYG editor editor, you can put the javascript right in to the content area of the module. It does require the editor to be off though, otherwise the code will be evaluated and you will lose what ever you had in there. You can also limit where the module displays under the menu assignment selection.

Resources