content_module order in admin page

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 203
Joined: Sun Sep 05, 2010 6:11 am

content_module order in admin page

Post by chrisbt »

I am having an issue with the order that admin fields are being displayed on an admin page.

Any 'content_module' & 'content' tags are not displayed in the order that they occur in the top of the page template. The 'content' tags are in their correct order. The 'content_module' tags are in their correct order. But the 'content_module' tags are NOT in the correct order relative to the 'content' tags.

Below is the code from the top of the template. Points here relate to order of fields shown on the admin page:
- the 1st 'content_module' field is always displayed first (regardless of the order in the template)
- additional 'content_module' fields are displayed, 2 fields later than the order they occurred in the template (seems bizarre even writing it!)
Note: labels of the content & content_module tags start with 'Test1:...', 'Test2:...', etc as the per order in the template

Code: Select all

{process_pagedata}

{content_module module='CGContentUtils' block='pageTopGallery' label='Test1: Page Top Gallery' udt='galleryPicker' assign='pageTopGallery'}

{content_module module='CGContentUtils' block='style1' label='Test2: Section 1 Layout Style' assign='style1'}

{content_module module='CGContentUtils' block='Test-ContentUtils-Text-Input' label='Test3: ContentUtils-Text-Input' assign='testcontentutils'}

{content block="testBlock1" oneline=1 label="Test4: Content Block 1 - v1" assign='test1'}

{content label='Test5: Section 1' assign='content1'}

{content_module module='CGContentUtils' block='style2' label='Test6: Section 2 Layout Style' assign='style2'}

{content block='content2' label='Test7: Section 2 (optional)' assign='content2'}

{content_module module='CGContentUtils' block='style3' label='Test8: Section 3 Layout Style' assign='style3'}

{content block='content3' label='Test9: Section 3 (optional)' assign='content3'}

{content_module module='CGContentUtils' block='style4' label='Test10: Section 4 Layout Style' assign='style4'}

{content block='content4' label='Test11: Section 4 - Bottom (optional)' assign='content4'}
The output order of the admin fields when editing that page is: 1,4,5,2,3,7,9,6,11,8,10. (looking at the 'TestX:...' number at the start of each label.)

If the order in the template is changed so that test fields 4 & 5 (content tags) are moved above test field 1 (content_module tag). The test field 1 (content_module tag) is still displayed first on the admin page:
Order in Template: 4,5,1,2,3,6,7,8,9,10,11
Order in Admin Pg: 1,4,5,2,3,7,9,6,11,8,10

Gratefully receive any pointers on where to look for the issue or what to check out further.

System details:
I am testing out the upgrade of an existing site from 1.12.1 to 2.1.2.
----------------------------------------------
Cms Version: 2.1.2
Installed Modules:
AdminSearch: 1.0
CGContentUtils: 2.1
CGEcommerceBase: 1.5.2
CGExtensions: 1.51.1
CGFeedMaker: 1.0.20
CGFeedback: 1.7.5
CGGoogleMaps2: 0.99.3
CGPaymentGatewayBase: 1.3.1
CGSimpleSmarty: 2.0.5
CGSmartImage: 1.21
CMSContentManager: 1.1
CMSMailer: 6.2.14
Captcha: 0.5.2
Cart2: 1.1.3
CustomGS: 2.1
DesignManager: 1.1.1
ECB: 1.7
FileManager: 1.5.2
FormBuilder: 0.8.1.3
FrontEndUsers: 1.31
Gallery: 2.1
JQueryTools: 1.3.8
LISE: 1.1
LISEWidgets: 1.1
MenuManager: 1.50.2
MicroTiny: 2.0.3
ModuleManager: 2.0.2
Navigator: 1.0.2
News: 2.50.4
Orders: 1.16.5
Outsourcer: 1.3.1
Products: 2.24.2
Sagepay2: 0.9.2
Search: 1.50.2
SiteMapMadeSimple: 1.2.8
ThemeManager: 1.1.8
TinyMCE: 3.1

Config Information:
php_memory_limit:
max_upload_size: 32000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: UTC
permissive_smarty: false

Php Information:
phpversion: 5.6.16
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 120
register_globals: Off (False)
output_buffering: 1
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 32M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 2.6.32-431.29.2.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.42
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:
tmp: /home/binnodev/public_html/cmstest2upgrade/tmp (0755)
tmp_cache: /home/binnodev/public_html/cmstest2upgrade/tmp/cache (0755)
templates_c: /home/binnodev/public_html/cmstest2upgrade/tmp/templates_c (0755)
modules: /home/binnodev/public_html/cmstest2upgrade/modules (0755)
uploads: /home/binnodev/public_html/cmstest2upgrade/uploads (0755)
File Creation Mask (umask): /home/binnodev/public_html/cmstest2upgrade/tmp/cache (0755)
config_file: 0444
----------------------------------------------
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: content_module order in admin page

Post by Dr.CSS »

Have you tried putting them in 'tabs'..?
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 203
Joined: Sun Sep 05, 2010 6:11 am

Re: content_module order in admin page

Post by chrisbt »

Thanks for the reply. Yes having the same issue if the 'content' and 'content_module' tags specify a tab.

Also tried this on a fresh installation of CMSMS 2.1.2 and get the same results then also.

Is anyone else using multiple 'content' and 'content_module' tags and NOT having this issue? At least that way I will know it is something related to my installation.

Thanks

Chris
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1973
Joined: Mon Jan 29, 2007 4:47 pm

Re: content_module order in admin page

Post by Jo Morg »

I have a similar issue (not sure yet if it's a bug as I didn't have much time to chase this down), however in my case I'm using the priority parameter to order the blocks. In my installation the content blocks respect that parameter, however the content_module seems not to respect it. It seems that the content blocks are ordered first, and only then the content_module blocks are ordered. I still have to dig more into it, but it seems to be a bug.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 203
Joined: Sun Sep 05, 2010 6:11 am

Re: content_module order in admin page

Post by chrisbt »

Many thanks for the reply Jo. At least I know it's (prob) not me. I tried to track it down, but just got lost!

I've managed to find a work around for now of just setting all blocks to be processed through the 'content_module' tag.
Locked

Return to “CMSMS Core”