This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 28 November 2019 15:21 EET
Hi

We have to realize an event wall, for which your great wall (pro) seems just to be perfect. the problem is, we want to keep all events as native Joomla! articles, but we cannot use one of the Joomla native date fields (nor creation, nor modification nor publication) for the displayed event date. So we created a custom (date) field, where the customer can enter the event date.

Now, we should tweak the wall extension, so it will display this custom event date field instead of any native joomla date fields (let's say the publish date field).

Can you help us with this, please?

thank you
Seppi
Joomla! Extensions - Professional Subscription
Thursday, 28 November 2019 18:33 EET
Hi there,

What is the name and alias of the custom field for the date?
Yannis
Support Team

  Please post a rating at the Joomla! Extensions Directory

Friday, 29 November 2019 10:07 EET
Hi Yannis

Thank for taking care of this!

Our date field's alias is

event-datum


Please let me know anytime, if we can support you with anything else.

thanks again!
Seppi
Joomla! Extensions - Professional Subscription
Friday, 29 November 2019 17:01 EET
How do you prefer to filter the articles?

The default date filter, filters articles by month (eg. November 2019, December 2019, etc).
Do you want to keep the same format?
Yannis
Support Team

  Please post a rating at the Joomla! Extensions Directory

Friday, 29 November 2019 17:47 EET
yeah, by month is just perfect, thank you.
Seppi
Joomla! Extensions - Professional Subscription
Friday, 29 November 2019 19:11 EET
I have attached the 2 custom files. You must first unzip the package and then
copy the 2 files to
/templates/your_template/html/com_minitekwall/masonry/


Now, copy the rest of the files (except for the above 2 files)
from
/components/com_minitekwall/views/masonry/tmpl/

to
/templates/your_template/html/com_minitekwall/masonry/


and rename those files too
to
/datum_xxxxx.php


Finally, open the widget in the backend and in the tab "Layout"
select the template override "datum" in the field "Template".
Attachment
Yannis
Support Team

  Please post a rating at the Joomla! Extensions Directory

Monday, 02 December 2019 12:41 EET
... wow, works just perfect!

Thank you so much!

Only one more question: Do you got a hint for me, how to display this custom date field in the masonry article view as well (instead of the publish date)?

Cheers!
Seppi
Joomla! Extensions - Professional Subscription
Monday, 09 December 2019 18:01 EET
Hi there,

Sorry for the delayed answer.

You can use the following in the masonry template override:

echo  ' date-'.JHTML::_('date', $item->itemDateRaw, 'Y-m-d');
Yannis
Support Team

  Please post a rating at the Joomla! Extensions Directory

Thursday, 12 December 2019 13:05 EET
Hi, thanks for your answer.

Forgive me my nooby question. But where exactly do we have to insert this?

thank you!
Seppi
Joomla! Extensions - Professional Subscription
Thursday, 12 December 2019 14:49 EET
You insert it in the override file 'datum_masonry.php'.

Just replace the 2 instances of

<?php echo $item->itemDate; ?>


with
<?php echo ' date-'.JHTML::_('date', $item->itemDateRaw, 'Y-m-d'); ?>


Yannis
Support Team

  Please post a rating at the Joomla! Extensions Directory

Thursday, 12 December 2019 14:50 EET
my mistake, use this instead:

<?php echo JHTML::_('date', $item->itemDateRaw, 'Y-m-d'); ?>
Yannis
Support Team

  Please post a rating at the Joomla! Extensions Directory

Friday, 13 December 2019 17:46 EET
thank, works great!

On (hopefully) last question: The date filter tags are now in decreasing ordern (March, February, Januar, December). It tried but I didn't figure out, how to switch this to the opposite (so, increasing fro December to March).

Can you give me another hint, please?

thanks a lot!
Seppi
Joomla! Extensions - Professional Subscription
Sunday, 15 December 2019 17:32 EET
In the template override file
'datum_filters.php'
in line ~413

change
rsort($date_array);


to
asort($date_array);
Yannis
Support Team

  Please post a rating at the Joomla! Extensions Directory

Tuesday, 17 December 2019 09:37 EET
... worked perfectly. Thanks a lot!
Seppi
Joomla! Extensions - Professional Subscription
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Search