I have menu in which there are two levels. After I added the third and fourth level of categories from the back end, I want the third sub-category in the menu to be displayed differently I want to change its appearance. Can i do it in back end custom design? Or where should I look for the code? I have tried editing the top menu p html
You should edit the relevant PHTML file in order to do this.
Sometimes you will have to edit menu.js as well written in prototype. if you are not familiar with it use a jQuery code.
Related
I would kindly ask for your help :) From couple of days I am trying to achieve "linked" custom field in content editor and dropdown in page editor.
Basically I want to have dropdown in page editor and content editor which are responsible for a same thing.
In my c# code i have enums which represent directions. I created custom field which accepts assembly and class with overridden onload method and successfully populate dropdown values in the content editor. So far so good but i have no idea how to create dropdown which will represent the same functionality inside page editor.
So please give me any ideas...
Judging from your reply to my comment you need to think of the following: How is my field value being rendered onto a page?
If you are always using 1 control to do this then you just need to ensure that this control has 2 different rendering modes depending on the Context.PageMode
But as I understand it you want this dropdown to also appear when someone renders your custom field using a <sc:FieldRenderer>. In this case you'll need to look into the RenderField pipeline of Sitecore. There you find a processor called RenderWebEditing. Possibly through some manipulation here you can get your dropdown appear as you wish.
In Magento 1.7, when you click on a category, and the product catalog for that category comes up, I would like to add the words "Click for Availability" next to or below each item. Can someone please let me know how this can be done?
The file you need to edit is
/app/design/frontend/base/default/template/catalog/product/list.phtml
But editing that file directly is not upgrade-safe, so you'll need to move it to
/app/design/frontend/default/default/template/catalog/product/list.phtml
That will override the base file automatically. Note that there are two view modes--grid and list, both of which are indicated by a comment in the list.phtml file--so be sure to edit both for your change to be visible at all times.
It looks like you'll want to add your line inside the product <li> for grid view, which is line 94 for me. For list view, you should put it inside the the .product-shop div, which is line 52. It's hard to be more specific without knowing exactly what you have in mind. You'll just need to play around with it.
In list.phtml add a button "Check Availability" which on click triggers a JavaScript function
pass this to the function
$_product->isSaleable()
if this is true show in a div Available else not Available
This availability code is already checked in magento
Is there any way to highlight the current menu which have been clciked.I am using left-mnu.jsp in which i have all the menu which i am including in each jsp pages.Now i use a variable clicked and update this variable to some value when i open main jsp pages.Then am checking this variable in left-menu.jsp to highlight the appropriate menu.I know this is not a good approach.Can any one suggest me a good one for highlighting menu.
You can do that with CSS only, setting the id of the home with a word related to the id of the selected menu item, like described here.
Or with Javascript, matching the URL of the current page with the URL of the menu items (if they're href), like described here (approach #2)
Or do it with JSP tags, etc...
I'm not very familiar with joomla, I added new article , But the left and right positions (right & left bars) don't appear in the two sides, How to add them please?
Thank you
If you go to Module Manager, then select the modules you want to show, ensure they are enabled on all pages. I wouldn't have though you have to create html page using the article manager. Joomla isnt really built for this. Regards
if i am not wrong, then i think you want to add two columns in your article page.
There is a simplest want in you article editor click on the html button which show you a new window where you can set your html. And for two side that is left and right, just create a html page and paste in only the body content into your joomla editor and if you want to add some style then define id's or class's to your article or you can set inline css..
hope this will help you..
I want to add dynamic menu table in inner pages based upon the tabs on the home page.
how to do that in joomla,please help me.
It sounds like you are trying to create a split menu where the link you click at the top determines the menu that shows up in a column/below. This is the native behavior for Joomla menus simply by setting the start and end levels in the menu module. Here is a good tutorial -
http://www.theartofjoomla.com/magazine/article/27-more-menu-tricks-the-split-menu-technique.html
Beware:: The split level menu feature in Joomla only works when the split equals TWO levels. If you want to build your site with a single master menu that spans 3 or more levels, this does not work. It looks like the internals of Joomla do not know how to track the parent properly (not really sure) when the menus are generated (probably an overstatement). Level 1:1 works, Level 2:2 works but then when you try to specify a menu starting at level 3, it breaks. In my case, I hacked the menu to check the pathways (breadcrumbs) list and derive what I wanted from it so I could determine the real parent of the items at level 3 (or other). Then I could get the items to generate proper. This was a disappointment in Joomla (v1.7). And then on top of this, you would then have to hack further to ensure that each menu item instance starting at 1 is highlighted proper. Perhaps the menus should be more closely coupled to the breadcrumbs pathway list.