CMS MADE SIMPLE FORGE

Newsletter Made Simple

 

[#5228] Dropdown "return page" is empty

avatar
Created By: Andi Petzoldt (andiministrator)
Date Submitted: Thu Jul 29 10:37:38 -0400 2010

Assigned To:
Version: 2.3.2
CMSMS Version: None
Severity: Critical
Resolution: Won't Fix
State: Closed
Summary:
Dropdown "return page" is empty
Detailed Description:
Since a upgrade to CMSms 1.7.1 and NMS 2.3.2 I can't create new messages.By
submitting the form, it gives an error: "Form error". I suppose, that the
problem is that I can't select a return page - the dropdown menu is empty.


History

Comments
avatar
Date: 2010-10-04 12:08
Posted By: Tom (tomgsd)

Just come across a similar problem to the above.  The reason this happened for
me was because I was using the "AdvancedContent" module for all my page content
types.

In "functions.utils.php" the "create_page_dropdown()" function queries the db
for all content with the type "content".  As AdvancedContent uses "content2" the
function wasn't returning any results.

Two ways to fix this, either modify the above function to look for "content2" as
well as "content" or make at least one active page have the type "content".
      
avatar
Date: 2010-10-04 12:13
Posted By: Andi Petzoldt (andiministrator)

I solved the problem as you can read in the forum:
http://forum.cmsmadesimple.org/index.php/topic,46802.0.html
      
avatar
Date: 2011-06-10 11:49
Posted By: Robert Campbell (calguy1000)

was probably a problem with the CMSMS core.
      
avatar
Date: 2012-01-26 12:03
Posted By: Andi Petzoldt (andiministrator)

The problem still exists.
The solution would be very easy, just a change of 2 lines code of your module,
see:
http://forum.cmsmadesimple.org/viewtopic.php?t=46802
      
avatar
Date: 2012-01-26 12:48
Posted By: Georg Busch (nan)

The problem is that the function to create the dropdown selects only pages of a
certain contenttype based on the *name* of the contenttype.
IMHO this is no good idea. It would be better to select pages of a certain
contenttype based on a certain *property* of the contenttype.
E.G. the ContentBase class of the core has a function called IsViewable() (see:
/lib/classes/class.ContentBase.php)
This can be used as a property to determine if the page can be used as a
returnpage and may be listed in a pagedropdown.

So my idea would be to first get a list of contenttypes where IsViewable() ==
true.
After this select only those pages from the db where the contenttype is in the
viewable contenttype list.
So you would have a real solution that does not depend on the name of a
contenttype but on its function.

Just my two cents.

Kind regards
NaN
      
Updates

Updated: 2012-01-26 13:07
resolution_id: 11 => 8
cmsms_version_id: => -1
state: Open => Closed

Updated: 2011-06-10 11:49
resolution_id: => 11