When i searched about it, I found this file on this path:
app/design/frontend/BASE/default/template/catalog/navigation/top.phtml
But when i do any sought of change in it, it didn't work or not show any change. I think I am working in wrong file. What I actually want to do is to add thumbnails to menu at frontend.
I am new to magento. Please help me in this regard.
Best way of knowing path of any template file is : Using Template path hint
Goto Admin->System->configuration->Developer
Then select main website option from Current Configuration Scope dropdown on left hand side.
Then enable template path hint.
Navigate to the front end refresh and u can see the path for various blocks.
For better understanding of the template path hint try this video tutorial.
Actually the top.phtml file is in app/design/frontend/base/default/template/catalog/navigation/top.phtml as you have mentioned
Go to admin->system->configuration, now on the left panel click on design and in the Package area see the Current Package Name.
This is the current package you are using. Say this is... "default"
Now in the Themes area, check the Templates field.
This is the template of the above package that you are using. Say this is "modern"
If the field is blank it means you are using the default template.
Now the top.phtml file you need to edit is in or should be copied to app/design/frontend/default/modern/........
Paste it there and edit it.....
The reason for copying and editing is to keep a backup of original base package.
Try to flush magento cache at backend: "Configuration => Cache Management"
You maybe want to check if you have 'base' configured in the theme settings in Magento. Maybe it's overwritten in another package.
You may want to look weather you have a different theme active app/design/frontend/<themename>/<themevariation>/template/catalog/navigation/top.phtml
see http://www.newsjournal3.com/12-magento/13-how-to-override-magento-top-navigation
you have to put the topmenu.phtml in the html directory
Related
So I want to create a new module position in Joomla 3! I know you add the position name in the templateDetails.xml of the file. But what next? Do I need to add css to the styling of the template? Also what next, do I need to add more code to the index.php file or how can I do this? I have searched the web for some help but it seems as if the tutorials havn't been updated because some of the files they are describing, like for example lib/framework, I don't have that in my template? ANy help greatly appreciated!
I am not sure i got your problem properly, but
if you want to just create module position, you need to do 2 steps: define position in templateDetails.xml and insert jdoc:include code in template's index.php like you did in your code above, thats all. By doing this you define positions where your modules could be displayed.
Then if you want to add module, you should go to Joomla administrator panel -> module manager and create module, choosing position you created.
I have a content type with a machine-readable name set to 'sbpage'.
In my theme folder under /templates I have created node--sbpage.tpl.php but this isn't getting loaded in as the template.
Separately I have node--course.tpl.php working for a content type named 'course'.
I've probably missed a step somewhere but it's driving me mad.
This is Drupal7, latest stable build.
I'd suggest to use Devel themer to have more information and track down which templates and suggestions have been fired.
The only thing I can think of on the top of my head is that you might have a node--nid.tpl.php overriding some particular nodes, that's the only thing that comes after they machine name type: https://api.drupal.org/api/drupal/modules!node!node.module/function/template_preprocess_node/7
What I'm trying to do is create a submenu (in Joomla! backend) with below code but it does not work.
JSubMenuHelper::addEntry(JText::_('test'), 'index.php?option=com_test&controller=test', $controller == 'testcon');
I have attacted a sample pictures here. It explains what type of menu I want.
sample menu is here. check this picture
Thanks!
JSubMenuHelper is designed to be used in the Joomla! Administrator section, it's not made for the frontend.
If you really want to get to it, you need to include the file:
/administrator/includes/toolbar.php
Also you will have a bunch of missing CSS (js maybe also) files that you also need to include (form the admin template folder)
But I see no reasons what you want to use JSubMenuHelper in front-end. I would strongly advise against using it.
You should create menu and (submenu) in Admin Panel, but I think you already know that :)
Later you add look and feel with CSS.
I think you should do ti with CSS not PHP.
I'm a php developer and currently working on a project in which I'm required to change the layout of a web page created using CubeCart. I've never worked before with CubeCart. I've created a template but don't konw where to place my stylesheet and other things on server as there are a lot of folders and files. This is very confusing. Can anyone please help me?
Thanks.
Just looking through their site, I found this page on editing the look/feel. It seems you're looking for this folder: /public_html/store/skins .
It would be best to make a new folder in there to store your working template. Copy all the default skin files into it and edit those.
To turn it on, go into the store admin and then [Store Config] -> [General Settings] then the [Styles and Misc] section. There should be a drop down for Store Skin - change it to yours.
I have been asked to upload a Zen Cart site to my servers and have done so fine.
I am getting a problem now with the fact that the client has uploaded his custom template into the includes/templates folder and selected it in the admin - but it still wont load it. instead it just loads the template_default style.
I am been through every document I can find and have performed the 'reset' of the Layout Boxes Controller, but nothing seems to resolve it.
Can anyone tell me if there's a file I need to tweak or something to make sure it loads my custom style?
Cheers,
C.
One solution would be to overwrite the default theme with yours. I know this is not what you are asking, however, it would solve your issue.
Zen Cart templates can be really simple or really complex. So installing them can be easy or complicated. The files are probably in the wrong place, or not completely installed. It's easy to make a mistake. Just in case, here's the outline:
1a. Simple - Copy the cart template files to includes/templates/your_template_name/.
or
1b. complex - Copy the cart template folders to includes/.
2 Go to Admin > Tools > Template Selection and click Edit.
Select your_template_name. (If you don't see your_template_name something has gone wrong.)
3 Many templates install with the sideboxes turned off. Go to Admin > Tools > Layout Boxes Controller and edit the sideboxes to turn them on.
One idea for trouble-shooting ...
Look at the database template_select table. What template_dir is set?
If this is happening, double check the file includes/templates/YOUR_TEMPLATE/template_info.php. This file is used by the system to determine if a folder under includes/templates is actually a template, and things won't work without this file. Once you've set this file up, go back to admin->tools->template selection and try re-selecting your custom template.