i have two views
view A
Content type 1
content type 2
content type 3
View B
Content type 4
content type 5
And I want a page like
View A View B
Content type 1 Content type
content type 2 Content type 5
content type 3
I did the following i have select view A and add View B but i got a blank page.is it possible using drupal 8?please help me
i created this using grid view but when i add new content type view will change.Can i set auto generated column false in drupal?Any help would be highly appreciated.
Yes, you need to create two block views and place the blocks on a page
maybe something like this helps:
https://www.youtube.com/watch?v=ya8_koKb4S0
Related
I want to create multiple sitemap type for node, taxonomy in Drupal 8/9
For example
1 sitemap for "Article" content type
Like: example.com/article-sitemap.xml
1 sitemap for "Basic page" content type
Like: example.com/page-sitemap.xml
1 sitemap for "News" content page
Like: example.com/news-sitemap.xml
And list all this sitemap in sitemap.xml
I tried with different module but didn't get any result I want
Please help me with this
The Simple XML Sitemap module can do it out of the box.
After installing,
Go to /admin/config/search/simplesitemap and create your sitemaps. Name them according to your content types/taxonomies and make sure they are of the default hreflang sitemap type.
Enable the sitemap index by editing it and changing its status. If it's not been created for you, you can create it manually by creating a sitemap of the index type.
Navigate to /admin/config/search/simplesitemap/settings and set the default sitemap to be the sitemap index. This way the index of your sitemaps will be available under /sitemap.xml.
Navigate to /admin/config/search/simplesitemap/entities and set content/taxonomy types to be included in the specific sitemaps you created.
Go back to /admin/config/search/simple_sitemap and click on 'rebuild queue & generate'.
Check the results by visiting /sitemap.xml.
We are working on a requirement where we need the first category pre-selected in category navigation.Based on the same,the assets should be filtered in an asset publisher based on this.Do we have some means to achieve this using Category ADT.Passing query string would need a hardcoded category id passed with URL,which can change anytime.
The asset publisher can be controlled with public render parameters. a possible "hack" would be to add a query string to Layout configuration that would add a public render parameter when the page is hit.
The second option would be to add an empty portlet to the page that would always publish a public render parameter with the default category and handle the UC when something else was selected.
Note that always only one category can be passed by the public render parameter.
The last option is to make a code change to the asset publisher.
I am looking to show one of two modals that are on one template file. The modals are displaying correctly based on a url string parameter (status=1 or status=0). I want to create a url in the form example.com/page?status=1
I have two buttons on another page with code as below:
MyDisplayText
How can I add my status=1 string to the url being generated?
You just add the text:
MyDisplayText
if your value is coming from the template context, then output the variable:
MyDisplayText
I have a view created that displays content type "Gallery images".
I can style this content type in node--gallery_images.tpl.php, but this template is for both gallery images and gallery images in view. I want galleries in view stylize differently than individual gallery.
Display output: views-view.tpl.php, views-view--gallery.tpl.php, views-view--default.tpl.php, views-view--default.tpl.php, views-view--page.tpl.php, views-view--gallery--page.tpl.php
Style output: views-view-unformatted.tpl.php, views-view-unformatted--gallery.tpl.php, views-view-unformatted--default.tpl.php, views-view-unformatted--default.tpl.php, views-view-unformatted--page.tpl.php, views-view-unformatted--gallery--page.tpl.php
Row style output: .tpl.php, --gallery.tpl.php, --default.tpl.php, --default.tpl.php, --page.tpl.php, --gallery--page.tpl.php
I was trying all possible combinations like views-view--gallery--page.tpl.php, views-view-row--gallery--page.tpl.php and so on, including --gallery--page.tpl.php but can't find the right file name. Whats wrong with that?
What is the correct way to render sub routes while at the parent route? Basically what I'm trying to do is create a table of resources from the parent route but then make the rows "editable" while at their specific sub-route. Examples:
/foos = table of all foo's but each row is a render of /foos/#
/foos/1 = same table of /foos but the specific row is now form fields for editing
/foos/new = row with blank form fields for a new foo (not part of the question, explain below)
The idea is that only one row is "editable" at a time. So if a user navigates from /foos/new to /foos/3 then the "new" row goes away and the foo # 3 is now editable. Similar when navigating between specific /foos/#
Bonus points: What is the best way for the /foos/# route to know if it is active, so the template knows to either display the read-only foo details or form fields for editing.
At this point I have (what I think is) mostly setup for this scenario but am stuck at the rendering sub routes. I have a jsbin setup: http://jsbin.com/jayax/6/