codem / DisplayAnything

A simple file and image gallery module for Silverstripe CMS
BSD 3-Clause "New" or "Revised" License
21 stars 5 forks source link

'Internal Page Link' Not Working? #18

Open Bodkin opened 12 years ago

Bodkin commented 12 years ago

Hi James, Seem to have a problem implementing the finer points of linking in the DisplayAnything Module, everything works really well apart from the following and perhaps I'm not understanding the logic properly so apologies in advance if that is the case.

I have installed the module and set up a gallery to show a jQuery Cycle slideshow in an adopted .ss template based on your example folder templates - everything works apart from I need to make the picture clickable to an internal page and following the logic for other fields such as using $CallToActionText to display the Call To Action Text contents which works, as does using $ExternalLink to display an external link, however using $InternalPageLink which is what I need, doesn't work, it just fails silently.

Using an alternative $InternalLink throws the following core Saphire error: throw new Exception("Object->__call(): the method '$method' does not exist on '$this->class'", 2175); in www/sapphire/core/Object.php

Can you give some illumination as to what I am doing wrong or what the template call should be for this DisplayAnything function?

(using SS 2.4.7 btw)

Many thanks, Adam

Bodkin commented 12 years ago

Looking at this further, I have the Internal Link function working in a virgin install of SS 2.4.7 so have come to the conclusion that the module is being affected by another module I have on the project site which is the Multilingual Module (http://www.kreationsbyran.se/blogg/multilingual-module-2-0-for-silverstripe-cms-3-0/) which extends the Page Class by adding another layer of logic between the Page & Site Tree tables - and also if need be, the DataObject Class - any ideas how / what might be going wrong?

Any help or assistance would be gratefully recieved or let me know if this is paid support only, Cheers!

MrJamesEllis commented 12 years ago

Hi Adam

Unfortunately I haven't been able to look at development of this in a while due to other commitments. Once the next V3 update occurs for SS3.0 I'll see if I can refine the rough edges in the 2.4 compat version but I'm only going to be funnelling security updates to the V2 module unless there is an obvious bug to fix.

That error message, it looks like the ol' method not found the class error. It's highly likely the Internal Page Link is not working.

Thanks James