Im creating a new multilingual site using drupal 9. Is it possible to add field value(im using taxonomy) from content types after the domain?(eg. www.example.com/**value**/en/about). And also restrict access to pages that do not have that value?
Domain should be the same, just the value will be different and should be visible on the URL.
Any suggestions or alternatives? Thank you.
Related
I have built an ecommerce website with Drupal 7 and use views and views filters for my product catalogue.
I would like to reduce the size of URL parameters for views filters to keep my URL's nice and short.
'Items_Per_Page' has no way of being changed in the UI.
I would like this to be changed to just 'Items'.
Can this be achieved?
Example
My product catalogue has 5 filters; Category, Mod, Brand, System, and Items Per Page.
The current URL is: catalogue/?category=All&mod=All&brand=All&system=All&items_per_page=All
I would like to change this to:
catalogue/?category=All&mod=All&brand=All&system=All&items=All
Please try the Better Exposed Filters module (https://www.drupal.org/project/better_exposed_filters). You can setup your custom filter identifiers in the view settings with this module in order to achieve want you want.
I'm trying to use the value of one custom field on multiple pages and posts. I'm a newbie to PHP and custom fields so what I'm trying to accomplish could possible be done using a different method.
I have a WPMU setup with all new sites created from a default blog that includes multiple custom post type templates. When users create a new site they are redirected to their site admin dashboard.
Here comes my challenge, I want users to be able to enter information into form fields contained in metabox(es) on their admin dashboard (not post editor) that will be used on the various custom post type templates. For example, a user will need to enter their company name, address, logo, etc.
Depending on the temple, the information entered into the form fields will be used on the frontend of the site. For example, the company logo will be display where the custom field or shortcode is placed on the post template.
I'm having issues using custom fields for this because each custom field is specific to each post. In addition, I'm having issues rendering a form on the admin dashboard for this.
I'm also thinking that custom fields may not be the best way to accomplish my objective because they are usually post specific. I'm really asking for a variable that will be used globally and is static unless the user updates the form.
I'd appreciate any assistance on this.
The options API is what you will need for this:
http://codex.wordpress.org/Options_API
There's also some plugins and frameworks you can use to help such as:
https://wordpress.org/plugins/options-framework/
https://wordpress.org/plugins/redux-framework/
I am using WP Subdomains plugin which is working perfect and I can restrict posts to show where I want by the sub-domain slug. But if I search for word using wordpress default search widget it shows all posts regardless of the sub-domain.
I don't know how can I restrict search to filter posts and show only with respect to the sub-domain and in case of upgrade how can I stop to override my newly created search widget.
Search Everything plugin is having a area where you can exclude categories you want. but I dont know what about subdomains and WP Subdomains. Please to feedback if you managed to use the two plugins at the same time.
To restrict the default search of wordpress you have to edit your the page where the searchform is sending the typed text. Searchform is just sending informations, what you have to check is the destination file.
Check this link : http://codex.wordpress.org/Creating_a_Search_Page
Okay I did it with my custom search page.
I am new to drupal, so sorry for this noob question, but I was wondering how to display articles only in the central column. Currently there are also blog entries, etc and I would like to get rid of them. I have a Views plugin installed but I am not sure how to do this.
In your View create a filter for Node: Type. Here, you can tell it specifically what kind of content to show.
you can change your frontpage settings in admin/settings/site-information
so let's say you created a view - with a page display
set the page url of your view (eg. articles), and then in your settings (the path i mentioned before) you set the drupal frontpage to the page path of your view (that would be 'articles')
i hope that's clear enough for you
I am a newbie to Drupal, hope somebody can answer my query.
I think I am facing a weird problem in views..I have a content type of say Company and have around 3-4 pages added to it. The sequence is as
1. Company - default page
2. View company
3. Search company
4. New page
The problem is when I go and add a Filter to the Search company page then that filter get shared with the default page and new page but doesn't get shared with the view company page, I am not sure what is causing this as I want that filter to be applicable for the search page and do not get shared across other pages.
is there a setting where I can restrict this filter getting shared ?
Thanks in advance
- Dev-Drupal.
If you want to set a filter only for one display, you have to, on the configuration of that display :
specify that the filters should "override" the default ones
specific the specific filters you want on that display.
See What are overrides? for a little longer description.
Basically, on the configuration of the "Search company" display, when you are trying to configure filters, you should choose "override" before specifying your filters.