How to remove Cataloge URL from ubercart - drupal

How to remove 'catalog' from url, for example
my site
http://[my_site_address]/catalog
shows me all categories in unbercart.
I want to change 'catalog' from url and replace it to 'store'
I try to change it from view but it is not changing.
Guide me I am new to drupal.

You can make a new URL Alias under Configuration with the path module. It's part of Drupal core, and may already be enabled.
For the rest of the catalog (for e.g www.site.com/catalog/1), you should use this Path Auto http://drupal.org/project/pathauto module to take effect.

Related

Drupal 7 how to write a clean url link in Panels, or Content Node

I have enabled clean URLS and it is working fine.
How ever I have a Panel page with link. the link goes somethinglike this.
<a href="?q=PageName">
Now, Lets say I am on that Panel page(i would think the same thing would happen on any other custom content pages) and let's call it PanelPage and I press the link, The URL end up being, PanelPage?q=PageName (The whole URL = localhost/SiteName/PanelPage?q=PageName).
My Question is, Is there a way to write that link, so that It coume out as Clean URL? SiteName/PageName ?
Please help.
Thanks
Use l($text, $path, array $options = array()) to generate links.
In drupal 7, after logged in as admin go to following path "Configuration » Search and metadata » URL aliases".
There you can set 'Alias Path' for 'Existing Path'. Add an Alias path for your panel page.
For EX:
Existing system path : http://www.example.com/PanelPage?q=PageName
Path alias : http://www.example.com/custom_name.html

Drupal6: $THEME_URL how to change themes based on full domain path

I have this function in my settings.php:
$THEME_URLS = array(
array('/optoelectronics','optotemp'),
array('/power-devices','optotemp'),
);
foreach ( $THEME_URLS as $info)
if ( strpos($_SERVER['REQUEST_URI'],$info[0])===0)
$conf['theme_default'] = $info[1];
..but, I've now realized that all the pre-processing and drupal output happens before hitting the settings.php so in this case above, another site I have sharing content but on a different domain get's the above 'optotemp' theme applied since it also has a /optoelectronics section/page.
I tried using www.sitea.com/optoelectronics but it doesn't seem to work.
I need drupal to recognize the absolute path, the actual domain and not just the /optoelectronics part.
So, I have a custom page with the path url /optoelectronics and two variants. Which variant is served up has selection rules based on domains. Works perfectly. Now, since siteA has a new theme but needs to keep the old theme for the /optoelectronics section I thought the above function would work but I discovered it serves up that theme no matter what the actual domain is.
How can I serve up a different theme based on the actual domain? D6
NOTE: I am using the Domain Access module to serve up content based on the domain. But, I need to control the theme for two sections of one site, while leaving those sections as-is on the second site.
Have a look at this issue: http://drupal.org/node/622450
See the two modules mentioned on the top but also the hook_init() function in
http://drupal.org/node/622450#comment-2224478

Duplicated permalinks on a wordpress page

First I have www.mywebsite.com/blog/ Which is another wordpress Blog under www.mywebsite.com.
Then I created a page inside www.mywebsite.com which has a url of www.mywebsite.com/blog/.
I want to change the first www.mywebsite.com/blog into www.mywebsite.com/blog2 so It won't confuse me anymore.
After changing the permalinks in the admin panel. I can't access www.mywebsite.com/blog anymore.
Is there any way to access the page of the original www.mywebsite.com/blog2/wp-admin? and view the duplicated page www.mywebsite.com/blog/?
Please comments if my question confuses you.
Thanks.
When moving your site, give the guide to moving wordpress or, in this case better, the guide of changing the wordpress url a glance.
Suppose you changed the URIs where you cannot move the files, but still can access the login page (through a redirection or something) you can recover your installation easily.
wp-login.php can be used to (re-)set the URIs. Find this line:
require( dirname(__FILE__) . '/wp-load.php' );
and insert the following lines below:
//FIXME: do comment/remove these hack lines. (once the database is updated)
update_option('siteurl', 'http://your.domain.name/the/path' );
update_option('home', 'http://your.domain.name/the/path' );
run it (once) and you are done. Test your site to make sure that it works right. If the change involves a new address for your blog, make sure you let people know the new address, and consider adding some redirection instructions in your .htaccess file to guide visitors to the new location. Delete those lines from your wp-login.php.

How can I change the apache solr search URL in Drupal?

How can I change the default apache solr URL path search/apachesolr_search/term to something else?
You can create a menu item that has the callback:
$menu['search']['page callback'] = 'apachesolr_search_view';
This will make that url use the apachesolr search as it's return.
What are you trying to change it to?

created node id in the next form?

I have a content type which is created using CCK's(Establishment). I have used $form['#redirect'] to redirect the user to another form that is generated from a custom module(Beers). My requirement is i need to save the created Establishment node id with values of beers module. How can i do this?
I installed Rules module and in admin/rules/trigger/add i created new rule and and added rule element as IFconditionCreated (content is Content Type) DO page redirect and in page redirect i set To as node/add/bears and in the next text box i added below code.
n_id=nid; ?>
Everything worked Great.

Resources