Path

ez projects / menustring_datatype_extensi...


Menustring Datatype Extension ( PubSVN )

UNIX name Owner Status Version Compatible with
menustring_datatype_extension___pubsvn__ Björn Dieding@xrow.de planning 1.x 3.5 and higher

Solves problem of cutted/shortend menu items by browsers. IE and Firefix
behave different.
Includes also a str_replace operator.

Solves:
Problem of cutted/shortend menu items by browsers. IE and Firefix behave
different.
Includes also a str_replace operator.
Usage in a the edit module:
Textline( used for menu appearance ): Title of a

contentobject
Usage in a template(menu):
{node_view_gui view=menuitem content_node=$node_object}
Usage in template override for node_object:
{$node.object.data_map.name.content.menu_text|wash()|str_replace(
'<br />', '
' )}
Result in menu (frontend):
Title of a
content-
object
Regular result( e.g admin interface ):
Title of a content-object
Setup:
1.) Extension setup
add to "settings/siteaccess/siteaccessname/site.ini.append.php"
[ExtensionSettings]
ActiveExtensions[]=menustring
2.) Query database.
# In this example we turn the attribute "name" of a "folder" into a
"menustring" type.
BEGIN WORK;
UPDATE ezcontentclass_attribute SET data_type_string="menustring" WHERE id
in ( 4 ) and data_type_string="ezstring";
UPDATE ezcontentobject_attribute SET data_type_string="menustring" WHERE
contentclassattribute_id in ( 4 ) and
data_type_string="ezstring";
COMMIT;

Screenshot

No news yet.

This project has no reviews yet. Be the first one to review it!

No forum messages yet.