HasUsableLink() for PageLink

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply

Should HasUsableLink() for pagelinks default to true?

Yes.
1
100%
No.
0
No votes
Don't care.
0
No votes
 
Total votes: 1

tobre
New Member
New Member
Posts: 5
Joined: Wed May 26, 2010 1:58 pm

HasUsableLink() for PageLink

Post by tobre »

Hi CMSMS Community,

I just added a simple pagelink to the menu which however only generated as plain-text in the sitemap. So I figured that I want to change...

Code: Select all

    function HasUsableLink()
    {
      return false;
    }
....on line 39 in \lib\classes\contenttypes\PageLink.inc.php to...

Code: Select all

    function HasUsableLink()
    {
      return true;
    }
Shouldn't that rather be the default behaviour? After all, though reduntant, it's a link.
Last edited by tobre on Sun May 30, 2010 9:17 pm, edited 1 time in total.
Post Reply

Return to “Developers Discussion”