Questions tagged [format]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
44 views

How to set date format to English when using a non-English language?

After I have installed the Persian language in Joomla; now all English dates are changed to Persian dates. How can I have the Persian language and English dates?
2
votes
1answer
2k views

How to change date format in JHTML::calendar to d-m-Y?

In a form I have a date/time-field. It works correctly, but the format of the date isn't right -- I require Dutch date notation (d-m-Y). Instead of day-month-year it displays and saves it as year-...
2
votes
1answer
95 views

Number parsing and formatting, according to the user locale

I'm wondering if there is J-API way to parse and format numbers (like JDate). When you convert decimal numbers into different locales, the user can enter numbers in this way "1.234.567,891" and ...
2
votes
1answer
264 views

How to reformat a date string? [duplicate]

I'm trying to enter the date in tags default_items.php (in an override) to see the date in tags list. I am using <?php echo $item->displayDate; ?> and this prints: 2018-08-04 06:04:37, but I'...
3
votes
1answer
94 views

Create alias for alternate view format

I've just created an RSS feed view format for one of the views in my component. This is contained in: components/com_mycomponent/views/myview/view.rss.php I'd now like to allow access to this via ...
0
votes
0answers
120 views

In "Date Format" section, what code makes the date relative?

This code will show the date of publishing like: 4:30 10/7/2015 I want the date be like: 2 hours and 15 minutes ago this setting is on showcase modules ("news show pro GK4" in this case) for ...
1
vote
0answers
136 views

How to get Attachments list for an article view in format=raw output

Using this Joomla Attachment plugin: http://jmcameron.net/attachments/ When used &format=raw in the url params to view an article the output only shows the details of the article and its ...
2
votes
1answer
165 views

Add output formats to core components

Is it possible to add output formats to a component? For example, if I wanted to have a pdf output from com_content article, how would this be done? The article view only has a single format listed (...