In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
152 [In-Portal CMS] Front End feature request N/A 2009-07-28 04:39 2010-07-22 15:06
alex  
alex  
normal  
closed 5.0.1  
fixed  
 
none 5.1.0-B1  
Minor improvement to "st_PageInfo" tag
0
0000152: Add ability to get MenuTitle of CMS page using "st_PageInfo" tag
Currently tag "st_PageInfo" allows to get most popular information about current CMS page, but not contents of MenuTitle field. I think, that it should allow us to do that.

In global scale we should think about rewriting for scratch part of that tag anyway to allow to get any current CMS page field from it. Or just remove it and use "<inp2:st_Field name="MenuTitle"/>" and so on directly.

Besides that this tag do 2 other things:
1. returns empty string when requested field value begins with "_Auto:";
2. asks "c_Meta" tag about additional information.

Kind of strange relationships that two tags have. We should break it anyway and use "c_Meta" tag directly when needed. This will make code more simple, more readable and understandable.

One more thing about this tag: there is PageInfo tag in base tag processor, that returns pagination information when listing items. Tag "st_PageInfo" prevents original tag to be accessed in any way and that's not good. Nobody seems to use tag "PageInfo" in favor of "GridInfo" tag so no one noticed that fact. Should investigate deeper anyway.
patch pageinfo_show_menutitle.patch (430) 2010-01-13 06:12
http://tracker.in-portal.org/file_download.php?file_id=219&type=bug
Issue History
2010-07-22 15:06 alex Note Added: 0002544
2010-07-22 15:06 alex Status resolved => closed
2010-04-28 06:07 alex Note Added: 0002007
2010-04-28 06:07 alex Issue Monitored: Dmitry
2010-04-28 06:06 alex Note Added: 0002006
2010-04-28 06:06 alex Status reviewed and tested => resolved
2010-04-28 06:06 alex Fixed in Version => 5.1.0-B1
2010-04-28 06:06 alex Resolution open => fixed
2010-04-28 06:06 alex Assigned To !COMMUNITY => alex
2010-04-28 06:06 alex Changeset attached 5.1.x r13452
2010-04-27 17:16 Dmitry Change Log Message => Minor improvement to "st_PageInfo" tag
2010-04-27 17:16 Dmitry Note Edited: 0001993 bug_revision_view_page.php?bugnote_id=0001993#r463
2010-04-27 17:15 Dmitry Note Added: 0001993
2010-04-27 17:15 Dmitry Status needs testing => reviewed and tested
2010-02-27 04:10 alex Developer => alex
2010-01-13 06:13 alex Time Estimate Removed 1 =>
2010-01-13 06:13 alex Note Added: 0001411
2010-01-13 06:13 alex Assigned To => !COMMUNITY
2010-01-13 06:13 alex Status active => needs testing
2010-01-13 06:12 alex File Added: pageinfo_show_menutitle.patch
2010-01-12 11:38 alex Time Estimate Added 1
2009-07-31 15:31 Dmitry version => 5.0.1
2009-07-31 15:31 Dmitry Target Version => 5.1.0
2009-07-28 04:41 alex Description Updated bug_revision_view_page.php?rev_id=116#r116
2009-07-28 04:39 alex New Issue

Notes
(0001411)
alex   
2010-01-13 06:13   
To test modify any template, maybe design template is best for that and add:
<inp2:st_PageInfo type="menu_title"/> to see current page title for menu.
(0001993)
Dmitry   
2010-04-27 17:15   
(edited on: 2010-04-27 17:16)
Tested okay.

This is already committed by Alex:

http://source.in-portal.org/in-portal/branches/5.1.x/core/units/categories/categories_tag_processor.php?r1=11494&r2=11495&

(0002006)
alex   
2010-04-28 06:06   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0000152: Add ability to get MenuTitle of CMS page using "st_PageInfo" tag
(0002007)
alex   
2010-04-28 06:07   
Reminder sent to: Dmitry

This was never commited before, Dmitry.

Maybe you were talking about "meta_title" and not "menu_title", since they look almost the same.
(0002544)
alex   
2010-07-22 15:06   
Closing, since 5.1.0 release has been released.