Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Data Model Questions

[Solved] Question about automatic & created


Reply

3 Posts   548 Views

Avatar
Graphicator

22 September 2011 at 10:45pm Community Member, 62 Posts

   public function Title(){
      $replace = $this->Title;
      $replace = str_replace(' ',' ',$replace);
      
      return $replace;
   }

I am trying to display titles without being split.

What I get however, is the actual   showing up and not turned to html.

Avatar
Graphicator

23 September 2011 at 1:34am Community Member, 62 Posts

$Title.RAW

Achieves the issue I was having

Avatar
Graphicator

23 September 2011 at 4:16pm (Last edited: 23 September 2011 4:20pm), Community Member, 62 Posts

I'm taking down the [Solved] on the title, because this function produces quite a mess everywhere. In the backend, I still see "ampnbs" everywhere because I cannot program in {Title.RAW} everywhere the DataObject column shows up.

However....

I just switch the function to

public function Title2RAW(){...

and in the calling page

$Title2RAW.RAW

Cheers!