Questions tagged [format]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
61 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?
Soroush's user avatar
2 votes
1 answer
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-...
YolkNet's user avatar
  • 81
2 votes
1 answer
110 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 ...
Anibal's user avatar
  • 7,415
2 votes
1 answer
301 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'...
geoplous's user avatar
  • 349
3 votes
1 answer
99 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 ...
John Rix's user avatar
  • 537
0 votes
0 answers
131 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 ...
Brainiac's user avatar
  • 125
1 vote
0 answers
137 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 ...
forsimb's user avatar
  • 51
2 votes
1 answer
167 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 (...
jonasfh's user avatar
  • 738