I am new to Magento. I am working on Magento 1.8 and having problem while creating multi-store-views for different language's. I have done some configuration from backend, I gpt the multiple-store-view. Its converted from English to French but its not converting to Malaysia language. my steps are as follows
Note: I am using responsive custom theme.
Go to the site: http://www.magentocommerce.com/translations and download the proper language that you are looking for.
Extract and upload the files you downloaded to your Magento’s root directory. Keep in mind it will upload files to your app folder in Magento, but unless you try with a language that you already have there, it won’t overwrite anything as it’s a new language.
Once you finish uploading, go to your Magento’s Admin.
Go to: System>Manage Stores.
Click on “Create A Store View”.
Once there comes the really important thing: Put the name you want for the “Name” field, but in your “Code” field, make sure you enter your main theme followed by a “_” (underscore) and then the name of the language you want to use. Even if you used a new template that you did or purchase it would be under a main template type (default or base). Let’s say you have a new template you purchased called “MAG0873″ and its folder resides under “default”. Also, let’s say you installed Spanish language, then you would put “default_spanish” in this field.
Save it and now go to: System>Configuration.
There, select your new Store View name from the “Current Configuration Scope” item in the top left column.
Now, go to the option: General>Locale.
After that, uncheck the option “Use Website” and make sure you change “Locale” field to the language you downloaded (be specific according to the dropdown list!).
Save it after changing it and now clean your cache and refresh your FrontEnd.
Now, few important things:
If you didn’t deactivate the original Store View a new dropdown will appear in the FrontEnd to change the language and the new Store View’s Name will appear there. Once you select it, the entire template should switch its language.
It might happen it switches language but, it also shows old/default template, well, no worries, this means you need to set up your new Store View to use the proper template according to your design set up. The next steps are specific for the persons who install templates through the System>Design option as I do (which I think is the easier and faster way).
Go to System>Design
Add a new Design.
In the “Store” field, select the new Store View you recently created.
.Now select the “Custom Design” you previously installed in your system.
Save it.
Now, your store should be using the proper design in the proper Store View (language).
Ok, now it happens that the hoe page doesn’t show exactly as you had it on the original (English) language? Well, it might be happening that the Home page is set up for an specific Store View. To fix it, just go to CMS>Pages, now click on the “Home” record (assuming you are using default settings that come with Magento) and then in its options make sure you have “Store View” field set up to “All Store Views”. Save it now.
What's mistake i have done here.
Thanks in advance
If you'd like to have a well configured multi-language Magento setup you need to follow the steps below:
Setup a separate Store View for each language (System -> Manage
Stores -> Create store view);
Apply a Locale for each Store View (System -> Configuration ->
General -> Locale Options, select Desired Store View in "Current
Configuration Scope" drop-down in left-side navigation);
Make sure that you have translated all of your CMS pages to all of
your languages. You need to create a unique CMS page for each store
view;
If you'd like to use a separate theme for each language just do it in
System–>Configuration–>General under the Design tab;
In case you need to make a different set of categories in Navigation
menu for each store view, you may control it by "Include in Navigation
Menu" category attribute (Just choose a category for edit and go to
General Information tab). Change all text attributes in Catalog Products and Categories for
each store view
The more detailed guide find here:
http://sherodesigns.com/magento-tutorial/magento-tutorial-creating-multi-language-stores/
Related
I have a Home page on the Drupal website (such as is created after installation), but I still need to create this page:
What is the best way to create a page so that I can then add these posts with images?
I am just starting to learn Drupal and have heard so far about such ways of creating pages:
1) in admin toolbar: Content / Add Content / Article
2) in admin toolbar: Content / Add Content / Basic page
3) in admin toolbar: Structure / Views / Add Views
Which one should I use? Or maybe there is some other option that I don’t know about?
P.S. At the moment I am more interested how to create empty page on which I can then add posts later, and adding posts it is another question.
Welcome to Drupal.
Drupal ships with the default theme which won't look nice but it does its job in the right way. Now if you want to create a better UI/UX obviously you should create a new theme. But before that make sure to read and understand the concepts behind Drupal. Drupal docs are your first friend.
Drupal Documentation
Drupal considers everything as nodes and that's how Drupal got its power. As you mentioned, Articles, Basic Page etc are called content types and they can be used to create a particular type of content.
Now for your purpose create a new content type and add the fields you need. From the image above I can say your content type needs Title, Image, Category and Date. After creating content type you can create as many contents as you want under the content type you just created. Consider each card in your image as content.
Now you can use a Drupal Core Module Views, to perform DataBase Operations without writing single code. Yes, you can select fields, sort, order etc with Views UI and display it in a page or a part of a page (Block).
I would say just try this out in the default Drupal theme and when you understand how this works, you can start creating your own theme for your project.
Theming Drupal
There is a lot of resources available. But you have to make sure what you are asking is whether you actually need. It will take some time, but it worth.
To build layouts for homepages on Drupal 8 you best friend is https://www.drupal.org/docs/8/core/modules/layout-builder
To build the content blocks inside your home page, you should start creating nodes on a node content type to hold your information. For instance: news content type, with a title, a body, a date, and an image.
For every node type, ex. news, work on the preview display, full display, and any other display which makes sense. These displays can be used later in the Layout Builder directly or in Views, referenced below.
If you wish your list to be dynamic, such as the last 10 entries are shown first, then use a view to hold the content sorted and filtered as you need.
In a nutshell.
Create a content type for your article/news.
Modify the displays of the content types to have at least a summary and full view.
Create the content itself to have something to see.
Create the view (block) to filter and sort your content.
Create a page layout (this makes sense for landing pages) which places your new view and any other content you need in any disposition.
This is roughly what I would do. The steps described above contain many intermediate steps. If in doubt, check the docs.
I hope that helps!
First, decide what will you display on that page. Is it content in some existing content type (article maybe) or you want to crate new one for this purpose.
If you need new one then create it (Structure -> Content types -> Add content type).
Then check what fields will you need. I.e. image, some description text. Add missing ones.
Create few nodes (pages) in that type so you could work with them.
Then for displaying you should crate a view (Structure -> Views -> Add view). It can be a page view (you are displaying only that content on page) or block view (this is just a block among some others). If you create a page you could visit it and if you create a block you have to add it to some region to appear on page (Structure -> Block Layout).
Inside your theme you should create templates for this page/block. Turn on twig debug mode so it will show you hints - what templates are used and how can you name yours to override default ones.
Adjust CSS to make it look like you want it to look.
Find some tutorial(s) for the details
Previous answers have given the flow of the work you should go through, I would like to add some resource that might help you achieve this.
Creating content type and fields: https://www.drupal.org/docs/administering-a-drupal-site/managing-content-0/working-with-content-types-and-fields
https://www.drupal.org/docs/user_guide/en/structure-content-type.html
View and View modes: https://www.drupal.org/docs/user_guide/en/views-concept.html
https://www.drupal.org/docs/8/api/entity-api/display-modes-view-modes-and-form-modes
Handling block of the view: https://www.drupal.org/docs/8/core/modules/block/overview
Feel free to ask if any further explanation is needed.
Thank you
In Joomla 3 I have a need to specify different admin templates for K2 articles based on category to be able to specify different extra fields and make it easier for content contributors to add items.
I thought I'd found the perfect solution, but it was written several years ago for older versions of Joomla. I did contact the author and he admitted writing it several years ago, has since quit using Joomla and was not able to advise me.
It is very similar to overriding front-end k2 templates. Here is the article describing it:
http://getk2.org/documentation/tips-a-tricks/221-custom-admin-templates-and-calling-specific-extra-field-data
However when I do this and modify a category's admin template, there is no change from the default. My thought is that something in this code which modifies the file administrator/components/com_k2/views/item/view.html.php is not compatible with Joomla v.3:
//Look for specific admin template file
jimport('joomla.filesystem.folder');
$componentPath = JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'templates';
$componentFolders = JFolder::folders($componentPath);
$db =& JFactory::getDBO();
$query = "SELECT template FROM #__templates_menu WHERE client_id = 0 AND menuid = 0";
$db->setQuery($query);
$defaultemplate = $db->loadResult();
if (JFolder::exists(JPATH_SITE.DS.'templates'.DS.$defaultemplate.DS.'html'.DS.'com_k2'.DS.'templates'.DS.'admin'.DS.$item->catid))
{
$this->_addPath('template',
JPATH_SITE.DS.'templates'.DS.$defaultemplate.DS.'html'.DS.'com_k2'.DS.'templates'.DS.'admin'.DS.$item->catid);
}
Already, I know there is no table in my db with the name "templates_menu". That threw an error immediately. I believe it should template_styles", and most likely the columns should be client_id and id. Making those changes eliminated the error at least.
Further, I believe the path is incorrect in the "if" statement. The second "templates" directory is not needed.
However, even after making these changes, I do not seem to be pulling in my new template on the admin side.
I am hoping a Joomla/PHP expert (which I am not) can weigh in here. I could be entirely wrong in my assumptions about the pathing and table name.
Edit: In researching this further, I decided to go ahead and CREATE the table that was indicated in the original poster's code. I now have a table in my database called e758z_templates_menu.
However, I still get nothing when trying to make Joomla use a custom admin template connected to a category ID. It continues to use the default one.
Can you not just create different extra filed groups and then assign the right ones to the right category?
If you modify the k2 core files then any changes will be wiped on an update, which, with the new 1-click updates would be quite likely.
You should be able to override the standard admin view with a standard template override, ie
copy
/administrator/components/com_k2/views/category/default.php
to
/administrator/templates/YOUR_ADMIN_TEMPLATE/html/com_k2/category/default.php
If you want them to be different for different categories then why don't you create a frontend login and then use different templates for different categories and override them in the standard way.
I have one website with multiple store views for each language.
For some reason the logo is not showing on some store views.
On the store views that the logo is showing, the expected path appears in the href of the logo, namely:
base_url/skin/frontend/default/myTheme/images/logo.png
Whereas on the store views that have a the broken link to the logo, for some reason it is not finding it in the theme directory and it is reverting back to the base directory as follows:
base_url/skin/frontend/base/defualt/images/logo.png
I'm not sure where I may have gone wrong. And why the logo would appear on one view and not the other. The views that are displaying the logo were set a while back, I simply added new views at this point in time.
Additional info
The new store views were created under System > Manage Stores
They were given the code name mytheme_languagename e.g. mytheme_french
I have one url, the store views are simply to translate the store for regional users
I have the correct settings under System > Configuration > Design > template
I have set design changes under System > Design on at least one of the views, but the results are always the same.
Thank you.
Are you sure about your design settings?
I have the correct settings under System > Configuration > Design > template
The logo is a skin setting, so you should have "myTheme" set for skin or for default on all store views!
This is because when it correctly finds an image, your URL is
base_url/skin/frontend/default/**myTheme**/images/logo.png
First remove all the design changes from System > Configuration >
Design and System->Design.
Then apply the design changes for each store view only from System->Design.
Make sure what your Logo is named, Logo.gif or Logo.png
currently I have a Magento website installed on http://www.mywebsite.com, I have about 150 products in the catalog and only one language: the english.
Now I need to install another language in my website, the german. But the german store will have only about 30 products in the catalog and its domain is http://www.mywebsite.de.
I never handled a situation like this, is it long and difficult? Can anyone give me some suggestions on how to proceed?
I think this is a classical scenario for a Magento developer.
This is not difficult i think, You need to create another store from manage store section, you should have complete idea about multi-store. for different domain.
after cnfiguring two store then you need to install german language pack from connect manager. then you have to select language from configuration->general->local section of admin section. then you have to import product for two different store english and german.
thanks
download the language pack from http://www.magentocommerce.com/translations and then unpack it to your magento directory. When the system ask if the folder "app" will be replaced, click "yes to all"
Then go to System -> Configuration.
Click the Create Store View link on top right, and type these in store
Store: Main Store
Name: "Language name"
Code: any
Status: Enabled
Sort order is optional.
Here, you can also disable any store view by disabling its status.
Save, go back to System > Configuration. In Current Configuration Scope dropdown box, you now see there’s new store view. Click that link.
On Locale options tab on the left, uncheck the “use website” checkbox then change the locale to the name of the storeview you just recently created. Save.
Now you can have your website in your selected language.
You can do this step to configure other existing store views, too.
Enjoy!
I have created a simple basic component in joomla named, careerform so I want to know that what will be its url? Will it be :
index.php/?option=com_careerform
or in sef it will be something like:
index.php/components/careerform
or it will be like this while using .htaccess
/careerform
Is it true or what are joomla default URLs with different settings? Please tell what you know.
thanks for your time.
While what you are asking to do is possible, it would be rather complicated to rename a component. As part of the renaming you would have to update the names of dozens if not hundreds of classes throughout every file of the component. Very likely to run into some bugs because of this.
The far easier prospect is to just avoid these types of urls in your site. Joomla will only fall back to that style of url if a menu item does not exist for the view. Because of that, you can make the url into this:
http://sitename.com/any-component-alias/
To do this, go into the menu manager and create a new menu item. If you don't want this as part of the main menu, you can create a new menu. (I typically have a menu called "Hidden" for menu items that I want aliased but don't actually link to throughout the site from a menu.) When creating the menu item, make sure the type matches the component and view. The alias will then be whatever is entered in the alias box just below the title.
The one issue you may run into with this is that a component may not have a menu type for a particular view. In that case, you you would need to add the necessary metadata.xml file to the view (which again would be much easier than renaming the component!). A good tutorial for that can be found here: http://docs.joomla.org/Adding_view_layout_configuration_parameters.
yes if SEF will be enabled then index.php/component/careerform will be used.
You can create custom URLs by developing a router for your component.
There is very good documentation for it here.