To give our users cool looking urls, as well as optimise the chance of their blogs being found on google, we've made some significant changes to the Core functionality of Drupal. Since the Drupal software and accompanying Modules were completely free, it's only right that we share with you how we did this, so that others can benefit from this amazing software. A big thanks to everyone who contributed at
Drupal.org, as well as the
Pathauto module which we will use in this tutorial.
What, how, and why
Ok so you've got a Drupal 6.x website, and now you want to give each user their own URL. For example, you might want mysite.com/user to point to user's blog, and all of user's articles to go into mysite.com/user/my-day-at-work. Ofcouse if you wanted to modify the steps in this tutorial to, for example, let mysite.com/blogs/user point to user's blog (or evenuser's profile) it will be very simple to do this, and I'll point out where you can make your own modifications if you want.
This tutorial uses the
Pathauto module, which at the time of writing was at version 6.x-1.1. In this tutorial I will show you how to give each user their own directory for their content, as well as a more effectively structured forum system. Specifically I will tell you how to do the following:
Why have I done it this way? Well it's part Search Engine Optimization and part personal preference. The forum topic names can get quite large, but forum topics are often quite badly designed by users (because little effort is given to SEO by the authors), so having a precise and descriptive (albeit long) url can help get the article indexed more effectively by Google. As I go through this tutorial, I will do my best to explain where you can make you can do things differently, so no matter how you want to structure your URLs this tutorial should be of some help to you. Regardless of how you do it, the most important thing is that you decide how you want to structure your URLs before you start this tutorial. It's a very bad idea to go changing links on your website once it's up and running, google will have your head on a platter.
I am assuming that you are logged in with administrative privileges, so please do this before starting to avoid some confusion!
Part 1: Enabling Clean Urls
The first step is to enable clean URLs if you haven't already done so. I won't reinvent the wheel, Drupal.org have published an excellent article on this so before you go any further if you haven't enabled clean URLs check out the
Clean URLs tutorial. Ok I'm not sure I needed to make an entire section for that... Oh well, time to move on.
Part 2: Install and Enable the required modules
Download the latest Pathauto Module from the
Pathauto Drupal Module site. In order for Pathauto to work will also need the
Token Module, so download this as well. To install the modules simply copy each of the extracted folders into the
mysite.com/sites/all/modules directory. You now need to enable them, as well as the core module called
path, to do this go to Administer->Site Building->Modules and look for the Token and Path modules. Tick the box next to it and hit Save Configuration. Now do the same for the Pathauto module.
I am making the hasty assumption that any new version of Pathauto will work in a similar fashion. If it does not, please don't eat me, just let me know what was different by commenting on this article and I will update it as soon as I can. OK here goes
Part 3: Pathauto General Settings
To configure Pathauto go to Administer->Site Building->URL Aliases->Automated Alias Settings (or if you are displaying by module use Administer->Path->URL Aliases->Automated Alias Settings). You can now begin setting up the module to automatically give aliases to user created content, and should see a page with a list of URL aliases that have already been created (if you just completed step 1 of this tutorial the list will be empty). Bottleweb.org is currently set up to only use Blog Pages, Forum Pages, and Comments. Therefore I will only go over attributing URL alias patterns for those types of content. Click the Automated alias settings button to begin modifying the pathauto module settings.
Click "General Settings" to expand that tab if you cannot already see its contents. We can now modify some of the General Pathauto settings. Google will typically recognise the dash character as representing a space in a URL, so it's a good idea to set the Seperator character as the dash (-). Forcing the characters to lowercase in the Character case option is basically a matter of preference, I would recommend lowercasing all URLs. It is very important that you set the maximum alias length to nothing greater than 100. This is because the mysql database entry for the url has a default maximum length of 128, and very often extra characters are appended to the url (such as /feed for rss feeds). If that didn't make any sense to you don't worry, just leave it at 100!
Depending on how many pages you already have in your web page you may want to increase the Maximum number of objects to alias in a bulk update, IF you decided to update existing entries (we'll get to that in a moment). Increasing this value will allow retrospective changes to be made in one go for larger drupal site. If however this number is too large it will cause timeouts. If you are finding that your settings are taking too long to apply, you may need to reduce this number (for us it worked fine to go in sets of 1000) and apply the settings several times. The next settings is the Update Action field.
The option you select here depends largely on a combination of your website history and your own attitude. If your website has been around for a while and many of the blogs and forum entries are already linked from external websites, I would strongly recommend selecting the Do Nothing option. If your website is relatively new, and you don't expect many websites to already have links to your content, then by all means select the Create New Alias. Delete the old Alias. I would not recommend selecting Create a new alias. Leave the existing alias functioning. because it will create what search engines will recognise as duplicate content. This is never a good idea, so don't select this option unless you really know what you are doing.
At the bottom of the General Settings tab, there is a texbox full of strings you can remove. It is a good idea to keep this list, and increase it if possible. Keep in mind that the purpose of URL aliasing is to make the URL as concise and descriptive as possible to both humans and search engine bots. If I make a page called The Cat is Large and Fat, then it would be cumbersome and not in the least beneficial to also name the URL ../the-cat-is-large-and-fat. The url ../cat-large-fat contains the same important keywords, and is much shorter. Common words such as "and, if, then, or, a, the" are not going to be considered in the least bit interesting or unique by a search engine, and article titles rarely contain complex grammatical functions that necessitate these words to make the meaning clear.
Part 4: Punctuation Settings
The way I see it you have 2 options here: replace punctuation with a dash, or just delete it. I personally think that the best option is to simply remove the quotation marks and single quotes, and replace the rest with the separator. Whatever you decide, please don't let it be No Action. Keeping punctuation in your URL is never a good idea.
Part 5: Blog Path Settings
This section will define where the user Blogs are located. You will notice that if you click on the Replacement Patterns Button you will see a list of tags you can use to generate the URL dynamically.
If you know of a list where the terminology in these lists is explained in greater detail please let me know so I can link it here
For Bottleweb, we wanted each user's blog to exist in
www.bottleweb.org/user, so we used
[user-raw] as the pattern. It is important that you always use the "raw" version of the tag. Pathauto will issue you with a warning if you don't do this anyway. Feel free to use combinations of different tags or even your own text. For example, if you want to have the blog at
mysite.com/blogs/username you would use
blogs/[user-raw] as the pattern.
The Bulk generate aliases for blogs that are not aliased option will apply the setting for this particular type of page (blogs in this case) to all existing content of that type based on the Update Action that we specified earlier. So if you find that no pages are updated when you have selected this option, it's probably because you selected Do nothing. Leave the old Alias intact as your Update Action. The Internal feed alias text (leave blank to disable) setting simply specifies where you want the RSS feed for that type of content to be aliased. For example, if your blog is at http://www.bottleweb.org/administrator and you want your feed to be located at http://www.bottleweb.org/administrator/feed then you would simply enter <em>feed</em> into this field. The Internal Feed Alias Text and Bulk Generates Aliases options exists for every type of page, so think carefully about how you want to apply your settings for each type of content.
Part 6: Node, Taxonomy, User-Tracker, User Path and Forum Path Settings
Nodes are the Drupal version of pages, so when setting up the URL settings for nodes, you are actually setting the URL for the individual pages of all kinds (Blog article, Book, Page, Forum Topic, etc.). Since Bottleweb only uses two kinds of pages - Blogs and Forum Topics - we only needed to specify the 2 patterns. You may want to do more, this is entirely up to you.
For this tutorial we wanted to place all blog content in the subdirectory of the author, so if
Administrator wrote an article called
Unique URLs for Drupal site members on bottleweb.org, the article would be aliased to
http://www.bottleweb.org/administrator/unique-urls-drupal-site-members (remember that simple strings, in this case
for, are removed). To do this we used
[author-name-raw]/[title-raw] for
Default Path Pattern. To place all forums in the subdirectory of their containers, and all forum topics into the subdirectory of their forum, we used
[termpath-raw]/[title-raw] for
Pattern for all Forum Topic Paths. All other fields were left blank and therefore adopted the default, which is to alias the content into the subdirectory of the Author.
We do not use Taxonomy terms so that section was left as the default.
We wanted the user tracker to be in the
http://www.bottleweb.org/username/track so we used the pattern
[user-raw]/track in the
Pattern for user-tracker page paths field. To alias the user's profile to be in
http://www.bottleweb.org/username/profile we used the pattern
[user-raw]/profile in the
Pattern for User Account page paths field.
Finally, to alias each forum to the directory of its container, we used the pattern [catpath-raw] in the Pattern for Forums and forum containers field.
Thanks for Reading!
Well I hope this tutorial has been of some help to you. In return for the work I've put into writing this, please take the time to comment. This tutorial is a work in progress so if there is something you would like to see explained more clearly, or if you have found a mistake, feel free to let me know and I will update it.
Catherine White
Bottleweb.org
Australian ugg's make great
Australian ugg's make great gifts for any woman including teenagers, college students, moms, and career women. they’re available in many styles and colors so you have a huge variety to choose from.Uggs are made of sheepskin with flat soles and a soft furry inside. typically, worn without socks, the ugg boots keeps your feet warm in the winter, but unexpectedly cool in the summer.
Uggs have been around since the 1930s, when sheep shearers in australia wore them. these original boots were made of sheepskin all around, even on the sole. kids uggs sale today we have a hard rubber sole, making them more durable.site:timberlandonline.net
Our website has womens ugg boots include styles such as the knightsbridge, the mayfaire, the ultra short, the ultra tall, the sundance, the nightfall, the classic tall, the bailey button, the metallic tall, the classic cardy, the classic short and the classic mini. the ugg classic cardy is one of the more unique styles in that it is made of a heathered merino wool blend that looks like a sweater on your feet.
So many kinds of UGG Boots,dont you want to buy one!
We offer many advantages of buy our products:
*Free shipping
*best service
*fast delivery.one week to your door
*If you dont like what youve received, simply return it! site:uggslike.com
ugg boots
Everywhere you go now you find that the ugg boot has become the latest fashion new arrival cheap trend. now days it seems that you can not walk pass any window display of any shoe or fashion clothing store with seeing a pair of these trendy boots in them. it does not matter where ever you are in the world you will find ugg boots. these boots are both hot and trendy and certainly do not need to be worn in cold weather only. many people have found, that one pair of ugg boots is not enough.
We have been seller of UGG Boots for many years.Our customers are satisfied with our products as we offer the real UGG Australia Boots:
*100% authentic sheepskin for unrivalled comfort
*soft genuine sheepskin heel padding
*cushioning insole,flexible fabric-trimmed midsole.
*Lightweight molded EVA traction outsole
*Free shipping
*One week to your door
*If you dont like what youve received, simply return it! site:uggmax.com
ugg boots
Sheepskin and ugg boots are a casual type of boot. Ugg boots are exceptionally warm and are great for cold weather (up to -30 degrees Fahrenheit)If you are looking for warmth while trudging around the house or the city, a sheepskin or ugg boot will be ideal.For girls and women, ugg boots look fantastic with tight-legged jeans tucked into them, or with short skirts paired with opaque tights or bare legs. For guys, ugg boots work great with jeans, and give a very casual, or rugged look, depending on the jeans or the shirt you wear with your ugg boots.site:uggsmax.com
Do you have a pair of UGG Boots?If not,you must will buy a piar in our website.As we offer the best sevice and favourable price.what's more,we charge the shipping fee.So,you just need to pay the fee of boots,and will receive our UGG boots in one week.It is very easy to have your own UGG Boots.Come on!site:uggsmax.com
Our UGG Boots are all with top quality:
*features genuine twin-face sheepskin
*our signature UGG woven label
*feature a soft foam insole covered with genuine sheepskin
*have a molded EVA light and flexible outsole designed for refreshing comfort with
every step.site:ugghappy.com
ugg boots
what's the main point of the boots?the answer is to keep your feet warm.If you by one pair of boots put them on,especially in winter,you'll feel very tenderness and comfortable.they can make your feet warm.and youll find its really fashionable.you can tie-in each kind of clothes with them and still looks beautifull.
The ugg boots will definitely make you noticeable in a fashion-conscious crowd,and more importantly,is the fact that these boots are indeed quite comfortable to wear. these boots have been popular with swimmers and surfers since the 1970s and are regularly worn by surfers in california.the design of the boot with its sheepskin results in considerable thermostatic benefits.
We sell real UGG Australia Boots in our website.You must be satisfied with our UGG Boots when you receive your order.The UGG Boots you get will have these advatages:
*100% authentic sheepskin for unrivalled comfort
*a durable molded rubber outsole.
*The wrap around lace feature adds a fashionable touch with wooden beads at the end
*A removable and replaceable sheepskin insole gives extra comfort and warmth.
*Insole is made of sheepskin,latex. site:shoeuggs.com
ugg boots
When heard of winter, cold may come in your mind at once.if you are ready for the coming of winter,you should never be afraid of it.it is not difficult for us that if you protect your feet well,you will fell warm and comfortable.so you should get several shoes help you spend the cold winter.UGG Boots can be done.for many individuals,ugg boots provide the perfect insulation and comfort for the winter months.ugg boots are both warm and comfortable.these two factors are extremely important,no matter what amount of time you are going to be spending out in the weather.ugg boots are made out of a material that is water resistant, meaning that no water,and no cold air,can get into your boots.they will keep in the warmth of your feet,because of their outer shell and their inner linings. once you slip your feet into a pair of these boots,they will be warm and toasty until it is time to take them off.you will be able to take advantage of the great warmth that ugg boots offer.e-uggs.com
Welcome to buy UGG Boots in our website,we offer the UGG Australia boots are with top quality:
*features genuine twin-face sheepskin for refreshing comfort
*feature a soft foam insole covered with genuine sheepskin
*have a molded EVA light and flexible outsole designed for amazing comfort with every step.
*you can enjoy free shipping worldwide in our website.
*1 week delivery to your door
*sometimes you can get a special discount from our company by email
Our customers are always satisfied with such kind of UGG Boots and our high service!-http://www.footwearmbt.com/
ugg boots
We have been exporter of UGG Australia Boots for many years,our product are all authentic.Welcome to buy any boots of them in our website,we charge the shipping fee.
We just take 7 days to deliver the products to your door.
As everyone knows,UGG Australia Boots in australia, and many other countries as well, ugg boots also ug or uggs are a style of footwear that has been used generically for well over a hundred years.Everywhere you go now you find that the ugg boot has become the latest fashion trend.uggsmax.com
Our UGG Australia Boots are all with top quality:
*100% authentic sheepskin for unrivalled comfort
*flexible molded EVA outsole
*Insole features a genuine sheepskin sockliner that naturally wicks away moisture and keeps feet dry
*Wool blend knit uppers with suede heel guards
*Approximate Shaft Height (Uncuffed): 14.5"
*By UGG Australia;Imported.-http://www.uggdress.com/
timbshoe
Ugg Boots,also called Ug or Ugg boots,are nowadays one of the most popular boots.They existed already in 1930's and became
popular in 1960's when Australian surfers found out,that they can warm their feet after coming out from cold water.They have
everything you need-comfort and warmth.You will never be cold in those boots because 100% sheepskin will warm you even in the
coldest days.The natural thermal properties of sheepskin make possible that Ugg Boots will warm you in the winter but in the
summer your feet will not be wet.It is true that Ugg is shorter from ugly,but if you know even little bit about fashion you
will know that Ugg boots are not ugly.We can see famous people like Pamela Anderson or Kate Hudson wearing Ugg Boots.
Nowadays we have new improved Ugg boots for sale.You can get them for anybody.We have women boots,children boots,slippers and
casuals.
Our UGG Australia Boots are all authentic.Their properties and features as below:
*In cold temperatures,the fleece works as an insulating layer of warmth and keeps the warmth of body heat inside of the boot.
*In the heat,the wool fibers keep the air circulating; thus keeping your fee dry and pulling the perspiration away from your
skin.Sheepskin also contains lanolin,which moisturizes your feet when worn barefoot.
*ugg boots have reinforced toes,which are double stitched and extra durable heels.
*feature a natural,thick fleece on a removable in-sole for arch support.
*The sole is usually durable in most terrain,lightweight and provides traction as well.-http://www.timbshoe.com
timbshoe
Ugg Boots,also called Ug or Ugg boots,are nowadays one of the most popular boots.They existed already in 1930's and became
popular in 1960's when Australian surfers found out,that they can warm their feet after coming out from cold water.They have
everything you need-comfort and warmth.You will never be cold in those boots because 100% sheepskin will warm you even in the
coldest days.The natural thermal properties of sheepskin make possible that Ugg Boots will warm you in the winter but in the
summer your feet will not be wet.It is true that Ugg is shorter from ugly,but if you know even little bit about fashion you
will know that Ugg boots are not ugly.We can see famous people like Pamela Anderson or Kate Hudson wearing Ugg Boots.
Nowadays we have new improved Ugg boots for sale.You can get them for anybody.We have women boots,children boots,slippers and
casuals.
Our UGG Australia Boots are all authentic.Their properties and features as below:
*In cold temperatures,the fleece works as an insulating layer of warmth and keeps the warmth of body heat inside of the boot.
*In the heat,the wool fibers keep the air circulating; thus keeping your fee dry and pulling the perspiration away from your
skin.Sheepskin also contains lanolin,which moisturizes your feet when worn barefoot.
*ugg boots have reinforced toes,which are double stitched and extra durable heels.
*feature a natural,thick fleece on a removable in-sole for arch support.
*The sole is usually durable in most terrain,lightweight and provides traction as well.-http://www.timbshoe.com
thanks
Hello Catherine
http://www.yemek-tabldot.com I've got a drupal site and I am trying to create my own menus.
The problem I am having is how to create content for a content type. Every time I create something I cant access it again in my menu.http://www.polesan.com"
Can you help?
If you are familiar with
If you are familiar with FeedAPI perhaps you can help me out.
I created a new content type named 3rd party video items, and another named 3rd party video, then a new feed from the source. The created nodes are placed into /content (default path). There is no issue with the created content I just want it in its own path.
There are fields shown in node path settings titled 3rd party video items and 3rd party video which I've placed video/[title-raw] attempting to have all items create an alias path /video (I then will set up a new view for the path). Problem is each time the feed is refreshed all items created are using the default /content. Am I missing something here?
I appreciate anything you may offer.
Thanks
Nested taxonomy terms
how to create your own menu
Hello Catherine
I've got a drupal site and I am trying to create my own menus.
The problem I am having is how to create content for a content type. Every time I create something I cant access it again in my menu.
Can you help?
I am using pathauto at the moment but I am uncertain what path types to create for my nodes?
Chris
hi chris
Moved this to a forum: http://www.bottleweb.org/internet/drupal-development/chris-question-1
Post new comment