Content plugin to display specific field inside a Joomla article

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 3 months ago #140963 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

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #140964 by Tuan Pham Ngoc
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

Please Log in or Create an account to join the conversation.

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 3 months ago #141080 by hide10
Hello Tuan,

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.

More
3 years 3 months ago #141091 by Tuan Pham Ngoc
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

Please Log in or Create an account to join the conversation.

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 2 months ago - 3 years 2 months ago #141100 by hide10
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.
Last edit: 3 years 2 months ago by hide10.

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #141101 by Tuan Pham Ngoc
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

Please Log in or Create an account to join the conversation.

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 2 months ago #141102 by hide10
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.

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #141103 by Tuan Pham Ngoc
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

Please Log in or Create an account to join the conversation.

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 2 months ago #141104 by hide10
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!

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #141105 by Tuan Pham Ngoc
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

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc