I am currently working in a Drupal project and as i am new to Drupal, so i am not able to figure out how to add a sitemap(xml file) in Drupal.
I searched online but could not find any solutions
Kindly help me out, Thanks in advance.
The normal way would be to use the xmlsitemap module.
This will allow you to fine tune inclusion and exclusion rules for each of your content types as well as apply an importance weight to them.
Related
I'm currently working on my private CMS, mostly just to learn PHP. For now I have very simple way to show post, using GET with ID, for example www.mypage.com/post.php?id=1 and then loading results from DB. But I see that almost all blogs are using other way, which looks like this www.mypage.com/post/lorem-ipsum. I know about removing file extensions but the rest is mystery. Does wordpress and other blog CMS are somehow creating separate files? PHP is huge, and it's hard to find an answer if you don't know it well, so If someone can point me in the right direction, I'll be obliged.
It is possible to rewrite the URL using an .htaccess file: see here
I am a beginner with Magento trying to build a simple custom theme and while I have done a fair bit of research I am really in need of some simple clarifications because I think that the learning curve is rather steep but worth it once some basic concepts are understood. My design goals are very basic: All products listed on the homepage with different image sizes, floating left.
What I've done is downloaded the 'Modern' theme as a base to work with and renamed it:
app/design/frontend/default/mytheme
skin/frontend/default/mytheme
I've done some basic tweaking to the phtml files in
app/design/frontend/default/mytheme/template/
However, I have a number of questions:
Where exactly is the template for the homepage? Is it only customizable using the CMS>Pages control in the backend under Design>Page Layout? This confuses me because I am used to developing in wordpress and creating a custom php file for the index/homepage. I really think this separation of html/xml is really the hard thing for me to grasp.
If i can only customize the homepage using the backend, I see the block: <block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml" after="cms_page">. Navigating to mytheme directory, I don't see anything referring to this. Where are these things located? Am I supposed to copy any file missing from mytheme from the base?
Is it only possible to have 1 column, 2 column, 3 column etc. layouts?
An endless thanks to anyone who can steer me in the right direction. I really think it is just a matter of understanding very important fundamentals of how Magento themes are structured. At the moment I am already finding it so frustrating having my finder window open 7 folders deep and having to move around constantly. How I miss the simplicity of Wordpress' single folder themes.
Thank you!!
I suggest you to read all things in http://www.magentocommerce.com/knowledge-base before you go further
homepage content can be anything you want and you can reference it to be anything with layout file descriptors
MVC concept tells that it is taken from catalog/product_new block and from whatever is set to it's template. In current case catalog/product/new.phtml is used and you can edit this
you can have a completely custom setup and not restricted to anything that default contains. However it is wise to use defaults as almost all extensions depend on defaults more or less.
A very big part of magento design is layouts.
whether you choose to use a local.xml or change files from layouts folder you must have an ideea on how they work.
Here is a link for start
Intro to Layouts
There are many others resources outhere ofcourse.
I currently have a load of attributes already setup as text boxes - is there anyway I can get them appearing within the layered nav?
Any help would be much appreciated.
Regards
Shane
Given what you are looking for, Magento does not support what you want by default. However, the Magento filter code is fairly well structured, so this is something that you could add at will. The relevant backend code that will need to be modified is in the Catalog/Model/Layer subdirectory. Specifically, you will need to edit Mage_Catalog_Model_Layer to accommodate your new code. Also, you'll need to add a class that implements Mage_Catalog_Model_Layer_Filter_Abstract, to handle the actual filtering code. Finally, you will need to make the options appear on the frontend, which (in my cursory examination) will require two major changes. Firstly, you'll need to change the backend to allow the admin to mark text fields as being filterable, after which you'll need to modify the frontend template to display the checkbox fields.
This is a really significant amount of work. If at all possible, I'd recommend avoiding this route as it will also probably cause you significant problems down the road.
Hope that helps!
Thanks,
Joe
Right for anybody else looking at this, I looked into going down the custom code route, but quickly back tracked...
I decieded to bit the bullet, delete my attributes and recreate them and import the products again.
I'm pretty new to wordpress (only a couple of days), but I have it up and running on my website with the default theme. First of all I would like to change this theme. I have found a tutorial directly from wordpress but it is extremely vague: http://codex.wordpress.org/Theme_Development. I'd like to have a totally different layout for my website though, with only one page being replaced daily with a different article - a new article everyday basically. But I don't know where to start. I want to first create the theme though, I think that will put things in to perspective. How do I do so? I know the principles of php and enough about html and css to create whole websites. Thank you
That link should tell you everything you need to know. You basically just edit the theme files to get the layout that you want. The best way to learn truly is to experiment. If you have a specific question I could help you with that, but to tell everything involved in creating a custom theme would go way beyond the scope of an answer for this site.
i have created two website now i want one of them all url of web site do not end with .html how i can do it.please help me.
See this thread in the official Magento Forums:
http://www.magentocommerce.com/boards/viewthread/2244/
Since your questions so far have all been about Magento, I can just once more suggest to register with the Magento Community. You will likely get much better answers there. They also have multi-language boards, so you can phrase your questions in your native language.
you can change configuretion to set which suffix include url and you can change to exclude it too.
System->configuration->catalog->search engine optimization