- Posts: 249
- Thank you received: 3
Content plugin to display specific field inside a Joomla article
- hide10
-
Topic Author
- Offline
- Elite Member
-
Less
More
4 years 3 months ago #140963
by hide10
Content plugin to display specific field inside a Joomla article was created by hide10
Hello,
I wonder if it is possible to display one of the event form fields inside a Joomla article.
For example, I want to display “Event End Date” of event ID=2 in the format of “YYYY-MM-DD hh:mm” inside a Joomla article.
Is there any way to make it possible?
Possibly content field plugin like {ebfield EVENT_END_DATE, id=“2”}?
Thanks
I wonder if it is possible to display one of the event form fields inside a Joomla article.
For example, I want to display “Event End Date” of event ID=2 in the format of “YYYY-MM-DD hh:mm” inside a Joomla article.
Is there any way to make it possible?
Possibly content field plugin like {ebfield EVENT_END_DATE, id=“2”}?
Thanks
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
4 years 3 months ago #140964
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Content plugin to display specific field inside a Joomla article
Hello
No, it is not possible. For simple thing like that, why don't you just enter data directly into the article? That's faster than using the plugin
Tuan
No, it is not possible. For simple thing like that, why don't you just enter data directly into the article? That's faster than using the plugin
Tuan
Please Log in or Create an account to join the conversation.
- hide10
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 249
- Thank you received: 3
4 years 2 months ago #141080
by hide10
Replied by hide10 on topic Content plugin to display specific field inside a Joomla article
Hello Tuan,
Actually, this is for more complicated purpose.
Is it very difficult to create this kind of plugin?
Thanks.
Actually, this is for more complicated purpose.
Is it very difficult to create this kind of plugin?
Thanks.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
4 years 2 months ago #141091
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Content plugin to display specific field inside a Joomla article
It is not hard, but require developing a new plugin. Exactly what data you want to display? I mean what is the list of fields required for this plugin?
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- hide10
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 249
- Thank you received: 3
4 years 2 months ago - 4 years 2 months ago #141100
by hide10
Replied by hide10 on topic Content plugin to display specific field inside a Joomla article
I thought it might be useful if it can be used for basic fields.
But the field we need is only “EVENT_END_DATE”, for now.
Our purpose is to use the EVENT_END_DATE for controlling the period of displaying the embedded video in the article template. At the event end date, we want to hide the embedded video, and show message text instead.
We control the displaying period by Conditional Content plugin by Regular Labs which uses the following syntax.
{show date="to 2021-03-31 23:59”}{/show} (for showing until 2021-03-31 23:59)
{show date="2021-03-31 23:59”}{/show} (for showing from 2021-03-31 23:59)
Therefore, I want to pickup the EVENT_END_DATE in “YYYY-MM-DD hh:mm” format.
Currently we are using your “Content - Event” plugin and “Content Restriction” plugin in the article template.
And we have article custom field {{EventsBooking_ID}} for Event Booking ID.
So, if article editors input “2” into the EventsBooking_ID field, “Content - Event” plugin shows the event details info of Event Booking ID = 2, and “Content Restriction” plugin shows embedded video only to the registrants of ID=2.
Example usage: {ebrestriction ids="{{EventsBooking_ID}}”}
These are working as expected.
But we also need to hide the embedded video at the defined date.
That’s why I asked for your help.
I wish I could use something like {show date="{ebenddate ids="{{EventsBooking_ID}}”}”}.
Please let me know what you think.
Thanks.
But the field we need is only “EVENT_END_DATE”, for now.
Our purpose is to use the EVENT_END_DATE for controlling the period of displaying the embedded video in the article template. At the event end date, we want to hide the embedded video, and show message text instead.
We control the displaying period by Conditional Content plugin by Regular Labs which uses the following syntax.
{show date="to 2021-03-31 23:59”}{/show} (for showing until 2021-03-31 23:59)
{show date="2021-03-31 23:59”}{/show} (for showing from 2021-03-31 23:59)
Therefore, I want to pickup the EVENT_END_DATE in “YYYY-MM-DD hh:mm” format.
Currently we are using your “Content - Event” plugin and “Content Restriction” plugin in the article template.
And we have article custom field {{EventsBooking_ID}} for Event Booking ID.
So, if article editors input “2” into the EventsBooking_ID field, “Content - Event” plugin shows the event details info of Event Booking ID = 2, and “Content Restriction” plugin shows embedded video only to the registrants of ID=2.
Example usage: {ebrestriction ids="{{EventsBooking_ID}}”}
These are working as expected.
But we also need to hide the embedded video at the defined date.
That’s why I asked for your help.
I wish I could use something like {show date="{ebenddate ids="{{EventsBooking_ID}}”}”}.
Please let me know what you think.
Thanks.
Last edit: 4 years 2 months ago by hide10.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
4 years 2 months ago #141101
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Content plugin to display specific field inside a Joomla article
What if we develop a plugin called event data or something like that. In the article, you put {ebeventdata 1} and the system will replace all tags by data from that event
[EVENT_DATE]
[EVENT_END_DATE]
[EVENT_TITLE]
.......
So just put {ebeventdata 1} and it will allow you to use the above tags and these tags will be replaced with data from the actual event. Will that work?
Tuan
[EVENT_DATE]
[EVENT_END_DATE]
[EVENT_TITLE]
.......
So just put {ebeventdata 1} and it will allow you to use the above tags and these tags will be replaced with data from the actual event. Will that work?
Tuan
Please Log in or Create an account to join the conversation.
- hide10
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 249
- Thank you received: 3
4 years 2 months ago #141102
by hide10
Replied by hide10 on topic Content plugin to display specific field inside a Joomla article
Hello Tuan,
Wow! You came up with great idea! That way, it will be very useful since we can use several different tags.
But I’m not sure if it might conflict with other extension in the future or not, as for the use of [TAG_NAME].
For me, probably it might be more understandable/obvious to use long syntax something like:
{ebeventdata 1, field = EVENT_END_DATE}
But I don’t know how difficult it is to develop, compared to your suggestion.
Also, I have one important question.
Will it be possible to specify the format of EVENT_END_DATE?
We need it to be “YYYY-MM-DD hh:mm” format.
Thank you so much for your help, as always.
Wow! You came up with great idea! That way, it will be very useful since we can use several different tags.
But I’m not sure if it might conflict with other extension in the future or not, as for the use of [TAG_NAME].
For me, probably it might be more understandable/obvious to use long syntax something like:
{ebeventdata 1, field = EVENT_END_DATE}
But I don’t know how difficult it is to develop, compared to your suggestion.
Also, I have one important question.
Will it be possible to specify the format of EVENT_END_DATE?
We need it to be “YYYY-MM-DD hh:mm” format.
Thank you so much for your help, as always.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
4 years 2 months ago #141103
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Content plugin to display specific field inside a Joomla article
Hello
If you want to have that systax, maybe {eventdata 1:event_date} would be simpler for us to parse
That's OK if you only want to display one field. If you need other fields, you will have to repeat that syntax {eventdata 1:event_end_date} and so on
Compare to my solution, you just have to put {eventdata 1}
And then anywhere you want to use event date, just put [EVENT_DATE]
Anywhere you want to use event end date [EVENT_END_DATE]
So depends on how you want it to works only. For the format, we can hardcode it to that hardcoded format you want
Tuan
If you want to have that systax, maybe {eventdata 1:event_date} would be simpler for us to parse
That's OK if you only want to display one field. If you need other fields, you will have to repeat that syntax {eventdata 1:event_end_date} and so on
Compare to my solution, you just have to put {eventdata 1}
And then anywhere you want to use event date, just put [EVENT_DATE]
Anywhere you want to use event end date [EVENT_END_DATE]
So depends on how you want it to works only. For the format, we can hardcode it to that hardcoded format you want
Tuan
Please Log in or Create an account to join the conversation.
- hide10
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 249
- Thank you received: 3
4 years 2 months ago #141104
by hide10
Replied by hide10 on topic Content plugin to display specific field inside a Joomla article
Hello Tuan,
Yes, I understand what you mean.
Your solution needs less typing.
However, I don’t mind repeating the syntax.
So we prefer {eventdata 1:event_date}.
Because we have multiple administrators and everyone will easily understand what that means without explanation.
> For the format, we can hardcode it to that hardcoded format you want
That’s great!
Will this be custom development only for us?
Or will it be official development?
Approximately how long will it take to develop?
Looking forward to use this plugin.
Thanks!
Yes, I understand what you mean.
Your solution needs less typing.
However, I don’t mind repeating the syntax.
So we prefer {eventdata 1:event_date}.
Because we have multiple administrators and everyone will easily understand what that means without explanation.
> For the format, we can hardcode it to that hardcoded format you want
That’s great!
Will this be custom development only for us?
Or will it be official development?
Approximately how long will it take to develop?
Looking forward to use this plugin.
Thanks!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
4 years 2 months ago #141105
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Content plugin to display specific field inside a Joomla article
Hello
It will be custom development for you only. It will take one day for development and cost you 50$ if you are interested in this development
Tuan
It will be custom development for you only. It will take one day for development and cost you 50$ if you are interested in this development
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.