Jump to content


Photo
- - - - -

remove $$hashkey from object


  • Please log in to reply
2 replies to this topic

#1 anand

anand

    Advanced Member

  • Members
  • PipPipPip
  • 45 posts

Posted 04 September 2017 - 08:44 AM

i converted inventory.json and .thtml to suit my requirement for experience with fields - role, movie, year.

 

i got everything correct except that the year filed is showing $ sign in front of the year.

 

my changed code

 

{
    "title": "Inventory",
    "type": "table",
    "items": {
        "title": "Item",
        "type": "object",
        "properties": {
            "movie": {
                "title": "Movie",
                "type": "string"
            },
            "role": {
                "title": "Role",
                "type": "string"
            },
            "year": {
                "title": "Year",
                "type": "string"
            }
        }
    }
}
 
how to remove that sign in front end


#2 Alejandro

Alejandro

    Advanced Member

  • Administrators
  • 32504 posts

Posted 04 September 2017 - 09:31 AM

That would be part of the output, not the input. Did you change /components/com_jreviews/jreviews/views/themes/default/fields_phpformat/inventory.thtml theme file and created a new one for your form? You can make the change there.



#3 anand

anand

    Advanced Member

  • Members
  • PipPipPip
  • 45 posts

Posted 04 September 2017 - 11:43 AM

thanks...

 

altering the inventory.thtml got it right






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users