muratdzeko

How Do I Find The Correct Object Reference?

Recommended Posts

Hello,

I want to show custom data field on topic. 

  1.  Data is associated with IPS/forums/topic
  2. Stored Data Type is Integer
  3. Field Display Mode is Manual
  4. Field Editing Mode is Public Use
  5. Required

How can i display on topic with manual? I tried a lot but I couldn't

Thank you.

My data_key is priceTag. I cant find correct object.

{{if $object->priceTag}}
  <strong>Price:</strong> {$object->priceTag}
{{endif}}

Share this post


Link to post
Share on other sites

Well, it all depends on what variables are available inside the template you are putting that code in. $object is likely not even a variable within scope.

Accessing rules data as an object property is only going to work if you have a reference to the object that the data is assigned to. How and where to get that reference depends entirely on the context of the available template variables.

Share this post


Link to post
Share on other sites
15 hours ago, Kevin Carwile said:

Well, it all depends on what variables are available inside the template you are putting that code in. $object is likely not even a variable within scope.

Accessing rules data as an object property is only going to work if you have a reference to the object that the data is assigned to. How and where to get that reference depends entirely on the context of the available template variables.

Thanks but i wouldn't need this plugin anyway if i was expert enough to do what you said. 

I tried many things but I could not. I was thinking of buying the full version, but I guess I won't. I also delete the plugin. Thanks again.

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.