How to put a message on the home page

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
pasbonte
Veteran Member
Posts: 162
Joined: 2013-02-06 09:49

How to put a message on the home page

Post by pasbonte » 2022-12-30 17:22

Hello
How to put a message on the home page and only on this one, I went through HEADER-EXTRA and of course I have the message on all my pages.
merci !

jfischer
Posts: 23
Joined: 2022-11-19 16:07
Location: Austria
Contact:

Re: How to put a message on the home page

Post by jfischer » 2022-12-30 18:09

Hello

Replace this script in footer-extras.php and things like "your background", "your logo" with your pictures or your email address.

LG Joseph


Code: Select all

<?php
	$script_name = basename($_SERVER['PHP_SELF']);
	if($script_name == 'index.php' && isset($_GET['signIn'])){
		?>
		<style>
			body{
				background: url("images/your background.jpg") no-repeat fixed center center / cover;
			}
		</style>
		
		<div class="alert alert-success" id="benefits">
			<img src="./images/your_logo.png" alt="Logo">
			<br><br>
			<h4><b>Dein Titel</b></h4>
			Dein Text<br>
			<a href="mailto:your email address">Mailadresse</a>
		</div>
		
		<script>
			$j(function(){
				$j('#benefits').appendTo('#login_splash');
			})
		</script>

		
<?php
	}
?>

pasbonte
Veteran Member
Posts: 162
Joined: 2013-02-06 09:49

Re: How to put a message on the home page

Post by pasbonte » 2022-12-31 10:40

perfect !

merci beaucoup !

Post Reply