How to add different logo images for specific content type and page. It want to be dynamic.When user add content, user want to select logo
4 Answers
create multiple custom blocks with logo image and display with page the page you need.
-
Thankyou @ananthakumar. I implemented this in my project. Working fine– steniyaFeb 7, 2017 at 9:04
Do not know weather this method fulfill the requirements but you can take a look. As Drupal 8 creates a block for logo. You can create separate block for each content type and depends on visibility condition you can show.
Create a dynamic View Block and use that as your logo block.
- Add image field to your content type
- Create a View Block in
/admin/structure/views/add
In View, for Fields, add your Image
Click on Advanced (far right), for Contextual Filter add
ID
.Provide default value, Content ID from URL. (Note: The view preview will go blank, which is normal, since the View edit page does not have a Content ID.)
- Go to blocks (
/admin/structure/block
), and add the View block to a region. For Visibility settings select the content type that you want this to appear in.
Add your logo field to your specfied content type, then create a custom page template for that specified content type, get and add logo field URL to page template variables and use it on page twig file.
if you want more details tell me I provide it for you.