How to print the Views title in page.tpl.php?
I could print the view with this code in page.tpl.php.
print $view->display['view_display_name']->display_options['title'];How can I print the Views title ?
I could print the view with this code in page.tpl.php.
print $view->display['view_display_name']->display_options['title'];How can I print the Views title ?
I have two different content types, Computer and Chemistry, and taxonomy terms for all articles (content types) which store the methodology of the article. The taxonomy hierarchy is the following.
When users are creating or editing a node of type Chemistry, just NGE and DMA (whose ID is 4) should be allowed to select.
I only need one taxonomy vocabulary, since there are too many content types, and if I want to add a vocabulary for each of them, then it leads too many vocabularies; more importantly it removes the ability of freely navigating in different types using taxonomy hierarchy.
How do I limit the allowed taxonomy terms basing on the content type?
I would like to know how to embed a Google map on a page, so that the the "directions" icon is showing. I had previously used the Simple Gmap module, but it doesn't provide the icon which I need.
Drupal 10.2.4 php - 8.2.16
I have created a Views Data export xml but the link to the xml file only works when I am logged in. When I'm not logged in the link works, but the xml file is empty. How can I have this link so that non-registered users can also see it. I tried with the xls that is downloaded, but if I am not logged in, an empty file is downloaded. Thanks for any help.
I have scoured the internet trying to find information on how to achieve this functionality to no avail. I am hoping I can get an answer here.
I have a content type called 'Server' on my website. One of the fields on 'Server' is an 'Access Role' field, which is an entity reference of user roles.
When a new piece of content is made, the author selects one (or multiple roles) that have access to this piece of content (The author can't be granted the 'manage roles' permission, so they can't use the standard 'permissions' options available when creating content).
I have a view setup (that is a REST EXPORT of type key_auth. When a user accesses the endpoint using their auth key, the view should return a list of server content that matches ONLY if one of the users roles is in the access roles field for the piece of content. I can't seem to find out how to achieve this using views and filters.
As an example;
Server 1 Access Roles: Developer, Testing
Server 2 Access Roles: Administrator
The user accessing the endpoint does not have the administrator role, but does have the Testing role. When the user accesses the endpoint, only 'Server 1' should return for them, since that's the only server that matches one of their roles. If more servers matched, those servers would be displayed, too.
I have the access roles setup, and the view setup to connect the api key to the correct user, but can't figure out how to set the filter up to match user roles to one of the possible access roles on the server content.
Is there somebody that could offer me some assistance?
How can i automatically generate anchor ids to h2 and h3 added using ck editor ? I need it for making a table of content.
I have a workflow called custom and it has workflow field called assign user , now i am using this workflow on my content type complaints and it is showing the workflow form in a field called field_workflow_state and in the workflow history it is storing the assigned user , now i want to retreive the assigned user and store it in another field called assigned to . I tried many options but none have worked.
I am using the ajax webform, because I don't want the page to be reloaded when the user doesn't enter everything correctly because my form slides in and reloading just causes it to disappear and you would have to navigate back there. When I have ajax-mode enabled, the redirect part works differently, and since the site has only 1 page, it doesn't really do anything, the form doesn't close.
What I want to do it actually refresh the page when the form is submitted with ajax-mode on.