dynamic header image for blogengine.net - asp.net

searching for a method to change a header image if I click on a link in BlogEngine.Net.
Let's say if I am at / and go to /page/about.aspx the header image should change.

This will require custom code for the page. There is nothing built in for this, and since the header image isn't a server object by default you will need to make it a server object. Then have some sort of settings file that stores what header image links to what page. You can then plug in an admin page to manage that settings file.

Related

How to add different header image for every page?

i am useing wp version 4.7 and i want to use different images on every page on header kindly tell me is it possible or not?
client want to be able to upload a different header image for each page within the backend of WP.
there are a lot of Wordpress plugins that allow you to custom your header image for each page as WP Header Images.

How to change url of default button on drupal?

I need to change url of default button on drupal. On that button, the url is example/blog. And i want to changet it becomes example/blog/1.
capture of my web
First, you should enable twig engine debugging(explained here) to find out what *.html.twig files does it fire and then cover it with your custom file or change the original one.

Embed-able HTML snipet in wordpress

I have a CMS in wordpress. I want a HTML snippet which we'll use it to show some content in other website.
Main CMS site is http://example.com, other site is http://other.example.com.
Now we want footer to be same, i.e. abc.com and other.abc.com should share the footer. So that If I change footer from CMS, I don't need to change that in main site. The main site will use iframe to show the footer.
What I did
I created a static file and put in the folder (I am serving CMS through apache-bitnami tomcat stack) so the footer URL became http://example.com/footer/footer.html.
Issue is it is not allowing me to access via iFrame because of X-FRAME-OPTION is set to SAMEORIGIN. I don't want this to be changed for all the website.
Is there any plugin which creates embedded-able HTML snippet? Is there other way?
Yes. The iFrame makes the user read from http://example.com/footer/footer.html, but due to security constraints he doesn't do that and nothing is displayed.
So you (aka the server) has to grab the code from http://example.com/footer/footer.html and send it to the user.
Basically you create have to (somehow) create a site http://other.example.com/footer/footer.php (or any other url) which is no static file but mirrors the content of http://example.com/footer/footer. Then you make an iFrame to http://other.example.com/footer/footer.php (the mirror) and the users loads from the mirror, the mirror loads from http://example.com/footer/footer and the footer is displayed.
This is my programmer solution, i don't know how much of a (non-) programmer you are and if you want to do this.

Same node, different templates in Drupal, how to do?

I have a content type which displays an image.
When this image is displayed as regular node page (node/xxx), I would like it to use the regular template file.
When this image is displayed in a modal (Lightbox2 popup modal), I would like it to use another template file (to remove the header and footer, change background, etc).
How can I set two different templates for the same node?
Thanks,
You probably want to use page-node-lightbox2.tpl.php which can be found in the lightbox2 module folder. Copy that file to your theme folder and make all the changes you want, then clear your cache (www.example.com/admin/settings/performance) and you should see the changes to the modal view of your images.

imagecache not displaying preset images

i tried to configure my imagecache..installed n enabled the module..now i created a cck for images..and set its test mode display as thumbnail preset linked to the node..
now when i am trying to add content to it, its not displaying the content on the node page.
I solved problem,;) when I activated the "ImageAPI GD2" package under the ImageCache module activation form (admin site building).
There are a few things you can check:
Go to /admin/content/node-type/YOURNODETYPE/display and make sure the image field is visible both in teaser and full view.
Make sure proper permissions are set for the files/imagecache folder (the files folder is usually located in site_root/sites/default/)
Check if the image shows up when you are on the node edit page
To use image cache you need to check three things.
check right php extension(GD) is installed
check your folder permission(generally sites/all/files)
ckeck permission for the field is given for drupal

Resources