removed all the old nav macros
This commit is contained in:
parent
2b82d714ea
commit
314d8daacb
22 changed files with 63 additions and 913 deletions
|
|
@ -83,5 +83,6 @@ webgui.
|
|||
- Added an override in the user profile for toolbar icon set.
|
||||
- Migrated the navigation items (Thanks to Leendert Bottelberghs, Len
|
||||
Kranendonk).
|
||||
- Removed all old navigation macros. See gotcha's for details.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,18 @@ save you many hours of grief.
|
|||
so that you can migrate them manually to the new template
|
||||
variables.
|
||||
|
||||
* The Synopsis macro no longer exists. If you were using it to
|
||||
retrieve the current page's synopsis, then please use the
|
||||
^Page("synopsis"); macro. If you were using it to build a
|
||||
synopsis style navigation please use the new ^Navigation();
|
||||
macro.
|
||||
|
||||
* The old navigation system has been entirely replaced. If you've
|
||||
built or are using any navigation components that did not
|
||||
come with WebGUI then you'll need to remove them and use
|
||||
the new configurable navigation system. See migration.txt
|
||||
for additional details.
|
||||
|
||||
|
||||
|
||||
5.5.0
|
||||
|
|
|
|||
|
|
@ -26,9 +26,17 @@ There have currently been no changes to the Wobject API.
|
|||
2. Macro Migration
|
||||
-------------------
|
||||
|
||||
2.1 Nothing Yet
|
||||
2.1 Navigation Macros
|
||||
|
||||
There have currently been no changes to the macro API.
|
||||
As of WebGUI 6.0 there is no longer a need to develop custom navigation macros. WebGUI
|
||||
has an entirely new navigation system that is 100% configurable and templated. The
|
||||
legacy navigation system has been removed. Any nav macros that you've written
|
||||
will need to be removed from the system. Then just create a navigation
|
||||
configuration to do what your old nav once did.
|
||||
|
||||
If you absolutely must write a navigation macro for some reason that our nav
|
||||
system does not accomodate you, then please check out the new API in
|
||||
WebGUI::Navigation.
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -491,7 +491,30 @@ my $macros = $conf->get("macros");
|
|||
delete $macros->{"\\"};
|
||||
$macros->{"\\\\"} = "Backslash_pageUrl";
|
||||
$macros->{"Navigation"} = "Navigation";
|
||||
$conf->set("macros"=>$macros);
|
||||
my %newMacros;
|
||||
foreach my $macro (keys %{$macros}) {
|
||||
unless (
|
||||
$macros->{$macro} eq "m_currentMenuHorizontal"
|
||||
|| $macros->{$macro} eq "M_currentMenuVertical"
|
||||
|| $macros->{$macro} eq "s_specificMenuHorizontal"
|
||||
|| $macros->{$macro} eq "S_specificMenuVertical"
|
||||
|| $macros->{$macro} eq "t_topMenuHorizontal"
|
||||
|| $macros->{$macro} eq "T_topMenuVertical"
|
||||
|| $macros->{$macro} eq "p_previousMenuHorizontal"
|
||||
|| $macros->{$macro} eq "P_previousMenuVertical"
|
||||
|| $macros->{$macro} eq "C_crumbTrail"
|
||||
|| $macros->{$macro} eq "FlexMenu"
|
||||
|| $macros->{$macro} eq "PreviousDropMenu"
|
||||
|| $macros->{$macro} eq "rootmenuHorizontal"
|
||||
|| $macros->{$macro} eq "RootTab"
|
||||
|| $macros->{$macro} eq "SpecificDropMenu"
|
||||
|| $macros->{$macro} eq "TopDropMenu"
|
||||
|| $macros->{$macro} eq "Synopsis"
|
||||
) {
|
||||
$newMacros{$macro} = $macros->{$macro};
|
||||
}
|
||||
}
|
||||
$conf->set("macros"=>\%newMacros);
|
||||
my $wobjects = $conf->get("wobjects");
|
||||
my @newWobjects;
|
||||
foreach my $wobject (@{$wobjects}) {
|
||||
|
|
@ -531,6 +554,22 @@ unlink("../../lib/WebGUI/Wobject/FAQ.pm");
|
|||
unlink("../../lib/WebGUI/Wobject/ExtraColumn.pm");
|
||||
unlink("../../lib/WebGUI/Authentication.pm");
|
||||
unlink("../../lib/WebGUI/Operation/Account.pm");
|
||||
unlink("../../lib/WebGUI/Macro/m_currentMenuHorizontal.pm");
|
||||
unlink("../../lib/WebGUI/Macro/M_currentMenuVertical.pm");
|
||||
unlink("../../lib/WebGUI/Macro/s_specificMenuHorizontal.pm");
|
||||
unlink("../../lib/WebGUI/Macro/S_specificMenuVertical.pm");
|
||||
unlink("../../lib/WebGUI/Macro/t_topMenuHorizontal.pm");
|
||||
unlink("../../lib/WebGUI/Macro/T_topMenuVertical.pm");
|
||||
unlink("../../lib/WebGUI/Macro/p_previousMenuHorizontal.pm");
|
||||
unlink("../../lib/WebGUI/Macro/P_previousMenuVertical.pm");
|
||||
unlink("../../lib/WebGUI/Macro/C_crumbTrail.pm");
|
||||
unlink("../../lib/WebGUI/Macro/FlexMenu.pm");
|
||||
unlink("../../lib/WebGUI/Macro/PreviousDropMenu.pm");
|
||||
unlink("../../lib/WebGUI/Macro/Synopsis.pm");
|
||||
unlink("../../lib/WebGUI/Macro/rootmenuHorizontal.pm");
|
||||
unlink("../../lib/WebGUI/Macro/RootTab.pm");
|
||||
unlink("../../lib/WebGUI/Macro/SpecificDropMenu.pm");
|
||||
unlink("../../lib/WebGUI/Macro/TopDropMenu.pm");
|
||||
rmtree("../../lib/WebGUI/Authentication");
|
||||
rmtree("../../www/extras/toolbar/default");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue