custom field
Hello
i have added a custom fields, i want to know how can i make it show on the post ?
Best Regards
-
- · Will Monte
- ·
Tim Burleigh will try to help
-
thank you
-
- · Tim
- ·
Not sure if I can help but I will try. Looking at it now.
-
- · bouhlal
-
·
In reply to Tim
- ·
thank you
-
- · Tim
-
·
In reply to bouhlal
B
- ·
I have successfully added the fields but when I make a post it’s not showing up either. I will try a little longer but I have to go to bed soom. It’s 1 AM here and I get up at 6.
-
- · bouhlal
-
·
In reply to Tim
- ·
the same problem for me :(
-
- · Tim
- ·
I’m going to have to call it a night. I will check back tomorrow to see if you have received an answer from anyone else. I’m curious myself anyway. I’ll look into it more later.
-
- · bouhlal
-
·
In reply to Tim
- ·
thx
-
- · UMIT OZAYDIN
- ·
Did you try view actions? If fields are not enabled as a field action they may not show
-
- · Kyle
- ·
When adding fields to a module you got to do the add post field screen and then they should show in all others. Then you need to go to the edit and view displays and enable it in there after. I noticed with posts I had to watch how I organized my fields. Right now my post box is over my body/description box, because its the only way it would notice the fields. All other modules, I didn't have this problem. Id show an example, but with my timeline issue my fields are all disabled in Posts :P It works though I use it myself in all my modules 🙂
-
- · bouhlal
- ·
that is correct ???
-
- · Kyle
-
·
In reply to bouhlal
B
- ·
I misread that. I have not tried altering anything with the timeline in terms of extra fields. I thought it was posts in general. That may require some more extensive editing in other areas based on how the timeline works. I shouldn't have read this until I drank my coffee ☕
-
-
-
·
LeonidS
- ·
Hello everybody!
The mentioned problem has the solution only via customization the related files:
modules/boonex/timeline/template/type_post.html
and
modules/boonex/timeline/classes/BxTimelineTemplate.php
The first one should have new variables like __city__ and the second should have the processing of this variable in the method protected function _getPost($sType, $aEvent, $aBrowseParams = array())
It will look like the addon after 'comments' => '',: line:
'comments' => '',
'city' => $aEvent['city_or other new field name'].
BUT in this case, you will lose the automatic update of the timeline module. And always have the backup of all changed files.
-
·
LeonidS
-
-
- · unknown
-
·
In reply to LeonidS
- ·
Comment by unknown is hidden. -
-
·
LeonidS
-
·
In reply to unknown
- ·
Hello Omar611 !
My previous post is definitely about it. Maybe you have the detailed questions?
-
·
LeonidS