Bread Crumbs or other links

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
rpierce
Veteran Member
Posts: 255
Joined: 2018-11-26 13:55
Location: Washington State

Bread Crumbs or other links

Post by rpierce » 2022-05-15 18:43

Hi everyone,

I have searched the forum but can't find anything on how it might be possible to create bread crumbs that easily take users back to previous screens. There is no clean and simple way in AG to get back to where you started other than using the Navigation dropdown menu and starting all over. For instance, say you have a Projects table. You click on a project in the table view and you do some work in the detail view. If you have children records that you visit and work in, clicking the browser back button or the back button in the app requires a lot of clicking.

I tried to implement the code in the post below without success. Some if the post is in Spanish, which I don't understand.

viewtopic.php?f=7&t=2154

It would be nice to have a quick way back to he main parent (Project) record without having to go all the way back to the Projects table view and scrolling to the project you have been working on.

Thanks!
Ray

dge
Posts: 25
Joined: 2013-12-05 02:54

Re: Bread Crumbs or other links

Post by dge » 2022-05-17 01:42

100 percent agree that breadcrumbs are necessary. We implemented some breadcrumbs based on suggestions in the forum but there are some cases that don't suit themselves to these solutions. Appgini should have breadcrumbs as a basic feature, using the browser back button is not a great way to navigate.
( ... actually this thread should have been posted to Feature Suggestions, can it be moved?)

rpierce
Veteran Member
Posts: 255
Joined: 2018-11-26 13:55
Location: Washington State

Re: Bread Crumbs or other links

Post by rpierce » 2022-05-17 02:57

Hello,

Most definitely it can be moved. I was just hoping that one of the Appgeniuses would have a solution as they so often do.

Ray

User avatar
ronwill
Veteran Member
Posts: 228
Joined: 2015-08-08 10:12
Location: Cheltenham UK +Weatherford USA

Re: Bread Crumbs or other links

Post by ronwill » 2022-05-20 11:51

Hi rpierce,

I don't know how to code for this, however I've used hooks/filename.php to include breadcrumbs on some of my projects. It's a bit of a pain as you need to include separately on all pages and adjust for the current active page (so lot of copy paste and moving of 'active' menu item).
Still it's very easy to achieve:
Screenshot:
menu1 (2).jpg
menu1 (2).jpg (71.92 KiB) Viewed 1209 times
Code for hooks/filename.php (for header placement)

Code: Select all

	function home_header($contentType, $memberInfo, &$args) {
		$header='';

		switch($contentType) {
			case 'tableview':
				header('Location: home_view.php?SelectedID=1');
				break;

			case 'detailview':
				$header='<%%HEADER%%><script src="https://cdn.ckeditor.com/4.13.1/full-all/ckeditor.js"></script>
				<div class="container-fluid"><br><big>
  <ol class="breadcrumb hidden-xs">
    <li><a href="index.php">Index</a></li>
    <li class="active"><img alt="" src="resources/table_icons/eye.png"  width="25px" height="auto"> Home Page</li>        
    <li><a href="about_view.php"> About Us</a></li>
    <li><a href="contactform_view.php"> Contact Form</a></li>
    <li><a href="projects_view.php"> Portfolio</a></li>
    <li><a href="accreditations_view.php"> Credentials</a></li>
  </ol></big>
</div>	';
				break;
As said not a proper coded solution but might help you till ones available, cheers, Ron
Ron - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course

rpierce
Veteran Member
Posts: 255
Joined: 2018-11-26 13:55
Location: Washington State

Re: Bread Crumbs or other links

Post by rpierce » 2022-05-23 17:00

Thank you ronwill, I'll investigate that.

Ray

Post Reply