CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#5618] Bad link if target page has no alias

avatar
Created By: Valery Eliseev (ve2)
Date Submitted: Mon Nov 08 03:01:08 -0500 2010

Assigned To:
Version: 1.8.2
CMSMS Version: None
Severity: Critical
Resolution: Accepted
State: Closed
Summary:
Bad link if target page has no alias
Detailed Description:
In content editor "Insert link to cmsms-page" inserts bad link if target page
has no alias.

Solution: In "TinyMCE.module.php", in function AddEntry replace
$link = "index.php?" . $config['query_var'] . "=" . $entry->Alias();
with something like
$link = "index.php?" . $config['query_var'] . "=" . (trim($entry->Alias()) == ''
? $entry->Id() :

$entry->Alias());


History

Comments
avatar
Date: 2010-11-13 14:26
Posted By: Morten Poulsen (silmarillion)

Under what circumstances do you need this? Content pages should always have a
working alias, I think...?

Is it for other content types, or?
      
avatar
Date: 2010-11-14 12:10
Posted By: Valery Eliseev (ve2)

Old CMCMS versions not assigned alias automatically. 
In my uprgated (from 1.2.3 version) database many content pages has no aliases. 
      
avatar
Date: 2010-12-17 22:57
Posted By: Robert Campbell (calguy1000)

each page is required to have an alias... this has to be fixed or your system
will have lots of problems.
      
avatar
Date: 2011-01-07 15:07
Posted By: Ronny Krijt (ronnyk)

Investigate the creation of  a utility to fix 'older' issues.
      
avatar
Date: 2014-04-05 22:35
Posted By: Robert Campbell (calguy1000)

fix was for a third party module.
      
Updates

Updated: 2014-04-05 22:35
cmsms_version_id: => -1
assigned_to_id: 113 => 100
state: Open => Closed

Updated: 2011-01-07 15:07
resolution_id: 9 => 6

Updated: 2010-12-17 22:57
resolution_id: 5 => 9

Updated: 2010-11-13 14:26
resolution_id: => 5
assigned_to_id: 100 => 113