Up to [Local Repository] / interchange / code / UI_Tag
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Fix incorrect license in headers GPL v2 -> GPL v2 "or later". Update copyrights.
Fix incorrect license in headers GPL v2 -> GPL v2 "or later". Update copyrights.
Big copyright and version number update to prepare for 5.3.2 release.
Header/license fix or Version update+minor formatting fix, or both
* Add ability to edit pages using Mozilla composer, or any HTML editor
that can publish with an HTTP put. Includes ability to upload images
with the files, create new files, and more.
* ONLY operates on the area between <!-- BEGIN CONTENT --> and
<!-- END CONTENT -->.
* Pulls the page title from the <title></title> of the PUT page.
* If a new page is PUT, it is wrapped with the template used in
the nearest DirectoryIndex ("index" by default). If a new file
"trucks/chevy/mom.html" is created and does not exist, the following
files will be used as the template in this order if they exist:
trucks/chevy/index
trucks/index
index
* Update [if-mm ...] to have a "pagematch" and "filematch" function
that allows security checks based on the files and pages fields
in the access table. This allows certain users to have publish
permission only on certain image and page directories. For
instance, if the user "bubba" is only to edit files in the
"trucks" hierarchy, you would want in access:
username:bubba
files:images/trucks/
pages:trucks/
* Add action "admin_publish" that handles the PUT process. Requires
user be logged in as an admin, and requires
* Automatic RCS versioning if PUBLISH_DO_RCS variable is set. Can
stop publish if RCS error when PUBLISH_QUIT_ON_RCS_ERROR Variable
is set.
* Adding "ui_mozilla_edit=1" to the URL keeps ITL tags from being
interpolated within the BEGIN CONTENT/END CONTENT area. This
allows
* Automatically adjusts image paths in the uploaded file to be
relative to the directory the page is in. This allows individual
directories to use different sets of images and Mozilla won't
willy-nilly overwrite things in other directories.
* Handles most <a href="[area ...]"> things, I think. This can
probably be improved.
* Can prevent any publishing to the pages root if PUBLISH_NO_PAGE_ROOT
is set.
* TODO: Handle delivery and upload of Flash and other types of
things besides images.
* TODO: Add <meta ...> tag handling to allow component adjustments.
updated LINUXIA branch to 4.9 sources in order to use it as testbed again
Bring back regex typo fix.
* The great tag breakout!
* Almost all tags are now UserTag definitions. The only exceptions
are:
and bounce goto if label or unless
* New TagDir directive (default is VENDROOT/code) sets the
directory (or directories) which are searched for code definitions
set by UserTag and CodeDef.
* New TagGroup directive establishes groups of ITL tags which can
be included.
TagGroup :crufty "banner default ecml html_table onfly sql"
The default groups include :core, which contains all of the
ITL tags defined in 4.8/early 4.9. The groups are defined
in $Vend::Cfg::StdTags and can be undefined if desired
with "TagGroup :group".
* New TagInclude directive allows inclusion of tags (or groups
of tags). If a tag is defined as a core tag (with a .coretag
or .tag or .ct extension) and is not included, it will not
be compiled and placed in the tag map. This is for all catalogs,
so if *any* catalog uses a tag it must be included.
Examples:
# Include the base tags
TagInclude :core
# Not the commerce tags
TagInclude !:commerce
# But make sure item-list is included even though
# it is in :commerce
TagInclude item-list
## Double negatives are honored
TagGroup :foo "bar !baz buz"
## With the group above, the below is equivalent
## to TagInclude !bar baz !buz
TagInclude !:foo
* New CodeDef directive allows the setting of filters,
order checks, FormAction, ActionMap, ItemAction,
and LocaleChange.
## filters
CodeDef mixedcase Filter
CodeDef mixedcase Routine <<EOR
sub {
my $val = shift;
## [filter mixedcase]mixed case[/filter]
## outputs "MiXeD CaSe"
$val =~ s/(.)(.)/\u$1\l$2/g;
return $val;
}
EOR
## order checks
CodeDef mixedcase OrderCheck
CodeDef foo Routine <<EOR
sub {
my ($ref, $var, $val) = @_;
return (1,$var) if $val eq 'bar';
return (0,$var, "foo must be bar");
}
EOR
All work in catalog.cfg; LocaleChange and ItemAction are not
global. FormAction, ActionMap, and ItemAction directives
are equivalent to their CodeDef equivalents.