I have already made a override on the following location as said in Joomla Documentation:
templates\new_vision\html\com_content\category\publications.php
So I have linked the Component to the Menu. When goto the Menu to edit the Template Style with the override Template, it doesn't show in the drop-down. Below is the screenshot.
Please advise what am I missing over here.
Related
How to add "Add to wishlist" button next to Add to Cart like the one in the picture?
By turning template path hints you can see the respective template file for these buttons, which is addto.phtml in your theme pakg / theme
You will see 2 button there, see classes used for those button. Find that classes in appropriate css file in your theme pakg/ theme. There might be clear property in li tag which you could remove and try.
So I'm a little confused by Joomla's Alternative Layout overrides.
I'm using Joomla 3.3
I have read all Joomla 3.x documentation, and have followed many tutorials without any luck.
So here are my template files:
Promo is the name of the alternative layout which I would like to activate for one of my Category Pages.
So it appears as an alternative layout without a problem.
Then I've gone ahead and made the menu item:
However when I go on the page, it calls the blog.php override only and not the promo.php layout
What am I doing wrong here?
Where is your promo.xml file? You should have one in the same directory where you have your promo.php file. The promo.xml file should be a copy of the blog.xml file located under the public_html/components/com_content/views/category/tmpl folder. You will only need to change the line:
<layout title="COM_CONTENT_CATEGORY_VIEW_BLOG_TITLE" option="COM_CONTENT_CATEGORY_VIEW_BLOG_OPTION">
to
<layout title="promo" option="promo">
And then when you create a menu item, choose its type to be promo.
To expand on #itoctopus, there are two different things, an alternative layout and an alternate menu layout. If you make a direct menu link you must use the latter. For this you need the xml file, and at that point it will show up in your list of menu options. Alternative layouts are applied to items and the do not show up in the menu options. The menu always overrides the item. There are some additional options you can play around with.
I am don't know joomla, but familiar with wordpress & PHP & wants to change some links in my clients existing project.
I have a menu which is a link like http://www.smarti.com.sa/index.php?option=com_content&view=article&id=6&Itemid=107 while calling it from top navigation menu.
developer has taken same link in footer but it redirects to
http://www.smarti.com.sa/index.php?option=com_content&view=article&id=6
Now i want ItemID in footer link also.
My Site URL is http://www.smarti.com.sa/
In that please Products > Microsoft.
Please give solution
As per your post, Your menu link for now is : http://www.smarti.com.sa/index.php?option=com_content&view=article&id=6 .
But, you want to use this like : http://www.smarti.com.sa/index.php/your_menu_name.
You can use aliases of menu links.
You can find aliases here, When you create/edit a menu link from backend of joomla you can see an alias associated with it. You can also find Aliases of menu link from grid screen of you menu type.
For showing Menu in front end you have to create CUSTOM HTML module, You can find how to create Custom HTML module here : http://vinaora.com/2012/09/how-to-add-custom-html-to-your-joomla-site-2/
Now, How can you find HTML to write in thst Custom HTML Module? So, for this you can go the page of front-end where that menu is visible. Now prss CTRL+U, you will see the HTML of that page. Here, you have to find the HTML of those menus.
In this HTML, you will find the links like : index.php?option=com_content&view=article&id=6
Now, you have to replace these links with index.php/alias_of_your_menu.
Now paste the edited HTML in Custom HTML module and save it by selecting a proper Position.
You can use joomla menu module in the footer.
Joomla also has the option to display second level menu items in a menu module.
To do this:
Set the Start Level to "1" and the End Level to "1".
That's all. Good Luck.
I have created custom layouts in my custom theme.The layouts are appearing in Layouts tab in Edit mode. but when i apply a layout to a page and click on save, the layouts are not applying to page.Please help me to resolve this issue
Thanks in advance!!!!!
Check if there are any underlying errors in SystemOut.log file on your system. Also pls post the method (in detailed steps) using which you created the custom layout.
You can add a page layout to a page via the layout file itself through WebDav. Open your page in edit mode, open the edit page properties dialog, and click the Advanced tab.
Once on the Advanced tab, you can set the page layout template location using:
dav:fs-type1/path/to/layout/in/theme
I am currently creating a component for Joomla 2.5.
I would like to add a custom button to the TinyMCE editor, but being in the context of a Joomla component, I can not add files or code inside the TinyMCE editor plugin...
Is someone able to tell me what I am suppose to use to do so?
Thank you
Editor buttons are built as editors-xtd plugins. You may look at the readmore button, which is only added in article context.