By Giacomo on Friday, 04 August 2017
Posted in General
Likes 0
Views 405
Votes 0
I would like to add a button inside a page at the location shown in the attached image. Could you please kindly tell me the file to edit? Thanks
Hi there,

In order for you to fetch those customs field on your site, you required to call it "Unique Key" as you can see here http://take.ms/1OD1m. Then you can can call them using codes below.

[gist type="php"]
//for example i am using 'TEXTBOX-1'
<?php echo $user->getFieldValue('TEXTBOX-1')->toDisplay('listing', true); ?>
[/gist]

Hope this helps
·
Thursday, 10 August 2017 10:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Giacomo,

I am really sorry for the delay of this reply as it is a weekend for us here. You can find these codes in /components/com_easysocial/themes/wireframe/pages/item/default.php . It is at about line 170.
·
Friday, 04 August 2017 23:10
·
0 Likes
·
0 Votes
·
0 Comments
·
thank you. I have identified the line where my button is located. I would like to understand how to read the value of a custom page field (example phone number, email address, etc.) so that you can dynamically change the value of the link. Thanks again for the support
·
Tuesday, 08 August 2017 22:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are welcome

If you wanted know more on customs field, maybe you can refer to this documentations here https://stackideas.com/docs/easysocial/developers/custom-fields and see how it goes

Hope this helps
·
Wednesday, 09 August 2017 10:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for the reply. I read the documentation but I could not solve my problem. I try to describe it better: I created a custom field on the page. This field will be enhanced for each page created. At the time of page display I need to enter a button or link (no problem at this point) that has to open the inserted url as the value of the custom field. Obviously this value will change for each page. So I need to understand how to dynamically recall the value of that custom field when rendering the page.
·
Wednesday, 09 August 2017 21:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, it works. For future messages only, I entered "$ page-> getFieldValue" instead of "$ user-> getFieldValue"
·
Thursday, 17 August 2017 22:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Giacamo, glad that your issues are resolved now By the way, can you please spare some time to rate our support by clicking on the response below?

Thanks!
·
Thursday, 17 August 2017 22:47
·
0 Likes
·
0 Votes
·
0 Comments
·
I have updated to the new version. Now which file should I change? In item / default I can not find the code where I entered the button. Thank you
·
Tuesday, 02 January 2018 22:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Giacomo,

In the latest version of EasySocial, we have standardized all of the covers and they are now stored under /components/com_easysocial/themes/wireframe/helpers/cover/

If you are editing the page cover, then it will be page.php
·
Tuesday, 02 January 2018 23:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, it works
·
Wednesday, 03 January 2018 00:05
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Wednesday, 03 January 2018 00:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post