Product | Technical support | Version | Video exhibits | Manuals | Job Search | Contact
English   menu-arrow-gray-horizontal.gif
Home > About the Product > Protection of the projects under Visual PHP™
Related information
Search


Video demonstration
Drag&drop in the Visual PHP™ Environment

Latest video samples:
Job Search
Company
E-VISION International s.r.o.

is looking for PHP 5 and JavaScript programmers for long-term cooperation.




More information ...
Wrote about Visual PHP™
News by e-mail
Your e-mail

Visual PHP Recommends
For Visual PHP™
(for work in both the developer and the administration interface), we recommend using the Mozilla Firefox web browser, on the basis of which the whole software is developed because of stability, complying with the W3C standards and protecting elements of the browser.

Custom Values in the Navigation Component Output

The Navigation component is responsible for displaying the path to the main content of a page. Also the name Bread Crumb Navigation has become quite common among developers. This component tries to determine itself what path to display because it tries to find this path within the menu structure.

How the Navigation Component Finds a Path

If it finds the menu item that leads to displaying the actual page, the component displays the name of such item and inserts the path leading just to this item within the menu before it. If it meets with any item having set a link (either a direct link or a combination of a link section and a display mode) on this path, it creates the same link from the item of this path as the corresponding menu item has.

For example, if you have the following structure within the menu:
Magazine
      - Style
      - Hi-tech
      - Fashion
      - Watches
   - Gastronomy
   - Travelling
   - Sport
where all items link to the Articles link section and the List of Records display mode connected to this menu item, then on clicking on Watches the list of articles will be displayed and the Navigation component will display:
Home > Magazine > Style > Watches
The Magazine and Style items will have their own link leading to the list of articles, the Watches item will be without any link because there is no use in the page linking to it itself.

On clicking on a particular article, the name of that article will be displayed and the full path before it. This time all the items will have their links with the exception of the one with the article name. Again, there would be no use in displaying a link linking to it itself.
Home > Magazine > Style > Watches > Article Name

How to Display Custom Values in the Navigation Component Output?

If the Navigation component is unable to determine itself the correct path (e.g. there is no adequate menu item) or you require your own display for any reasons, it is possible to determine for this component what it shall display. For every table, the onGetNavigation event can be defined. If you display the main content of a certain table and such table has defined this event, then the Navigation component will display the values from the field that you will return just by this event. An advantage of setting this event for particular tables is the option to retain the default display for all the other tables.

You can use the following variables in the onGetNavigation event:
$this A table object.
$viewType A display mode ("vtList", "vtFull").
$navigation The initial field with a navigation path created by the Navigation component.

In the example, we display all articles of an author. There is the author field in the articles table that contains the login of the author of an article. Authors of articles are stored in the admin_users table. Let’s have the articles.php?filter_author=novak link and we want to display also the information that we are searching by author in the path displayed by the Navigation component for this type of link.

We will enter the following code into the onGetNavigation event, the articles table:
if ($viewType == "vtList" && $filter_author != "")
{
    // I will load the record of the author to get the whole his name
    $record = getTable("admin_users")->getRecord("filter=login='".$filter_author."'");

    $navigation = array(
        array("name" => "Articles", "url" => "articles.php"),
        array("name" => "Articles of the Author ".$record["name"], "url" => "articles.php?filter_author=".$record["login"]),
    );

    return($navigation)
}
else
{
    // if it to be to the contrary, we give back the initial path
    return($navigation);
}
In this case, the component will display:
Home > Articles > Articles of the Author Jan Novák





NOTICE

Some properties published in this article can only be functional with the latest core version. If you have any older core version, we recommend you to update to the latest version.

Login
Free trial

for 30 days
Latest core version
Single Developer 1.7.9.680
january 20, 2012

Professional 1.7.9.680
january 20, 2012

Enterprise 1.7.9.680
january 20, 2012


Latest developer guide
Developer Guide 1.0.5
july 10, 2009 9:36:42 AM

Latest user guide
Administrator Guide 1.0.24
august 27, 2010 11:58:08 AM

Latest install script
install.php 1.9.22
april 12, 2012 6:02:40 PM

Comming up in next version
more ...

rss.gif
Support

Fotogalerie 5/10/2012
Section: Tvorba prezentací
Chyba v hromadné korespondenci, nelze odeslat příloha (nová verze 4/6/2012
Section: Bug reporty
AntiSpam obrázek 4/6/2012
Section: Programování
Chyba při opravách textů 4/4/2012
Section: Bug reporty
Admin může smazat Developera, je to ok? 3/27/2012
Section: Bug reporty
Mapa webu 3/19/2012
Section: Tvorba prezentací


rss.gif
News

Weather Component Update
november 18, 2011
Server weather.com decided to stop providing weather information for free and passed to the paid version (about $ 60 per month). For this reason, we were forced to modify the Weather component to pulling weather information from another data source, namely from the server www.worldweatheronline.com . This site also provides information about weather all around the world, but the amount of information is smaller than the original source.

For proper functionality of the Weather component please update core to version 1.7.9.638.
Added new tutorials
october 4, 2011
He added new instructions Using another HTML editor
Powered by Visual PHP ™
© 2008 - 2010 E-VISION International, s.r.o.
Product | Technical support | Version | Video exhibits | Manuals | Job Search | Contact