Topic Closed

OK, I've tried to do it as per the previous instructions, and it's just not working.

The example on the simple-blog download page (http://gpeasy.com/Special_Addon_Plugins?id=55) makes the php server crash - no page delivered at all.

The example shown in previous forum posts (http://gpeasy.com/Special_Forum?show=t422) does not work. The page loads but there is no breadcrumb text shown anywhere on the page.

The only successful way I've found has been to edit the layout, and adding it as a new section / include gadget.

I wanted to put it into the template.php, so that I can style the output, and place it exactly where I want it. I'm now at a loss to work out how to do it.

Richard

11 years ago#1952

Stano
483 Posts
16.6K Downloads
1 Themes
1 Plugins
Edited: 11 years ago#1953

OK, still no joy.

Here's my template file...

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php gpOutput::GetHead(); ?>
</head>
<body>
 
<div class="background">
<div class="wrap">
<div class="content">
<div class="breadcrumb">
<?php global $config;
include($config['gadgets']['BreadcrumbNavigation']['script']);
?>
</div>
<div class="page">
<?php gpOutput::Get('Extra','Header'); ?>
<?php $page->GetContent(); ?>
<?php gpOutput::Get('Extra','Footer'); ?>
<?php gpOutput::GetAdminLink(); ?>
</div>
<div id="sidebar" class="column">
<?php gpOutput::Get('FullMenu'); ?>
</div>
</div>
</div>
</div>
</body>
</html>
11 years ago#1954

Stano
483 Posts
16.6K Downloads
1 Themes
1 Plugins
Edited: 11 years ago#1955

Stano
483 Posts
16.6K Downloads
1 Themes
1 Plugins

So definitely, insert the following code to your template,

this works also without the modifying of Breadcrumb plugin:

<?php global $config;

if (function_exists('BreadcrumbNavigation'))

  { BreadcrumbNavigation(); }

elseif (isset($config['gadgets']['Breadcrumb_Navigation']['script']))

  { include ($config['gadgets']['Breadcrumb_Navigation']['script']); }

?>

Edited: 11 years ago#1956

I tried all proposed solution, but none worked.

11 years ago#2534

Benjamin
43 Posts
8.9K Downloads
2 Plugins

The usual method is indeed to define a section in the template and add the breadcrumb in the layout. That's how I do it and it works well.

To edit the styles I make a page and either save the generated html file and use it to test my css file, or I test the css directly on the page.

11 years ago#2535

Stano
483 Posts
16.6K Downloads
1 Themes
1 Plugins

As Benjamin says, the best way to do this is to use Edit layout, or if you remove the gadget from the layout, you can add it to particular page via the "New section-File include-Breadcrumb gadget." So this way, you can use the gadget only once on a page.

If you want to use a gadget twice on your page, then you can embed it directly in your template. Use the code I have posted on 2011-06-02 11:13 ,for Breadcrumb 1.2 it works well. Place it somewhere in your /gpEasy/themes/One_Point_5/template.php file. The code I posted here before did the same, but was incomplete.

Edited: 11 years ago#2536

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Ennetb├╝rgen (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Websi...

Find out more about our Provider Spotlight

Log In

  Register